Example usage for javax.swing GroupLayout linkSize

List of usage examples for javax.swing GroupLayout linkSize

Introduction

In this page you can find the example usage for javax.swing GroupLayout linkSize.

Prototype

public void linkSize(int axis, Component... components) 

Source Link

Document

Forces the specified components to have the same size along the specified axis regardless of their preferred, minimum or maximum sizes.

Usage

From source file:maltcms.ui.nb.pipelineRunner.options.LocalMaltcmsExecutionPanel.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.//from   ww w . j  a  va2  s .  c  o m
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jLabel1 = new javax.swing.JLabel();
    maltcmsInstallationPath = new javax.swing.JTextField();
    select = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();
    maltcmsVersion = new javax.swing.JTextField();
    commandLineOptions = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    download = new javax.swing.JButton();
    maltcmsOnlineVersion = new javax.swing.JComboBox();
    jLabel4 = new javax.swing.JLabel();
    jSeparator1 = new javax.swing.JSeparator();
    maltcmsOptions = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jSeparator2 = new javax.swing.JSeparator();
    useDrmaaApiCheckBox = new javax.swing.JCheckBox();
    nativeSpecTextField = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    pathToShellTextField = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    jSeparator3 = new javax.swing.JSeparator();
    notificationLabel = new javax.swing.JLabel();

    setMinimumSize(new java.awt.Dimension(750, 450));

    org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.jLabel1.text")); // NOI18N

    maltcmsInstallationPath.setColumns(20);
    maltcmsInstallationPath.setText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.maltcmsInstallationPath.text")); // NOI18N
    maltcmsInstallationPath.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            maltcmsInstallationPathPropertyChange(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(select, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.select.text")); // NOI18N
    select.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            selectActionPerformed(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.jLabel2.text")); // NOI18N

    maltcmsVersion.setEditable(false);
    maltcmsVersion.setColumns(20);
    maltcmsVersion.setText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.maltcmsVersion.text")); // NOI18N

    commandLineOptions.setColumns(20);
    commandLineOptions.setText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.commandLineOptions.text")); // NOI18N
    commandLineOptions.setToolTipText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.commandLineOptions.toolTipText")); // NOI18N
    commandLineOptions.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            commandLineOptionsActionPerformed(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.jLabel3.text")); // NOI18N

    org.openide.awt.Mnemonics.setLocalizedText(download, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.download.text")); // NOI18N
    download.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            downloadActionPerformed(evt);
        }
    });

    maltcmsOnlineVersion.setModel(new javax.swing.DefaultComboBoxModel(
            new String[] { "1.3.2", "1.3.1", "1.3.0", "1.2.1", "1.2.0", "1.1.0", "LATEST-SNAPSHOT" }));

    org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.jLabel4.text")); // NOI18N

    maltcmsOptions.setText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.maltcmsOptions.text")); // NOI18N
    maltcmsOptions.setToolTipText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.maltcmsOptions.toolTipText")); // NOI18N
    maltcmsOptions.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            maltcmsOptionsActionPerformed(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.jLabel5.text")); // NOI18N

    org.openide.awt.Mnemonics.setLocalizedText(useDrmaaApiCheckBox, org.openide.util.NbBundle.getMessage(
            LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.useDrmaaApiCheckBox.text")); // NOI18N
    useDrmaaApiCheckBox.setToolTipText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.useDrmaaApiCheckBox.toolTipText")); // NOI18N
    useDrmaaApiCheckBox.setEnabled(false);
    useDrmaaApiCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            useDrmaaApiCheckBoxActionPerformed(evt);
        }
    });

    nativeSpecTextField.setText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.nativeSpecTextField.text")); // NOI18N
    nativeSpecTextField.setToolTipText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.nativeSpecTextField.toolTipText")); // NOI18N
    nativeSpecTextField.setEnabled(false);

    org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.jLabel6.text")); // NOI18N

    pathToShellTextField.setText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.pathToShellTextField.text")); // NOI18N
    pathToShellTextField.setToolTipText(org.openide.util.NbBundle.getMessage(LocalMaltcmsExecutionPanel.class,
            "LocalMaltcmsExecutionPanel.pathToShellTextField.toolTipText")); // NOI18N
    pathToShellTextField.setEnabled(false);

    org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.jLabel7.text")); // NOI18N

    org.openide.awt.Mnemonics.setLocalizedText(notificationLabel, org.openide.util.NbBundle
            .getMessage(LocalMaltcmsExecutionPanel.class, "LocalMaltcmsExecutionPanel.notificationLabel.text")); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(12, 12, 12).addComponent(jSeparator1).addGap(12, 12,
                    12))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    layout.createSequentialGroup().addContainerGap().addComponent(jSeparator2)
                            .addContainerGap())
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING))
                            .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addComponent(jLabel7)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addComponent(useDrmaaApiCheckBox).addGap(0,
                                    0, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(pathToShellTextField)
                                    .addComponent(maltcmsOnlineVersion, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            Short.MAX_VALUE)
                                    .addComponent(maltcmsInstallationPath, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            406, Short.MAX_VALUE)
                                    .addComponent(maltcmsVersion).addComponent(commandLineOptions)
                                    .addComponent(maltcmsOptions).addComponent(nativeSpecTextField))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(download, javax.swing.GroupLayout.PREFERRED_SIZE, 102,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(select, javax.swing.GroupLayout.PREFERRED_SIZE, 104,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap())
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jSeparator3)
                    .addContainerGap())
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(notificationLabel,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));

    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { download, select });

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(download)
                    .addComponent(maltcmsOnlineVersion, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(maltcmsInstallationPath, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(select))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(maltcmsVersion, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(commandLineOptions, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(maltcmsOptions, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(useDrmaaApiCheckBox)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nativeSpecTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(pathToShellTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 4,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(notificationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(85, Short.MAX_VALUE)));

    layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { commandLineOptions,
            maltcmsInstallationPath, maltcmsOnlineVersion, maltcmsOptions, maltcmsVersion });

    layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { download, select });

}

From source file:musiccrawler.App.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.//from   w  w  w.  j  av  a2s .c  o  m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    rdgOptionCrawl = new javax.swing.ButtonGroup();
    rdgQuery = new javax.swing.ButtonGroup();
    lblAppName = new javax.swing.JLabel();
    appTab = new javax.swing.JTabbedPane();
    pnlCrawl = new javax.swing.JPanel();
    txtUrlInput = new javax.swing.JTextField();
    lblInputUrl = new javax.swing.JLabel();
    rdbGetAll = new javax.swing.JRadioButton();
    rdbOnlyStream = new javax.swing.JRadioButton();
    btnCrawl = new javax.swing.JButton();
    scrollResultCrawlOnl = new javax.swing.JScrollPane();
    tbResultCrawlOnl = new javax.swing.JTable();
    lblLoading = new javax.swing.JLabel();
    lblError = new javax.swing.JLabel();
    pnlQuery = new javax.swing.JPanel();
    btnQuery = new javax.swing.JButton();
    scrollResult = new javax.swing.JScrollPane();
    tbResult = new javax.swing.JTable();
    rdbQueryAll = new javax.swing.JRadioButton();
    rdbQueryOption = new javax.swing.JRadioButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setResizable(false);

    lblAppName.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
    lblAppName.setForeground(new java.awt.Color(51, 153, 255));
    lblAppName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    lblAppName.setText("CSN Crawler");

    lblInputUrl.setForeground(new java.awt.Color(0, 102, 255));
    lblInputUrl.setText("URL/Path");
    lblInputUrl.setName(""); // NOI18N

    rdbGetAll.setSelected(true);
    rdbGetAll.setText("All");

    rdbOnlyStream.setText("Only Stream");

    btnCrawl.setText("Crawl");
    btnCrawl.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnCrawlActionPerformed(evt);
        }
    });

    tbResultCrawlOnl.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] {

    }));
    tbResultCrawlOnl.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    scrollResultCrawlOnl.setViewportView(tbResultCrawlOnl);

    lblError.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

    javax.swing.GroupLayout pnlCrawlLayout = new javax.swing.GroupLayout(pnlCrawl);
    pnlCrawl.setLayout(pnlCrawlLayout);
    pnlCrawlLayout.setHorizontalGroup(pnlCrawlLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCrawlLayout.createSequentialGroup().addGroup(pnlCrawlLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pnlCrawlLayout.createSequentialGroup().addGap(45, 45, 45)
                            .addComponent(lblInputUrl).addGap(18, 18, 18).addComponent(txtUrlInput,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 512,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlCrawlLayout.createSequentialGroup().addGroup(pnlCrawlLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlCrawlLayout.createSequentialGroup().addGap(271, 271, 271)
                                    .addComponent(rdbGetAll).addGap(26, 26, 26).addComponent(rdbOnlyStream))
                            .addGroup(pnlCrawlLayout.createSequentialGroup().addGap(299, 299, 299).addComponent(
                                    btnCrawl, javax.swing.GroupLayout.PREFERRED_SIZE, 76,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(132, 132, 132).addComponent(lblLoading,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 69,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(lblError, javax.swing.GroupLayout.DEFAULT_SIZE, 70, Short.MAX_VALUE)
                    .addContainerGap())
            .addGroup(pnlCrawlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(scrollResultCrawlOnl, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 706, Short.MAX_VALUE)));
    pnlCrawlLayout.setVerticalGroup(pnlCrawlLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlCrawlLayout.createSequentialGroup().addContainerGap().addGroup(pnlCrawlLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblError, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pnlCrawlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtUrlInput, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblInputUrl)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlCrawlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(rdbGetAll).addComponent(rdbOnlyStream))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlCrawlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnCrawl, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblLoading, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(272, 272, 272))
            .addGroup(pnlCrawlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    pnlCrawlLayout.createSequentialGroup().addGap(0, 115, Short.MAX_VALUE).addComponent(
                            scrollResultCrawlOnl, javax.swing.GroupLayout.PREFERRED_SIZE, 261,
                            javax.swing.GroupLayout.PREFERRED_SIZE))));

    pnlCrawlLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { lblError, txtUrlInput });

    appTab.addTab("Crawl", pnlCrawl);

    btnQuery.setText("Query");
    btnQuery.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnQueryActionPerformed(evt);
        }
    });

    tbResult.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] {

    }));
    tbResult.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    scrollResult.setViewportView(tbResult);

    rdbQueryAll.setText("Query All Music");

    rdbQueryOption.setText("Query With Option");

    javax.swing.GroupLayout pnlQueryLayout = new javax.swing.GroupLayout(pnlQuery);
    pnlQuery.setLayout(pnlQueryLayout);
    pnlQueryLayout.setHorizontalGroup(pnlQueryLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(scrollResult, javax.swing.GroupLayout.Alignment.TRAILING)
            .addGroup(pnlQueryLayout.createSequentialGroup()
                    .addGroup(pnlQueryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlQueryLayout.createSequentialGroup().addGap(238, 238, 238)
                                    .addComponent(rdbQueryAll).addGap(26, 26, 26).addComponent(rdbQueryOption))
                            .addGroup(pnlQueryLayout.createSequentialGroup().addGap(315, 315, 315)
                                    .addComponent(btnQuery)))
                    .addContainerGap(228, Short.MAX_VALUE)));
    pnlQueryLayout.setVerticalGroup(pnlQueryLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlQueryLayout.createSequentialGroup().addContainerGap()
                    .addGroup(pnlQueryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(rdbQueryAll).addComponent(rdbQueryOption))
                    .addGap(18, 18, 18).addComponent(btnQuery)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(scrollResult, javax.swing.GroupLayout.PREFERRED_SIZE, 298,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(140, 140, 140)));

    appTab.addTab("Query", pnlQuery);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(appTab)
                    .addGroup(layout.createSequentialGroup().addGap(229, 229, 229)
                            .addComponent(lblAppName, javax.swing.GroupLayout.PREFERRED_SIZE, 242,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblAppName)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(appTab,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 404,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    pack();
}

From source file:br.com.atmatech.sac.view.ViewAtendimento.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*from   ww w. j  a va  2s.  co m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jDcliente = new javax.swing.JDialog();
    jScrollPane4 = new javax.swing.JScrollPane();
    jTtdcliente = new javax.swing.JTable();
    jDtecnico = new javax.swing.JDialog();
    jScrollPane5 = new javax.swing.JScrollPane();
    jTtdtecnico = new javax.swing.JTable();
    jDcombocliente = new javax.swing.JDialog();
    ACBcliente = new com.jidesoft.swing.AutoCompletionComboBox();
    jLabel17 = new javax.swing.JLabel();
    jDveiculo = new javax.swing.JDialog();
    jPanel3 = new javax.swing.JPanel();
    jCveiculo = new javax.swing.JComboBox();
    jTplaca = new javax.swing.JTextField();
    jLabel18 = new javax.swing.JLabel();
    jTkminicial = new javax.swing.JTextField();
    jTkmfinal = new javax.swing.JTextField();
    jLabel19 = new javax.swing.JLabel();
    jTidveiculo = new javax.swing.JTextField();
    jBok = new javax.swing.JButton();
    jDajuda = new javax.swing.JDialog();
    jScrollPane3 = new javax.swing.JScrollPane();
    jTbajuda = new javax.swing.JTable();
    jTajuda = new javax.swing.JTextField();
    jPanel1 = new javax.swing.JPanel();
    jBalterar = new javax.swing.JButton();
    jBexcluir = new javax.swing.JButton();
    jButton5 = new javax.swing.JButton();
    jTidcliente = new javax.swing.JTextField();
    jTidtecnico = new javax.swing.JTextField();
    jTidtecnicoanterior = new javax.swing.JTextField();
    jTemail = new javax.swing.JTextField();
    jTidtecnicoabertura = new javax.swing.JTextField();
    jBajuda = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jTresponsavel = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jTfantasia = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    jTmodulo = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    jTtelefone = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jFabertura = new javax.swing.JFormattedTextField();
    jLabel9 = new javax.swing.JLabel();
    jDinicial = new com.toedter.calendar.JDateChooser();
    jFinicial = new javax.swing.JFormattedTextField();
    jDfinal = new com.toedter.calendar.JDateChooser();
    jFfinal = new javax.swing.JFormattedTextField();
    jLabel10 = new javax.swing.JLabel();
    jDabertura = new com.toedter.calendar.JDateChooser();
    jLabel11 = new javax.swing.JLabel();
    jTsolicitante = new javax.swing.JTextField();
    jCtipo = new javax.swing.JComboBox();
    jLabel12 = new javax.swing.JLabel();
    jTtecnico = new javax.swing.JTextField();
    jBtecnico = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    jLabel13 = new javax.swing.JLabel();
    jLabel14 = new javax.swing.JLabel();
    jLabel15 = new javax.swing.JLabel();
    jTidatendimento = new javax.swing.JTextField();
    jTrazao = new javax.swing.JTextField();
    jButton3 = new javax.swing.JButton();
    jCStatus = new javax.swing.JComboBox();
    jLabel16 = new javax.swing.JLabel();
    jLabel20 = new javax.swing.JLabel();
    jScrollPane7 = new javax.swing.JScrollPane();
    jTsolicitacao = new javax.swing.JTextArea();
    jScrollPane8 = new javax.swing.JScrollPane();
    jTrealizado = new javax.swing.JTextArea();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTpendente = new javax.swing.JTextArea();
    jScrollPane2 = new javax.swing.JScrollPane();
    jTanotacao = new javax.swing.JTextArea();
    jCnfe = new javax.swing.JCheckBox();
    jCecf = new javax.swing.JCheckBox();
    jCnfce = new javax.swing.JCheckBox();
    jScrollPane6 = new javax.swing.JScrollPane();
    jTobsatend = new javax.swing.JTextArea();
    jTtecnicoedit = new javax.swing.JTextField();
    jLabel21 = new javax.swing.JLabel();

    jDcliente.setTitle("Clientes");
    jDcliente.setMinimumSize(new java.awt.Dimension(538, 249));
    jDcliente.setModal(true);
    jDcliente.setResizable(false);
    jDcliente.addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowOpened(java.awt.event.WindowEvent evt) {
            jDclienteWindowOpened(evt);
        }
    });
    jDcliente.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            jDclienteKeyPressed(evt);
        }
    });

    jTtdcliente.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] { "FANTASIA", "RAZAO", "CNPJ", "CIDADE", "ENDERECO" }) {
        boolean[] canEdit = new boolean[] { false, false, false, false, false };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jTtdcliente.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    jTtdcliente.getTableHeader().setReorderingAllowed(false);
    jTtdcliente.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jTtdclienteMouseClicked(evt);
        }

        public void mouseEntered(java.awt.event.MouseEvent evt) {
            jTtdclienteMouseEntered(evt);
        }
    });
    jTtdcliente.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            jTtdclienteKeyPressed(evt);
        }
    });
    jScrollPane4.setViewportView(jTtdcliente);
    if (jTtdcliente.getColumnModel().getColumnCount() > 0) {
        jTtdcliente.getColumnModel().getColumn(0).setResizable(false);
        jTtdcliente.getColumnModel().getColumn(0).setPreferredWidth(200);
        jTtdcliente.getColumnModel().getColumn(1).setMinWidth(200);
        jTtdcliente.getColumnModel().getColumn(1).setPreferredWidth(200);
        jTtdcliente.getColumnModel().getColumn(2).setMinWidth(120);
        jTtdcliente.getColumnModel().getColumn(2).setPreferredWidth(120);
        jTtdcliente.getColumnModel().getColumn(3).setMinWidth(200);
        jTtdcliente.getColumnModel().getColumn(3).setPreferredWidth(200);
        jTtdcliente.getColumnModel().getColumn(4).setMinWidth(300);
        jTtdcliente.getColumnModel().getColumn(4).setPreferredWidth(300);
    }

    javax.swing.GroupLayout jDclienteLayout = new javax.swing.GroupLayout(jDcliente.getContentPane());
    jDcliente.getContentPane().setLayout(jDclienteLayout);
    jDclienteLayout
            .setHorizontalGroup(
                    jDclienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDclienteLayout
                                    .createSequentialGroup().addContainerGap().addComponent(jScrollPane4,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, 518, Short.MAX_VALUE)
                                    .addContainerGap()));
    jDclienteLayout
            .setVerticalGroup(jDclienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDclienteLayout.createSequentialGroup().addContainerGap()
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 201,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jDtecnico.setTitle("Tecnico");
    jDtecnico.setMinimumSize(new java.awt.Dimension(538, 249));
    jDtecnico.setModal(true);
    jDtecnico.setResizable(false);

    jTtdtecnico.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] { "TECNICO" }) {
        boolean[] canEdit = new boolean[] { false };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jTtdtecnico.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_LAST_COLUMN);
    jTtdtecnico.getTableHeader().setReorderingAllowed(false);
    jTtdtecnico.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jTtdtecnicoMouseClicked(evt);
        }
    });
    jTtdtecnico.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            jTtdtecnicoKeyPressed(evt);
        }
    });
    jScrollPane5.setViewportView(jTtdtecnico);
    if (jTtdtecnico.getColumnModel().getColumnCount() > 0) {
        jTtdtecnico.getColumnModel().getColumn(0).setResizable(false);
        jTtdtecnico.getColumnModel().getColumn(0).setPreferredWidth(200);
    }

    javax.swing.GroupLayout jDtecnicoLayout = new javax.swing.GroupLayout(jDtecnico.getContentPane());
    jDtecnico.getContentPane().setLayout(jDtecnicoLayout);
    jDtecnicoLayout
            .setHorizontalGroup(
                    jDtecnicoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDtecnicoLayout
                                    .createSequentialGroup().addContainerGap().addComponent(jScrollPane5,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, 518, Short.MAX_VALUE)
                                    .addContainerGap()));
    jDtecnicoLayout
            .setVerticalGroup(jDtecnicoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDtecnicoLayout.createSequentialGroup().addContainerGap()
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 201,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jDcombocliente.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
    jDcombocliente.setTitle("Consulta Clientes");
    jDcombocliente.setMinimumSize(new java.awt.Dimension(700, 90));
    jDcombocliente.setModal(true);
    jDcombocliente.setResizable(false);

    ACBcliente.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            ACBclienteItemStateChanged(evt);
        }
    });
    ACBcliente.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            ACBclienteKeyPressed(evt);
        }

        public void keyReleased(java.awt.event.KeyEvent evt) {
            ACBclienteKeyReleased(evt);
        }
    });

    jLabel17.setText("CLIENTES");

    javax.swing.GroupLayout jDcomboclienteLayout = new javax.swing.GroupLayout(jDcombocliente.getContentPane());
    jDcombocliente.getContentPane().setLayout(jDcomboclienteLayout);
    jDcomboclienteLayout.setHorizontalGroup(
            jDcomboclienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDcomboclienteLayout.createSequentialGroup().addContainerGap()
                            .addGroup(jDcomboclienteLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(ACBcliente, javax.swing.GroupLayout.DEFAULT_SIZE, 573,
                                            Short.MAX_VALUE)
                                    .addGroup(jDcomboclienteLayout.createSequentialGroup()
                                            .addComponent(jLabel17).addGap(0, 0, Short.MAX_VALUE)))
                            .addContainerGap()));
    jDcomboclienteLayout.setVerticalGroup(jDcomboclienteLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDcomboclienteLayout.createSequentialGroup().addGap(7, 7, 7).addComponent(jLabel17)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ACBcliente, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(28, Short.MAX_VALUE)));

    jDveiculo.setTitle("Veiculo");
    jDveiculo.setMinimumSize(new java.awt.Dimension(218, 220));
    jDveiculo.setModal(true);
    jDveiculo.setResizable(false);

    jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Veiculo"));
    jPanel3.setName(""); // NOI18N

    jCveiculo.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jCveiculoItemStateChanged(evt);
        }
    });

    jTplaca.setEditable(false);

    jLabel18.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    jLabel18.setText("KM INICIAL");

    jTkminicial.setEditable(false);

    jLabel19.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    jLabel19.setText("KM FINAL");

    jTidveiculo.setEditable(false);

    jBok.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/br/com/atmatech/sac/icon/Knob Valid Green.png"))); // NOI18N
    jBok.setText("OK");
    jBok.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jBokActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addGroup(jPanel3Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                            .addGroup(jPanel3Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jCveiculo, 0, 170, Short.MAX_VALUE).addComponent(jTplaca))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jTidveiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 15,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                            .addGroup(jPanel3Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTkminicial, javax.swing.GroupLayout.PREFERRED_SIZE, 72,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel18))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(
                                    jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel19).addComponent(jTkmfinal,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 74,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))))
            .addGroup(jPanel3Layout.createSequentialGroup().addGap(47, 47, 47).addComponent(jBok,
                    javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jCveiculo, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTidveiculo, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jTplaca, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel18).addComponent(jLabel19))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTkminicial, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTkmfinal, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jBok,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 33,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    javax.swing.GroupLayout jDveiculoLayout = new javax.swing.GroupLayout(jDveiculo.getContentPane());
    jDveiculo.getContentPane().setLayout(jDveiculoLayout);
    jDveiculoLayout.setHorizontalGroup(
            jDveiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jPanel3,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
    jDveiculoLayout.setVerticalGroup(
            jDveiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jPanel3,
                    javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.PREFERRED_SIZE));

    jDajuda.setTitle("AJUDA");
    jDajuda.setMinimumSize(new java.awt.Dimension(693, 449));
    jDajuda.setModal(true);

    jTbajuda.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] { "SOLICITAO", "SOLUO" }) {
        boolean[] canEdit = new boolean[] { false, false };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jTbajuda.getTableHeader().setResizingAllowed(false);
    jTbajuda.getTableHeader().setReorderingAllowed(false);
    jScrollPane3.setViewportView(jTbajuda);
    if (jTbajuda.getColumnModel().getColumnCount() > 0) {
        jTbajuda.getColumnModel().getColumn(0).setResizable(false);
        jTbajuda.getColumnModel().getColumn(1).setResizable(false);
    }

    jTajuda.setDocument(new br.com.atmatech.sac.controller.LimitaCaracterUpper(600, true));
    jTajuda.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            jTajudaKeyPressed(evt);
        }
    });

    javax.swing.GroupLayout jDajudaLayout = new javax.swing.GroupLayout(jDajuda.getContentPane());
    jDajuda.getContentPane().setLayout(jDajudaLayout);
    jDajudaLayout
            .setHorizontalGroup(jDajudaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 693, Short.MAX_VALUE)
                    .addComponent(jTajuda));
    jDajudaLayout.setVerticalGroup(jDajudaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDajudaLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTajuda, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)));

    setName("ViewAtendimento"); // NOI18N
    setPreferredSize(new java.awt.Dimension(1021, 613));

    jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

    jBalterar.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/br/com/atmatech/sac/icon/Knob Valid Blue.png"))); // NOI18N
    jBalterar.setText("F2-Salvar");
    jBalterar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jBalterarActionPerformed(evt);
        }
    });

    jBexcluir.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/br/com/atmatech/sac/icon/Knob Remove Red.png"))); // NOI18N
    jBexcluir.setText("F4-Excluir");
    jBexcluir.setMaximumSize(new java.awt.Dimension(118, 41));
    jBexcluir.setMinimumSize(new java.awt.Dimension(118, 41));
    jBexcluir.setPreferredSize(new java.awt.Dimension(118, 41));
    jBexcluir.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jBexcluirActionPerformed(evt);
        }
    });

    jButton5.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/br/com/atmatech/sac/icon/Knob Loop Off.png"))); // NOI18N
    jButton5.setText("Cancelar");
    jButton5.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton5ActionPerformed(evt);
        }
    });

    jTidtecnico.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTidtecnicoActionPerformed(evt);
        }
    });

    jBajuda.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/br/com/atmatech/sac/icon/Knob Help.png"))); // NOI18N
    jBajuda.setText("AJUDA");
    jBajuda.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jBajudaActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(jBalterar)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jBexcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 118,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jButton5)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jBajuda)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jTidcliente, javax.swing.GroupLayout.PREFERRED_SIZE, 72,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jTidtecnico, javax.swing.GroupLayout.PREFERRED_SIZE, 74,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jTidtecnicoanterior, javax.swing.GroupLayout.PREFERRED_SIZE, 77,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jTemail, javax.swing.GroupLayout.PREFERRED_SIZE, 78,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jTidtecnicoabertura, javax.swing.GroupLayout.PREFERRED_SIZE, 77,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jBajuda, jBalterar, jButton5 });

    jPanel1Layout
            .setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel1Layout.createSequentialGroup().addContainerGap()
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jBalterar)
                                            .addComponent(jBexcluir, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jButton5)
                                            .addComponent(jTidcliente, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTidtecnico, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTidtecnicoanterior,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTemail, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTidtecnicoabertura,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jBajuda))
                                    .addContainerGap()));

    jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { jBalterar, jBexcluir, jButton5 });

    jPanel2.setPreferredSize(new java.awt.Dimension(779, 294));

    jLabel2.setForeground(new java.awt.Color(255, 0, 0));
    jLabel2.setText("Razo:");

    jLabel3.setText("Responsvel:");

    jTresponsavel.setEditable(false);

    jLabel4.setText("Tipo:");

    jLabel5.setText("Fantasia:");

    jTfantasia.setEditable(false);

    jLabel6.setText("Sistema:");

    jTmodulo.setEditable(false);

    jLabel7.setText("Telefone:");

    jTtelefone.setEditable(false);

    jLabel8.setText("Abertura:");

    jFabertura.setEditable(false);
    jFabertura.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.DateFormatter(java.text.DateFormat.getTimeInstance())));
    jFabertura.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N

    jLabel9.setText("Inicial:");

    jDinicial.setForeground(new java.awt.Color(255, 0, 51));
    jDinicial.setEnabled(false);
    jDinicial.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N

    jFinicial.setEditable(false);
    jFinicial.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.DateFormatter(java.text.DateFormat.getTimeInstance())));
    jFinicial.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N

    jDfinal.setForeground(new java.awt.Color(255, 0, 51));
    jDfinal.setEnabled(false);
    jDfinal.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N

    jFfinal.setEditable(false);
    jFfinal.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.DateFormatter(java.text.DateFormat.getTimeInstance())));
    jFfinal.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N

    jLabel10.setText("Final:");

    jDabertura.setForeground(new java.awt.Color(255, 0, 51));
    jDabertura.setEnabled(false);
    jDabertura.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N

    jLabel11.setForeground(new java.awt.Color(255, 0, 0));
    jLabel11.setText("Solicitante:");

    jTsolicitante.setDocument(new br.com.atmatech.sac.controller.LimitaCaracterUpper(20, true));
    jTsolicitante.setNextFocusableComponent(jTsolicitacao);

    jCtipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "INTERNO", "EXTERNO", "PLANTAO" }));
    jCtipo.setAutoscrolls(true);
    jCtipo.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jCtipoMouseClicked(evt);
        }
    });
    jCtipo.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jCtipoItemStateChanged(evt);
        }
    });
    jCtipo.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            jCtipoFocusLost(evt);
        }
    });

    jLabel12.setForeground(new java.awt.Color(255, 0, 0));
    jLabel12.setText("Tecnico:");

    jTtecnico.setEditable(false);

    jBtecnico.setText("...");
    jBtecnico.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jBtecnicoActionPerformed(evt);
        }
    });

    jLabel1.setForeground(new java.awt.Color(255, 51, 51));
    jLabel1.setText("Solicitao:");

    jLabel13.setText("Realizado:");

    jLabel14.setText("Pendencia:");

    jLabel15.setText("OS:");

    jTidatendimento.setEditable(false);

    jTrazao.setEditable(false);

    jButton3.setText("...");
    jButton3.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton3ActionPerformed(evt);
        }
    });

    jCStatus.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "ABERTO", "INICIADO", "PENDENTE", "FECHADO" }));
    jCStatus.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jCStatusMouseClicked(evt);
        }

        public void mouseEntered(java.awt.event.MouseEvent evt) {
            jCStatusMouseEntered(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            jCStatusMouseExited(evt);
        }
    });
    jCStatus.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jCStatusItemStateChanged(evt);
        }
    });
    jCStatus.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            jCStatusFocusLost(evt);
        }
    });

    jLabel16.setText("Status:");

    jLabel20.setText("Anotaes:");

    jTsolicitacao.setColumns(20);
    jTsolicitacao.setDocument(new br.com.atmatech.sac.controller.LimitaCaracterUpper(600, true));
    jTsolicitacao.setLineWrap(true);
    jTsolicitacao.setRows(5);
    jTsolicitacao.setTabSize(0);
    jTsolicitacao.setNextFocusableComponent(jTrealizado);
    jTsolicitacao.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            jTsolicitacaoKeyPressed(evt);
        }
    });
    jScrollPane7.setViewportView(jTsolicitacao);

    jTrealizado.setColumns(20);
    jTrealizado.setDocument(new br.com.atmatech.sac.controller.LimitaCaracterUpper(600, true));
    jTrealizado.setLineWrap(true);
    jTrealizado.setRows(5);
    jTrealizado.setTabSize(0);
    jTrealizado.setNextFocusableComponent(jTpendente);
    jTrealizado.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            jTrealizadoKeyPressed(evt);
        }
    });
    jScrollPane8.setViewportView(jTrealizado);

    jTpendente.setColumns(20);
    jTpendente.setDocument(new br.com.atmatech.sac.controller.LimitaCaracterUpper(600, true));
    jTpendente.setLineWrap(true);
    jTpendente.setRows(3);
    jTpendente.setTabSize(0);
    jTpendente.setNextFocusableComponent(jTrealizado);
    jTpendente.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            jTpendenteKeyPressed(evt);
        }
    });
    jScrollPane1.setViewportView(jTpendente);

    jTanotacao.setColumns(20);
    jTanotacao.setDocument(new br.com.atmatech.sac.controller.LimitaCaracterUpper(600, true));
    jTanotacao.setLineWrap(true);
    jTanotacao.setRows(5);
    jScrollPane2.setViewportView(jTanotacao);

    jCnfe.setText("NFE");
    jCnfe.setEnabled(false);

    jCecf.setText("ECF");
    jCecf.setEnabled(false);

    jCnfce.setText("NFCE");
    jCnfce.setEnabled(false);

    jScrollPane6.setViewportBorder(javax.swing.BorderFactory.createTitledBorder(null, "Observao Chamado:",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(255, 0, 0)));

    jTobsatend.setEditable(false);
    jTobsatend.setColumns(20);
    jTobsatend.setLineWrap(true);
    jTobsatend.setRows(4);
    jTobsatend.setTabSize(4);
    jTobsatend.setBorder(null);
    jScrollPane6.setViewportView(jTobsatend);

    jTtecnicoedit.setEditable(false);

    jLabel21.setText("Edio:");

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel3)
                                    .addComponent(jTresponsavel, javax.swing.GroupLayout.DEFAULT_SIZE, 141,
                                            Short.MAX_VALUE)
                                    .addComponent(jCtipo, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            Short.MAX_VALUE))
                                    .addGap(3, 3, 3)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jTtelefone)
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addGroup(jPanel2Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(jLabel8).addComponent(jLabel7))
                                                    .addGap(0, 0, Short.MAX_VALUE))
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addComponent(jDabertura,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 92,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(1, 1, 1).addComponent(jFabertura))))
                            .addComponent(jLabel2).addComponent(jLabel4).addComponent(jTrazao,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 305,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(3, 3, 3)
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jTsolicitante, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    154, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel11)).addGap(3, 3, 3)
                                            .addGroup(jPanel2Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jLabel16).addComponent(jCStatus,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 154,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jLabel5)
                                            .addComponent(jTfantasia, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    312, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addComponent(jDinicial,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(1, 1, 1)
                                                    .addComponent(jFinicial,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 64,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGroup(jPanel2Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                                    jPanel2Layout.createSequentialGroup()
                                                                            .addPreferredGap(
                                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                                    Short.MAX_VALUE)
                                                                            .addComponent(jFfinal,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    59,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                                    .addGap(3, 3, 3)
                                                                    .addGroup(jPanel2Layout.createParallelGroup(
                                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                                            .addComponent(jLabel10)
                                                                            .addComponent(jDfinal,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    94,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                    .addGap(0, 0, Short.MAX_VALUE))))
                                            .addComponent(jLabel9)))
                            .addGap(3, 3, 3)
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel12).addComponent(jTtecnico,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 141,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(2, 2, 2).addComponent(jBtecnico,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jTmodulo, javax.swing.GroupLayout.PREFERRED_SIZE, 139,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel6)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel2Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                                            .addComponent(jCnfe)
                                                            .addPreferredGap(
                                                                    javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                            .addComponent(jCnfce))
                                                    .addComponent(jCecf))))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jTtecnicoedit, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    99, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel21))
                                            .addPreferredGap(
                                                    javax.swing.LayoutStyle.ComponentPlacement.UNRELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addGroup(jPanel2Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jTidatendimento,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 77,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jLabel15)))
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE))))
                    .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 795,
                                    Short.MAX_VALUE)
                            .addComponent(jScrollPane8).addComponent(jScrollPane1))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup().addComponent(jLabel20)
                                            .addGap(0, 0, Short.MAX_VALUE))
                                    .addComponent(jScrollPane2))))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel2).addComponent(jLabel5).addComponent(jLabel15)
                                            .addComponent(jLabel21)))
                            .addComponent(jCecf))
                    .addGap(1, 1, 1)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTfantasia, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTidatendimento, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTrazao, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton3).addComponent(jCnfe).addComponent(jCnfce)
                            .addComponent(jTtecnicoedit, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel3).addComponent(jLabel7).addComponent(jLabel11)
                                    .addComponent(jLabel16).addComponent(jLabel6)).addGap(1, 1, 1)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jTresponsavel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTtelefone, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTsolicitante, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jCStatus, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTmodulo, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addGroup(jPanel2Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.BASELINE)
                                                            .addComponent(jLabel4).addComponent(jLabel9)
                                                            .addComponent(jLabel8))
                                                    .addGap(4, 4, 4)
                                                    .addGroup(jPanel2Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(jCtipo,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(jDabertura,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(jFabertura,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jDinicial,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(jFinicial,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jDfinal,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addComponent(jFfinal).addComponent(jBtecnico)
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addGroup(jPanel2Layout.createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.BASELINE)
                                                            .addComponent(jLabel12).addComponent(jLabel10))
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jTtecnico,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addComponent(jScrollPane6))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(jLabel20))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                            .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLabel13)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLabel14)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jScrollPane1))
                                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 320,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { jDabertura, jDfinal, jDinicial, jFabertura, jFfinal, jFinicial });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 1001, Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 514, Short.MAX_VALUE)
                    .addContainerGap()));
}

From source file:Report_PRCR_New_EPF_Excel_File_Generator.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*from w w  w .ja va2s .com*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel2 = new javax.swing.JPanel();
    datepanel = new javax.swing.JPanel();
    monthfield = new javax.swing.JTextField();
    yearfield = new javax.swing.JTextField();
    datePicker1 = new com.michaelbaranov.microba.calendar.DatePicker();
    jLabel1 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    view1 = new javax.swing.JButton();
    payment_date_panel = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    datepanel1 = new javax.swing.JPanel();
    monthfield1 = new javax.swing.JTextField();
    yearfield1 = new javax.swing.JTextField();
    dayfield = new javax.swing.JTextField();
    datePicker2 = new com.michaelbaranov.microba.calendar.DatePicker();
    jLabel3 = new javax.swing.JLabel();
    payment_mode_combo = new javax.swing.JComboBox();
    jLabel5 = new javax.swing.JLabel();
    payment_referrence_textFiield = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    chk = new javax.swing.JCheckBox();
    jButton1 = new javax.swing.JButton();

    setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 6));

    jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 51, 153), 2));

    datepanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    monthfield.setText(datehandler.get_today_month());
    monthfield.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            monthfieldKeyPressed(evt);
        }
    });

    yearfield.setText(datehandler.get_today_year());
    yearfield.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            yearfieldKeyPressed(evt);
        }
    });

    datePicker1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            datePicker1ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout datepanelLayout = new javax.swing.GroupLayout(datepanel);
    datepanel.setLayout(datepanelLayout);
    datepanelLayout
            .setHorizontalGroup(datepanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(datepanelLayout.createSequentialGroup().addContainerGap()
                            .addComponent(monthfield, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, 0)
                            .addComponent(yearfield, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, 0)
                            .addComponent(datePicker1, javax.swing.GroupLayout.PREFERRED_SIZE, 42,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    datepanelLayout.setVerticalGroup(datepanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(datepanelLayout.createSequentialGroup().addGap(0, 0, 0).addGroup(datepanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(datePicker1, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(datepanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(monthfield, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(yearfield, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jLabel1.setText("Year Month");

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addGap(23, 23, 23).addComponent(jLabel1).addGap(50, 50, 50)
                    .addComponent(datepanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addGap(24, 24, 24).addComponent(jLabel1)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    jPanel2Layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(datepanel, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap()));

    jLabel4.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
    jLabel4.setText("EPF Excel File Generator");

    view1.setText("Generate EPF file for the Govt.");
    view1.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            view1MouseClicked(evt);
        }
    });
    view1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            view1ActionPerformed(evt);
        }
    });

    payment_date_panel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 51, 153), 2));

    jLabel2.setText("Date of Payment");

    datepanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    monthfield1.setText(datehandler.get_today_month());
    monthfield1.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            monthfield1KeyPressed(evt);
        }
    });

    yearfield1.setText(datehandler.get_today_year());
    yearfield1.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            yearfield1KeyPressed(evt);
        }
    });

    dayfield.setText("" + Integer.parseInt(datehandler.get_today_day()));
    dayfield.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            dayfieldKeyPressed(evt);
        }
    });

    datePicker2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            datePicker2ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout datepanel1Layout = new javax.swing.GroupLayout(datepanel1);
    datepanel1.setLayout(datepanel1Layout);
    datepanel1Layout
            .setHorizontalGroup(datepanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(datepanel1Layout.createSequentialGroup().addContainerGap()
                            .addComponent(dayfield, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, 0)
                            .addComponent(monthfield1, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, 0)
                            .addComponent(yearfield1, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(datePicker2, javax.swing.GroupLayout.PREFERRED_SIZE, 42,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    datepanel1Layout.setVerticalGroup(datepanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(datepanel1Layout.createSequentialGroup().addGap(0, 0, 0).addGroup(datepanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(datePicker2, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(datepanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(dayfield, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(monthfield1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(yearfield1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jLabel3.setText("Payment Mode");

    payment_mode_combo.setModel(new javax.swing.DefaultComboBoxModel(
            new String[] { "Cheque", "Cash", "Money Order", "Direct Debit" }));

    jLabel5.setText("Payment Reference");

    payment_referrence_textFiield.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
    payment_referrence_textFiield.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            payment_referrence_textFiieldActionPerformed(evt);
        }
    });

    jLabel6.setText("Bank Code + Branch Code + Account Number");

    javax.swing.GroupLayout payment_date_panelLayout = new javax.swing.GroupLayout(payment_date_panel);
    payment_date_panel.setLayout(payment_date_panelLayout);
    payment_date_panelLayout.setHorizontalGroup(payment_date_panelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(payment_date_panelLayout.createSequentialGroup().addGap(18, 18, 18)
                    .addGroup(payment_date_panelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(payment_date_panelLayout.createSequentialGroup()
                                    .addGroup(payment_date_panelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel2).addComponent(jLabel3))
                                    .addGroup(payment_date_panelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    payment_date_panelLayout.createSequentialGroup()
                                                            .addPreferredGap(
                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(jLabel6).addGap(23, 23, 23))
                                            .addGroup(payment_date_panelLayout.createSequentialGroup()
                                                    .addGap(32, 32, 32)
                                                    .addGroup(payment_date_panelLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(datepanel1,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(payment_mode_combo,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE))))
                            .addGroup(payment_date_panelLayout.createSequentialGroup().addComponent(jLabel5)
                                    .addGap(18, 18, 18)
                                    .addComponent(payment_referrence_textFiield,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 200,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap()))));
    payment_date_panelLayout.setVerticalGroup(payment_date_panelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(payment_date_panelLayout.createSequentialGroup().addGroup(payment_date_panelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(payment_date_panelLayout.createSequentialGroup().addContainerGap().addComponent(
                            datepanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(payment_date_panelLayout
                            .createSequentialGroup().addGap(24, 24, 24).addComponent(jLabel2)))
                    .addGap(28, 28, 28)
                    .addGroup(payment_date_panelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(payment_mode_combo,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)
                    .addGroup(payment_date_panelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5).addComponent(payment_referrence_textFiield,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel6)
                    .addGap(12, 12, 12)));

    chk.setText("Generate only the member details Excel file");
    chk.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            chkItemStateChanged(evt);
        }
    });

    jButton1.setText("Generate EPF file for the bank");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel4).addGap(38, 38, 38))
            .addGroup(layout.createSequentialGroup()
                    .addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                    layout.createSequentialGroup().addGap(84, 84, 84).addComponent(chk)
                                            .addGap(57, 57, 57))
                            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(payment_date_panel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(view1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(payment_date_panel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(chk)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(view1, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jButton1,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { jButton1, view1 });

}

From source file:com.cmsoftware.keyron.vista.Login.java

@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    panelContenido = new javax.swing.JPanel();
    logo = new javax.swing.JLabel();
    separador = new javax.swing.JLabel();
    mensajeAcceso = new javax.swing.JLabel();
    labelUsuario = new javax.swing.JLabel();
    labelClave = new javax.swing.JLabel();
    usuario = new javax.swing.JTextField();
    acceder = new javax.swing.JButton();
    cerrar = new javax.swing.JLabel();
    clave = new javax.swing.JPasswordField();
    panelMensajes = new javax.swing.JPanel();
    labelError = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    java.util.ResourceBundle bundle = java.util.ResourceBundle
            .getBundle("com/cmsoftware/keyron/vista/idioma/idioma"); // NOI18N
    setTitle(bundle.getString("iniciar_sesion")); // NOI18N
    setName("Login"); // NOI18N
    setUndecorated(true);/*from w w w .  j ava  2  s .c  o m*/
    setResizable(false);

    panelContenido.setBackground(new java.awt.Color(246, 246, 246));
    panelContenido.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(119, 41, 83)));
    panelContenido.setMaximumSize(new java.awt.Dimension(382, 318));
    panelContenido.setMinimumSize(new java.awt.Dimension(382, 318));
    panelContenido.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            panelContenidoMouseClicked(evt);
        }

        public void mousePressed(java.awt.event.MouseEvent evt) {
            panelContenidoMousePressed(evt);
        }

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            panelContenidoMouseReleased(evt);
        }
    });
    panelContenido.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
        public void mouseDragged(java.awt.event.MouseEvent evt) {
            panelContenidoMouseDragged(evt);
        }

        public void mouseMoved(java.awt.event.MouseEvent evt) {
            panelContenidoMouseMoved(evt);
        }
    });

    logo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    logo.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/cmsoftware/keyron/recursos/encabezado.png"))); // NOI18N

    separador.setForeground(new java.awt.Color(119, 41, 83));
    separador.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    separador.setText("______________________________________________________________");

    mensajeAcceso.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    mensajeAcceso.setForeground(new java.awt.Color(89, 89, 89));
    mensajeAcceso.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    mensajeAcceso.setText(Configuracion.getInstancia().getBundle().getString("mensaje_acceso")); // NOI18N

    labelUsuario.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    labelUsuario.setForeground(new java.awt.Color(89, 89, 89));
    labelUsuario.setText(Configuracion.getInstancia().getBundle().getString("campo_usuario")); // NOI18N

    labelClave.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    labelClave.setForeground(new java.awt.Color(89, 89, 89));
    labelClave.setText(Configuracion.getInstancia().getBundle().getString("campo_clave")); // NOI18N

    usuario.setFont(com.cmsoftware.keyron.controlador.Optimizacion.getInstancia().getFuente().MyFont(0, 14f));
    usuario.setForeground(new java.awt.Color(89, 89, 89));
    usuario.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            usuarioKeyTyped(evt);
        }
    });

    acceder.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    acceder.setForeground(new java.awt.Color(89, 89, 89));
    acceder.setText(Configuracion.getInstancia().getBundle().getString("boton_acceder")); // NOI18N
    acceder.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
    acceder.setMargin(new java.awt.Insets(6, 14, 6, 14));
    acceder.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            accederActionPerformed(evt);
        }
    });

    cerrar.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
    cerrar.setText("X");
    cerrar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
    cerrar.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            cerrarMouseClicked(evt);
        }

        public void mouseEntered(java.awt.event.MouseEvent evt) {
            cerrarMouseEntered(evt);
        }

        public void mouseExited(java.awt.event.MouseEvent evt) {
            cerrarMouseExited(evt);
        }
    });

    clave.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
    clave.setForeground(new java.awt.Color(89, 89, 89));
    clave.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            claveKeyTyped(evt);
        }
    });

    javax.swing.GroupLayout panelContenidoLayout = new javax.swing.GroupLayout(panelContenido);
    panelContenido.setLayout(panelContenidoLayout);
    panelContenidoLayout.setHorizontalGroup(panelContenidoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelContenidoLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(panelContenidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(logo, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(separador, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 384,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(0, 0, 0).addComponent(cerrar).addGap(8, 8, 8))
            .addGroup(panelContenidoLayout.createSequentialGroup().addGap(25, 25, 25)
                    .addGroup(panelContenidoLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(acceder)
                            .addGroup(panelContenidoLayout
                                    .createSequentialGroup()
                                    .addGroup(panelContenidoLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(labelUsuario).addComponent(labelClave))
                                    .addGap(29, 29, 29)
                                    .addGroup(panelContenidoLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(usuario, javax.swing.GroupLayout.PREFERRED_SIZE, 262,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(clave, javax.swing.GroupLayout.PREFERRED_SIZE, 262,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGap(0, 0, Short.MAX_VALUE))
            .addComponent(mensajeAcceso, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    panelContenidoLayout.setVerticalGroup(
            panelContenidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelContenidoLayout.createSequentialGroup()
                            .addGroup(panelContenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(panelContenidoLayout.createSequentialGroup().addContainerGap()
                                            .addComponent(logo))
                                    .addComponent(cerrar))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(separador)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(mensajeAcceso).addGap(18, 18, 18)
                            .addGroup(panelContenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(labelUsuario).addComponent(usuario,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(panelContenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(labelClave).addComponent(clave,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(acceder)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    panelContenidoLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { clave, usuario });

    panelMensajes.setBackground(new java.awt.Color(119, 41, 83));

    labelError.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
    labelError.setForeground(new java.awt.Color(255, 255, 255));
    labelError.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

    javax.swing.GroupLayout panelMensajesLayout = new javax.swing.GroupLayout(panelMensajes);
    panelMensajes.setLayout(panelMensajesLayout);
    panelMensajesLayout.setHorizontalGroup(
            panelMensajesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelError, javax.swing.GroupLayout.DEFAULT_SIZE, 426, Short.MAX_VALUE));
    panelMensajesLayout.setVerticalGroup(panelMensajesLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMensajesLayout.createSequentialGroup().addComponent(labelError,
                    javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelMensajes, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(panelContenido, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(panelContenido, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(panelMensajes, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, 0)));

    pack();
}

From source file:com.peterbochs.instrument.InstrumentPanel.java

private JPanel getJMemoryProfilingPanel() {
    if (jMemoryProfilingPanel == null) {
        jMemoryProfilingPanel = new JPanel();
        GroupLayout jMemoryProfilingPanelLayout = new GroupLayout((JComponent) jMemoryProfilingPanel);
        jMemoryProfilingPanel.setLayout(jMemoryProfilingPanelLayout);
        jMemoryProfilingPanelLayout.setVerticalGroup(jMemoryProfilingPanelLayout.createSequentialGroup()
                .addContainerGap()//from  ww  w .j  av  a  2  s  .  c  o  m
                .addComponent(getJLabel7(), GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                        GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jMemoryProfilingPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                        .addComponent(getJProfilingFromComboBox(), GroupLayout.Alignment.BASELINE,
                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                GroupLayout.PREFERRED_SIZE)
                        .addComponent(getJLabel8(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE,
                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addComponent(getJLabel9(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE,
                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addComponent(getJProfilingToComboBox(), GroupLayout.Alignment.BASELINE,
                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                GroupLayout.PREFERRED_SIZE)
                        .addComponent(getJAddZoneButton(), GroupLayout.Alignment.BASELINE,
                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(getJScrollPane2(), GroupLayout.PREFERRED_SIZE, 254, GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jMemoryProfilingPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                        .addComponent(getJSortCheckBox(), GroupLayout.Alignment.BASELINE,
                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                GroupLayout.PREFERRED_SIZE)
                        .addComponent(getJLabel17(), GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE,
                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(getJScrollPane6(), GroupLayout.PREFERRED_SIZE, 214, GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(getJDeleteZoneButton(),
                        GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
        jMemoryProfilingPanelLayout.linkSize(SwingConstants.VERTICAL,
                new Component[] { getJProfilingFromComboBox(), getJProfilingToComboBox() });
        jMemoryProfilingPanelLayout.setHorizontalGroup(jMemoryProfilingPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jMemoryProfilingPanelLayout.createParallelGroup()
                        .addGroup(GroupLayout.Alignment.LEADING,
                                jMemoryProfilingPanelLayout.createSequentialGroup()
                                        .addComponent(getJLabel7(), GroupLayout.PREFERRED_SIZE, 608,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addGap(0, 156, Short.MAX_VALUE))
                        .addGroup(GroupLayout.Alignment.LEADING, jMemoryProfilingPanelLayout
                                .createSequentialGroup()
                                .addGroup(jMemoryProfilingPanelLayout.createParallelGroup().addGroup(
                                        GroupLayout.Alignment.LEADING,
                                        jMemoryProfilingPanelLayout.createSequentialGroup()
                                                .addGroup(jMemoryProfilingPanelLayout.createParallelGroup()
                                                        .addComponent(getJLabel17(),
                                                                GroupLayout.Alignment.LEADING,
                                                                GroupLayout.PREFERRED_SIZE, 108,
                                                                GroupLayout.PREFERRED_SIZE)
                                                        .addGroup(GroupLayout.Alignment.LEADING,
                                                                jMemoryProfilingPanelLayout
                                                                        .createSequentialGroup()
                                                                        .addComponent(getJDeleteZoneButton(),
                                                                                GroupLayout.PREFERRED_SIZE, 62,
                                                                                GroupLayout.PREFERRED_SIZE)
                                                                        .addGap(46)))
                                                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(getJSortCheckBox(), GroupLayout.PREFERRED_SIZE,
                                                        79, GroupLayout.PREFERRED_SIZE))
                                        .addGroup(GroupLayout.Alignment.LEADING, jMemoryProfilingPanelLayout
                                                .createSequentialGroup()
                                                .addComponent(getJLabel8(), GroupLayout.PREFERRED_SIZE, 39,
                                                        GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(getJProfilingFromComboBox(),
                                                        GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                                        GroupLayout.PREFERRED_SIZE)
                                                .addGap(29)))
                                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 74,
                                        GroupLayout.PREFERRED_SIZE)
                                .addComponent(getJLabel9(), GroupLayout.PREFERRED_SIZE, 23,
                                        GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(getJProfilingToComboBox(), GroupLayout.PREFERRED_SIZE,
                                        GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                                .addComponent(getJAddZoneButton(), GroupLayout.PREFERRED_SIZE, 62,
                                        GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 275, Short.MAX_VALUE))
                        .addComponent(getJScrollPane2(), GroupLayout.Alignment.LEADING, 0, 764, Short.MAX_VALUE)
                        .addComponent(getJScrollPane6(), GroupLayout.Alignment.LEADING, 0, 764,
                                Short.MAX_VALUE))
                .addContainerGap());
        jMemoryProfilingPanelLayout.linkSize(SwingConstants.HORIZONTAL,
                new Component[] { getJProfilingFromComboBox(), getJProfilingToComboBox() });
    }
    return jMemoryProfilingPanel;
}

From source file:my.honeypotadmin.AppMain.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.//from  w ww.  j  a  v a2s.  c  om
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    TabPanel = new javax.swing.JTabbedPane();
    UserPanel = new javax.swing.JPanel();
    UserToolbar = new javax.swing.JToolBar();
    UserToolLabel = new javax.swing.JLabel();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    jPanel1 = new javax.swing.JPanel();
    BillPanel = new javax.swing.JPanel();
    BillText = new javax.swing.JTextField();
    BillSlider = new javax.swing.JSlider();
    PMKeyPanel = new javax.swing.JPanel();
    PMKeySlider = new javax.swing.JSlider();
    PMKeyText = new javax.swing.JTextField();
    UserSave = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    Purchases = new javax.swing.JList();
    jPanel3 = new javax.swing.JPanel();
    UserPiePanel = new javax.swing.JPanel();
    UserScollPanel = new javax.swing.JScrollPane();
    UserList = new javax.swing.JList();
    UserSearch = new javax.swing.JTextField();
    RemoveUser = new javax.swing.JButton();
    AddUser = new javax.swing.JButton();
    StockPanel = new javax.swing.JPanel();
    StockScrollPanel = new javax.swing.JScrollPane();
    StockList = new javax.swing.JList();
    StockSearch = new javax.swing.JTextField();
    CurStockPanel = new javax.swing.JPanel();
    CurStockSlider = new javax.swing.JSlider();
    CurStockText = new javax.swing.JTextField();
    PricePanel = new javax.swing.JPanel();
    PriceSlider = new javax.swing.JSlider();
    PriceText = new javax.swing.JTextField();
    InitStockPanel = new javax.swing.JPanel();
    InitStockSlider = new javax.swing.JSlider();
    InitStockText = new javax.swing.JTextField();
    BarcodePanel = new javax.swing.JPanel();
    BarcodeSlider = new javax.swing.JSlider();
    BarcodeText = new javax.swing.JTextField();
    AddStock = new javax.swing.JButton();
    RemoveStock = new javax.swing.JButton();
    ItemToolBar = new javax.swing.JToolBar();
    ItemToolLabel = new javax.swing.JLabel();
    ItemSave = new javax.swing.JButton();
    jPanel4 = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    UserItemAddList = new javax.swing.JList();
    numberSpinner = new javax.swing.JSpinner();
    jButton3 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    MaintenancePane = new javax.swing.JPanel();
    MaitenancePanel = new javax.swing.JPanel();
    ExportBill = new javax.swing.JButton();
    StockRecount = new javax.swing.JButton();
    BillLabel = new javax.swing.JLabel();
    BillText1 = new javax.swing.JLabel();
    BillText2 = new javax.swing.JLabel();
    StockLabel = new javax.swing.JLabel();
    StockText1 = new javax.swing.JLabel();
    StockText2 = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    SQLText = new javax.swing.JTextField();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Honeypot Admin Panel v0.9 - Glenn McGuire 2015");
    setPreferredSize(new java.awt.Dimension(1100, 665));

    UserToolbar.setBackground(new java.awt.Color(204, 204, 204));
    UserToolbar.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));
    UserToolbar.setForeground(new java.awt.Color(204, 0, 153));
    UserToolbar.setRollover(true);

    UserToolLabel.setText("EMPTY");
    UserToolbar.add(UserToolLabel);

    BillPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Weekly Bill",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(0, 153, 51)));

    BillText.setHorizontalAlignment(javax.swing.JTextField.CENTER);

    BillSlider.setMaximum(10000);
    BillSlider.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            BillSliderStateChanged(evt);
        }
    });

    javax.swing.GroupLayout BillPanelLayout = new javax.swing.GroupLayout(BillPanel);
    BillPanel.setLayout(BillPanelLayout);
    BillPanelLayout.setHorizontalGroup(BillPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(BillPanelLayout.createSequentialGroup().addGap(30, 30, 30).addGroup(BillPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(BillSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(BillText, javax.swing.GroupLayout.PREFERRED_SIZE, 190,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(29, Short.MAX_VALUE)));
    BillPanelLayout.setVerticalGroup(BillPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BillPanelLayout.createSequentialGroup()
                    .addGap(18, 18, 18)
                    .addComponent(BillText, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(25, 25, 25)
                    .addComponent(BillSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    PMKeyPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "PMKey",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(0, 153, 51)));
    PMKeyPanel.setEnabled(false);

    PMKeySlider.setEnabled(false);

    PMKeyText.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    PMKeyText.setEnabled(false);

    javax.swing.GroupLayout PMKeyPanelLayout = new javax.swing.GroupLayout(PMKeyPanel);
    PMKeyPanel.setLayout(PMKeyPanelLayout);
    PMKeyPanelLayout.setHorizontalGroup(PMKeyPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PMKeyPanelLayout.createSequentialGroup().addGroup(PMKeyPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(PMKeyPanelLayout.createSequentialGroup().addGap(30, 30, 30).addComponent(
                            PMKeyText, javax.swing.GroupLayout.PREFERRED_SIZE, 190,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(PMKeyPanelLayout.createSequentialGroup().addGap(33, 33, 33).addComponent(
                            PMKeySlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(30, 30, 30)));
    PMKeyPanelLayout.setVerticalGroup(PMKeyPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PMKeyPanelLayout.createSequentialGroup()
                    .addGap(18, 18, 18)
                    .addComponent(PMKeyText, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(25, 25, 25)
                    .addComponent(PMKeySlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    UserSave.setText("Save");
    UserSave.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            UserSaveActionPerformed(evt);
        }
    });

    Purchases.setModel(new javax.swing.AbstractListModel() {
        String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };

        public int getSize() {
            return strings.length;
        }

        public Object getElementAt(int i) {
            return strings[i];
        }
    });
    jScrollPane1.setViewportView(Purchases);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(23, 23, 23)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(BillPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(51, 51, 51).addComponent(UserSave).addGap(43, 43, 43)
                                    .addComponent(PMKeyPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 697,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(11, 11, 11)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(BillPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(PMKeyPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(UserSave, javax.swing.GroupLayout.Alignment.LEADING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE)
                    .addGap(16, 16, 16)));

    jTabbedPane1.addTab("Basics", jPanel1);

    UserPiePanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    javax.swing.GroupLayout UserPiePanelLayout = new javax.swing.GroupLayout(UserPiePanel);
    UserPiePanel.setLayout(UserPiePanelLayout);
    UserPiePanelLayout.setHorizontalGroup(UserPiePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 651, Short.MAX_VALUE));
    UserPiePanelLayout.setVerticalGroup(UserPiePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 485, Short.MAX_VALUE));

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap()
                    .addComponent(UserPiePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(66, Short.MAX_VALUE)));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addComponent(UserPiePanel,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));

    jTabbedPane1.addTab("Graphics", jPanel3);

    UserList.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            UserListMouseClicked(evt);
        }
    });
    UserList.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyReleased(java.awt.event.KeyEvent evt) {
            UserListKeyReleased(evt);
        }
    });
    UserScollPanel.setViewportView(UserList);

    UserSearch.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            UserSearchKeyPressed(evt);
        }

        public void keyReleased(java.awt.event.KeyEvent evt) {
            UserSearchKeyReleased(evt);
        }
    });

    RemoveUser.setText("Remove Selected User");
    RemoveUser.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            RemoveUserActionPerformed(evt);
        }
    });

    AddUser.setText("Add New User");
    AddUser.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AddUserActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout UserPanelLayout = new javax.swing.GroupLayout(UserPanel);
    UserPanel.setLayout(UserPanelLayout);
    UserPanelLayout.setHorizontalGroup(UserPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(UserToolbar, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(UserPanelLayout.createSequentialGroup().addGap(14, 14, 14).addGroup(UserPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(UserPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(UserSearch, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(RemoveUser, javax.swing.GroupLayout.DEFAULT_SIZE, 297,
                                    Short.MAX_VALUE)
                            .addComponent(AddUser, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(UserScollPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 297,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18).addComponent(jTabbedPane1).addContainerGap()));
    UserPanelLayout.setVerticalGroup(UserPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(UserPanelLayout.createSequentialGroup()
                    .addGroup(UserPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(UserPanelLayout.createSequentialGroup().addContainerGap()
                                    .addComponent(jTabbedPane1))
                            .addGroup(UserPanelLayout.createSequentialGroup().addGap(24, 24, 24)
                                    .addComponent(UserScollPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 432,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(UserSearch, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(4, 4, 4)
                                    .addComponent(RemoveUser, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(AddUser, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(18, 18, 18).addComponent(UserToolbar, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    TabPanel.addTab("User Data", UserPanel);

    StockList.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            StockListMouseClicked(evt);
        }
    });
    StockScrollPanel.setViewportView(StockList);

    StockSearch.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            StockSearchActionPerformed(evt);
        }
    });
    StockSearch.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            StockSearchKeyPressed(evt);
        }

        public void keyReleased(java.awt.event.KeyEvent evt) {
            StockSearchKeyReleased(evt);
        }
    });

    CurStockPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Current Stock"));

    CurStockSlider.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            CurStockSliderMouseReleased(evt);
        }
    });
    CurStockSlider.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            CurStockSliderStateChanged(evt);
        }
    });

    CurStockText.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    CurStockText.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            CurStockTextActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout CurStockPanelLayout = new javax.swing.GroupLayout(CurStockPanel);
    CurStockPanel.setLayout(CurStockPanelLayout);
    CurStockPanelLayout.setHorizontalGroup(
            CurStockPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(CurStockPanelLayout.createSequentialGroup().addGap(52, 52, 52)
                            .addGroup(CurStockPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(CurStockSlider, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(CurStockText))
                            .addContainerGap(58, Short.MAX_VALUE)));
    CurStockPanelLayout.setVerticalGroup(CurStockPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CurStockPanelLayout.createSequentialGroup()
                    .addComponent(CurStockText, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18).addComponent(CurStockSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

    PricePanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Price"));

    PriceSlider.setMaximum(1000);
    PriceSlider.setMinorTickSpacing(5);
    PriceSlider.setValue(500);
    PriceSlider.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            PriceSliderMouseReleased(evt);
        }
    });
    PriceSlider.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            PriceSliderStateChanged(evt);
        }
    });

    PriceText.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    PriceText.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PriceTextActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout PricePanelLayout = new javax.swing.GroupLayout(PricePanel);
    PricePanel.setLayout(PricePanelLayout);
    PricePanelLayout.setHorizontalGroup(
            PricePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    PricePanelLayout.createSequentialGroup().addContainerGap(67, Short.MAX_VALUE)
                            .addGroup(PricePanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(PriceSlider, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(PriceText))
                            .addGap(43, 43, 43)));
    PricePanelLayout.setVerticalGroup(PricePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PricePanelLayout.createSequentialGroup()
                    .addComponent(PriceText, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(PriceSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

    InitStockPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Initial Stock"));

    InitStockSlider.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            InitStockSliderMouseReleased(evt);
        }
    });
    InitStockSlider.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            InitStockSliderStateChanged(evt);
        }
    });

    InitStockText.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    InitStockText.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            InitStockTextActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout InitStockPanelLayout = new javax.swing.GroupLayout(InitStockPanel);
    InitStockPanel.setLayout(InitStockPanelLayout);
    InitStockPanelLayout.setHorizontalGroup(
            InitStockPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(InitStockPanelLayout.createSequentialGroup().addGap(74, 74, 74)
                            .addGroup(InitStockPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(InitStockSlider, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(InitStockText))
                            .addContainerGap(36, Short.MAX_VALUE)));
    InitStockPanelLayout.setVerticalGroup(InitStockPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, InitStockPanelLayout.createSequentialGroup()
                    .addComponent(InitStockText, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18).addComponent(InitStockSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

    BarcodePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Barcode",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(0, 153, 51)));

    BarcodeSlider.setEnabled(false);

    BarcodeText.setEditable(false);
    BarcodeText.setHorizontalAlignment(javax.swing.JTextField.CENTER);

    javax.swing.GroupLayout BarcodePanelLayout = new javax.swing.GroupLayout(BarcodePanel);
    BarcodePanel.setLayout(BarcodePanelLayout);
    BarcodePanelLayout.setHorizontalGroup(BarcodePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(BarcodePanelLayout.createSequentialGroup().addGap(54, 54, 54)
                    .addGroup(BarcodePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(BarcodeText, javax.swing.GroupLayout.PREFERRED_SIZE, 190,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(BarcodeSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(56, Short.MAX_VALUE)));
    BarcodePanelLayout.setVerticalGroup(BarcodePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BarcodePanelLayout.createSequentialGroup()
                    .addComponent(BarcodeText, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(BarcodeSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    AddStock.setText("Add New Item");
    AddStock.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AddStockActionPerformed(evt);
        }
    });

    RemoveStock.setText("Remove Selected User");
    RemoveStock.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            RemoveStockActionPerformed(evt);
        }
    });

    ItemToolBar.setBackground(new java.awt.Color(204, 204, 204));
    ItemToolBar.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));
    ItemToolBar.setForeground(new java.awt.Color(204, 0, 153));
    ItemToolBar.setRollover(true);

    ItemToolLabel.setText("EMPTY");
    ItemToolBar.add(ItemToolLabel);

    ItemSave.setText("Save to Database");
    ItemSave.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ItemSaveActionPerformed(evt);
        }
    });

    jPanel4.setBackground(new java.awt.Color(255, 255, 204));
    jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Add Item to User",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP));

    UserItemAddList.setModel(new javax.swing.AbstractListModel() {
        String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };

        public int getSize() {
            return strings.length;
        }

        public Object getElementAt(int i) {
            return strings[i];
        }
    });
    jScrollPane2.setViewportView(UserItemAddList);

    numberSpinner.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
    numberSpinner.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100, 1));

    jButton3.setText("Add to User Account");
    jButton3.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton3ActionPerformed(evt);
        }
    });

    jButton4.setText("Remove from User Account");
    jButton4.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton4ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(jPanel4Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup().addContainerGap()
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addGroup(jPanel4Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(numberSpinner)
                            .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE))
                    .addContainerGap()));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                    .addComponent(numberSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 69,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18,
                                            Short.MAX_VALUE)
                                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 73,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(jButton4,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 73,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jScrollPane2))
                    .addContainerGap()));

    javax.swing.GroupLayout StockPanelLayout = new javax.swing.GroupLayout(StockPanel);
    StockPanel.setLayout(StockPanelLayout);
    StockPanelLayout.setHorizontalGroup(StockPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(StockPanelLayout.createSequentialGroup().addGap(14, 14, 14).addGroup(StockPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(StockSearch)
                    .addComponent(AddStock, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(RemoveStock, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 297, Short.MAX_VALUE)
                    .addComponent(StockScrollPanel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(StockPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(StockPanelLayout.createSequentialGroup().addGap(12, 12, 12)
                                    .addGroup(StockPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(BarcodePanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(CurStockPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(StockPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(InitStockPanel,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(PricePanel,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(ItemSave, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 736,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap())
            .addComponent(ItemToolBar, javax.swing.GroupLayout.Alignment.TRAILING,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));

    StockPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { BarcodePanel, InitStockPanel, PricePanel });

    StockPanelLayout.setVerticalGroup(StockPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(StockPanelLayout.createSequentialGroup().addGap(24, 24, 24).addGroup(StockPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(StockPanelLayout.createSequentialGroup()
                            .addComponent(StockScrollPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 430,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(StockSearch, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(RemoveStock)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(AddStock, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(StockPanelLayout.createSequentialGroup().addGroup(
                            StockPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(BarcodePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(PricePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(StockPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(InitStockPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(CurStockPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(ItemSave)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(18, 18, 18).addComponent(ItemToolBar, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    TabPanel.addTab("Stock Data", StockPanel);

    MaitenancePanel.setBackground(new java.awt.Color(255, 204, 204));
    MaitenancePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Weekly Bill Process",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));

    ExportBill.setText("Export Weekly Bills");
    ExportBill.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ExportBillActionPerformed(evt);
        }
    });

    StockRecount.setText("Perform Stock ReCounts");
    StockRecount.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            StockRecountActionPerformed(evt);
        }
    });

    BillLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
    BillLabel.setText("Export Weekly Bills");

    BillText1.setText(
            "By executing this process, the user data regarding weekly bills will be exported to the excel file");

    BillText2.setText(
            "'Output.csv' in the same directory as this software (Current Bills will be reset to $0.00!).");

    StockLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
    StockLabel.setText("Perform Stock ReCounts");

    StockText1.setText(
            "By executing this process, you will be prompted for the stock counts of all products in the system");

    StockText2.setText("consecutively, so please be ready with stock counts of all items.");

    javax.swing.GroupLayout MaitenancePanelLayout = new javax.swing.GroupLayout(MaitenancePanel);
    MaitenancePanel.setLayout(MaitenancePanelLayout);
    MaitenancePanelLayout.setHorizontalGroup(MaitenancePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    MaitenancePanelLayout.createSequentialGroup().addGroup(MaitenancePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(MaitenancePanelLayout.createSequentialGroup().addContainerGap()
                                    .addComponent(BillLabel))
                            .addGroup(MaitenancePanelLayout.createSequentialGroup().addGap(24, 24, 24)
                                    .addGroup(MaitenancePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(BillText2).addComponent(BillText1)))
                            .addGroup(MaitenancePanelLayout.createSequentialGroup().addGap(24, 24, 24)
                                    .addGroup(MaitenancePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(StockText2).addComponent(StockText1))))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(MaitenancePanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(ExportBill, javax.swing.GroupLayout.Alignment.TRAILING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 247,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(StockRecount, javax.swing.GroupLayout.Alignment.TRAILING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 247,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap())
            .addGroup(MaitenancePanelLayout.createSequentialGroup().addContainerGap()
                    .addComponent(StockLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 171,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    MaitenancePanelLayout.setVerticalGroup(MaitenancePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MaitenancePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(MaitenancePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(MaitenancePanelLayout.createSequentialGroup().addComponent(BillLabel)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(BillText1, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(BillText2))
                            .addComponent(ExportBill, javax.swing.GroupLayout.PREFERRED_SIZE, 65,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18).addComponent(StockLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            MaitenancePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(MaitenancePanelLayout.createSequentialGroup()
                                            .addComponent(StockText1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(StockText2))
                                    .addComponent(StockRecount, javax.swing.GroupLayout.PREFERRED_SIZE, 65,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jPanel2.setBackground(new java.awt.Color(204, 255, 204));
    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Misc",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP));

    SQLText.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SQLTextActionPerformed(evt);
        }
    });

    jButton1.setText("Send SQL Statement");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    jButton2.setText("REFRESH PROGRAM DATA");
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(SQLText, javax.swing.GroupLayout.PREFERRED_SIZE, 655,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, Short.MAX_VALUE).addComponent(jButton1,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 239,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(SQLText)
                    .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE))
                    .addGap(18, 18, 18).addComponent(jButton2).addContainerGap(21, Short.MAX_VALUE)));

    javax.swing.GroupLayout MaintenancePaneLayout = new javax.swing.GroupLayout(MaintenancePane);
    MaintenancePane.setLayout(MaintenancePaneLayout);
    MaintenancePaneLayout.setHorizontalGroup(
            MaintenancePaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(MaintenancePaneLayout.createSequentialGroup().addGap(18, 18, 18)
                            .addGroup(MaintenancePaneLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(MaitenancePanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addContainerGap()));
    MaintenancePaneLayout.setVerticalGroup(MaintenancePaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MaintenancePaneLayout.createSequentialGroup().addGap(14, 14, 14)
                    .addComponent(MaitenancePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(210, Short.MAX_VALUE)));

    TabPanel.addTab("Maintenance", MaintenancePane);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(5, 5, 5).addComponent(TabPanel).addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addComponent(TabPanel,
                    javax.swing.GroupLayout.PREFERRED_SIZE, 621, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));

    pack();
}

From source file:com.mirth.connect.client.ui.SettingsPanelServer.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*ww  w.ja  v a 2s  .com*/
 */
// <editor-fold defaultstate="collapsed" desc=" Generated Code
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    requireAuthenticationButtonGroup = new javax.swing.ButtonGroup();
    clearGlobalMapButtonGroup = new javax.swing.ButtonGroup();
    provideUsageStatsButtonGroup = new javax.swing.ButtonGroup();
    secureConnectionButtonGroup = new javax.swing.ButtonGroup();
    emailPanel = new javax.swing.JPanel();
    passwordField = new com.mirth.connect.client.ui.components.MirthPasswordField();
    passwordLabel = new javax.swing.JLabel();
    usernameLabel = new javax.swing.JLabel();
    usernameField = new com.mirth.connect.client.ui.components.MirthTextField();
    requireAuthenticationYesRadio = new com.mirth.connect.client.ui.components.MirthRadioButton();
    requireAuthenticationNoRadio = new com.mirth.connect.client.ui.components.MirthRadioButton();
    requireAuthenticationLabel = new javax.swing.JLabel();
    defaultFromAddressLabel = new javax.swing.JLabel();
    defaultFromAddressField = new com.mirth.connect.client.ui.components.MirthTextField();
    smtpPortLabel = new javax.swing.JLabel();
    smtpPortField = new com.mirth.connect.client.ui.components.MirthTextField();
    smtpHostField = new com.mirth.connect.client.ui.components.MirthTextField();
    smtpHostLabel = new javax.swing.JLabel();
    secureConnectionLabel = new javax.swing.JLabel();
    secureConnectionNoneRadio = new com.mirth.connect.client.ui.components.MirthRadioButton();
    secureConnectionTLSRadio = new com.mirth.connect.client.ui.components.MirthRadioButton();
    secureConnectionSSLRadio = new com.mirth.connect.client.ui.components.MirthRadioButton();
    smtpTimeoutField = new com.mirth.connect.client.ui.components.MirthTextField();
    smtpTimeoutLabel = new javax.swing.JLabel();
    testEmailButton = new javax.swing.JButton();
    generalPanel = new javax.swing.JPanel();
    provideUsageStatsLabel = new javax.swing.JLabel();
    provideUsageStatsYesRadio = new com.mirth.connect.client.ui.components.MirthRadioButton();
    provideUsageStatsNoRadio = new com.mirth.connect.client.ui.components.MirthRadioButton();
    provideUsageStatsMoreInfoLabel = new javax.swing.JLabel();
    serverNameField = new com.mirth.connect.client.ui.components.MirthTextField();
    serverNameLabel = new javax.swing.JLabel();
    channelPanel = new javax.swing.JPanel();
    clearGlobalMapLabel = new javax.swing.JLabel();
    clearGlobalMapYesRadio = new com.mirth.connect.client.ui.components.MirthRadioButton();
    clearGlobalMapNoRadio = new com.mirth.connect.client.ui.components.MirthRadioButton();
    queueBufferSizeLabel = new javax.swing.JLabel();
    defaultMetaDataLabel = new javax.swing.JLabel();
    defaultMetaDataSourceCheckBox = new com.mirth.connect.client.ui.components.MirthCheckBox();
    defaultMetaDataTypeCheckBox = new com.mirth.connect.client.ui.components.MirthCheckBox();
    defaultMetaDataVersionCheckBox = new com.mirth.connect.client.ui.components.MirthCheckBox();
    queueBufferSizeField = new com.mirth.connect.client.ui.components.MirthTextField();

    setBackground(new java.awt.Color(255, 255, 255));
    setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));

    emailPanel.setBackground(new java.awt.Color(255, 255, 255));
    emailPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
            javax.swing.BorderFactory.createMatteBorder(1, 0, 0, 0, new java.awt.Color(204, 204, 204)), "Email",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

    passwordField.setToolTipText("Password for global SMTP settings.");

    passwordLabel.setText("Password:");

    usernameLabel.setText("Username:");

    usernameField.setToolTipText("Username for global SMTP settings.");

    requireAuthenticationYesRadio.setBackground(new java.awt.Color(255, 255, 255));
    requireAuthenticationYesRadio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    requireAuthenticationButtonGroup.add(requireAuthenticationYesRadio);
    requireAuthenticationYesRadio.setSelected(true);
    requireAuthenticationYesRadio.setText("Yes");
    requireAuthenticationYesRadio.setToolTipText("Toggles authentication for global SMTP settings.");
    requireAuthenticationYesRadio.setMargin(new java.awt.Insets(0, 0, 0, 0));
    requireAuthenticationYesRadio.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            requireAuthenticationYesRadioActionPerformed(evt);
        }
    });

    requireAuthenticationNoRadio.setBackground(new java.awt.Color(255, 255, 255));
    requireAuthenticationNoRadio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    requireAuthenticationButtonGroup.add(requireAuthenticationNoRadio);
    requireAuthenticationNoRadio.setText("No");
    requireAuthenticationNoRadio.setToolTipText("Toggles authentication for global SMTP settings.");
    requireAuthenticationNoRadio.setMargin(new java.awt.Insets(0, 0, 0, 0));
    requireAuthenticationNoRadio.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            requireAuthenticationNoRadioActionPerformed(evt);
        }
    });

    requireAuthenticationLabel.setText("Require Authentication:");

    defaultFromAddressLabel.setText("Default From Address:");

    defaultFromAddressField.setToolTipText("Default \"from\" email address used for global SMTP settings.");

    smtpPortLabel.setText("SMTP Port:");

    smtpPortField.setToolTipText("SMTP port used for global SMTP settings.");

    smtpHostField.setToolTipText("SMTP host used for global SMTP settings.");

    smtpHostLabel.setText("SMTP Host:");

    secureConnectionLabel.setText("Secure Connection:");

    secureConnectionNoneRadio.setBackground(new java.awt.Color(255, 255, 255));
    secureConnectionNoneRadio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    secureConnectionButtonGroup.add(secureConnectionNoneRadio);
    secureConnectionNoneRadio.setSelected(true);
    secureConnectionNoneRadio.setText("None");
    secureConnectionNoneRadio.setToolTipText("Toggles STARTTLS and SSL connections for global SMTP settings.");
    secureConnectionNoneRadio.setMargin(new java.awt.Insets(0, 0, 0, 0));

    secureConnectionTLSRadio.setBackground(new java.awt.Color(255, 255, 255));
    secureConnectionTLSRadio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    secureConnectionButtonGroup.add(secureConnectionTLSRadio);
    secureConnectionTLSRadio.setText("STARTTLS");
    secureConnectionTLSRadio.setToolTipText("Toggles STARTTLS and SSL connections for global SMTP settings.");
    secureConnectionTLSRadio.setMargin(new java.awt.Insets(0, 0, 0, 0));

    secureConnectionSSLRadio.setBackground(new java.awt.Color(255, 255, 255));
    secureConnectionSSLRadio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    secureConnectionButtonGroup.add(secureConnectionSSLRadio);
    secureConnectionSSLRadio.setText("SSL");
    secureConnectionSSLRadio.setToolTipText("Toggles STARTTLS and SSL connections for global SMTP settings.");
    secureConnectionSSLRadio.setMargin(new java.awt.Insets(0, 0, 0, 0));

    smtpTimeoutField
            .setToolTipText("SMTP socket connection timeout in milliseconds used for global SMTP settings.");

    smtpTimeoutLabel.setText("Send Timeout (ms):");

    testEmailButton.setText("Send Test Email");
    testEmailButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            testEmailButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout emailPanelLayout = new javax.swing.GroupLayout(emailPanel);
    emailPanel.setLayout(emailPanelLayout);
    emailPanelLayout.setHorizontalGroup(emailPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(emailPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(emailPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(passwordLabel).addComponent(usernameLabel)
                            .addComponent(requireAuthenticationLabel).addComponent(secureConnectionLabel)
                            .addComponent(defaultFromAddressLabel).addComponent(smtpPortLabel)
                            .addComponent(smtpHostLabel).addComponent(smtpTimeoutLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(emailPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(smtpTimeoutField, javax.swing.GroupLayout.PREFERRED_SIZE, 75,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(emailPanelLayout.createSequentialGroup()
                                    .addComponent(smtpHostField, javax.swing.GroupLayout.PREFERRED_SIZE, 117,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(testEmailButton))
                            .addComponent(smtpPortField, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(defaultFromAddressField, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(emailPanelLayout.createSequentialGroup()
                                    .addComponent(secureConnectionNoneRadio,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(secureConnectionTLSRadio,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(secureConnectionSSLRadio,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(emailPanelLayout.createSequentialGroup()
                                    .addComponent(requireAuthenticationYesRadio,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(requireAuthenticationNoRadio,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(usernameField, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(passwordField, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));

    emailPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { defaultFromAddressField, passwordField, smtpHostField, usernameField });

    emailPanelLayout.setVerticalGroup(emailPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(emailPanelLayout.createSequentialGroup().addGroup(emailPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(smtpHostField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(smtpHostLabel).addComponent(testEmailButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(emailPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(smtpPortField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(smtpPortLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(emailPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(smtpTimeoutField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(smtpTimeoutLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(emailPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(defaultFromAddressLabel).addComponent(defaultFromAddressField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(emailPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(secureConnectionLabel)
                            .addComponent(secureConnectionNoneRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(secureConnectionTLSRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(secureConnectionSSLRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(emailPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(requireAuthenticationLabel)
                            .addComponent(requireAuthenticationYesRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(requireAuthenticationNoRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(emailPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(usernameField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(usernameLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(emailPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(passwordLabel).addComponent(passwordField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))));

    generalPanel.setBackground(new java.awt.Color(255, 255, 255));
    generalPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
            javax.swing.BorderFactory.createMatteBorder(1, 0, 0, 0, new java.awt.Color(204, 204, 204)),
            "General", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

    provideUsageStatsLabel.setText("Provide usage statistics:");

    provideUsageStatsYesRadio.setBackground(new java.awt.Color(255, 255, 255));
    provideUsageStatsYesRadio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    provideUsageStatsButtonGroup.add(provideUsageStatsYesRadio);
    provideUsageStatsYesRadio.setText("Yes");
    provideUsageStatsYesRadio.setToolTipText(
            "<html>Toggles sending usage statistics to Mirth.  These statistics <br>do not contain any PHI or channel/script implementations,<br> and help Mirth determine which connectors or areas of<br>Mirth Connect are most widely used.</html>");
    provideUsageStatsYesRadio.setMargin(new java.awt.Insets(0, 0, 0, 0));

    provideUsageStatsNoRadio.setBackground(new java.awt.Color(255, 255, 255));
    provideUsageStatsNoRadio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    provideUsageStatsButtonGroup.add(provideUsageStatsNoRadio);
    provideUsageStatsNoRadio.setText("No");
    provideUsageStatsNoRadio.setToolTipText(
            "<html>Toggles sending usage statistics to Mirth.  These statistics <br>do not contain any PHI or channel/script implementations,<br> and help Mirth determine which connectors or areas of<br>Mirth Connect are most widely used.</html>");
    provideUsageStatsNoRadio.setMargin(new java.awt.Insets(0, 0, 0, 0));

    provideUsageStatsMoreInfoLabel.setText("<html><font color=blue><u>More Info</u></font></html>");
    provideUsageStatsMoreInfoLabel.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            provideUsageStatsMoreInfoLabelMouseClicked(evt);
        }
    });

    serverNameField.setToolTipText(
            "<html>The server name which will appear in the Administrator title, taskbar/dock<br>and desktop shortcut. This setting applies for all users on this server.</html>");

    serverNameLabel.setText("Server name:");

    javax.swing.GroupLayout generalPanelLayout = new javax.swing.GroupLayout(generalPanel);
    generalPanel.setLayout(generalPanelLayout);
    generalPanelLayout.setHorizontalGroup(generalPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(generalPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(generalPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(serverNameLabel, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(provideUsageStatsLabel, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(generalPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(generalPanelLayout.createSequentialGroup()
                                    .addComponent(provideUsageStatsYesRadio,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(provideUsageStatsNoRadio,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(provideUsageStatsMoreInfoLabel,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(serverNameField, javax.swing.GroupLayout.PREFERRED_SIZE, 168,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(87, Short.MAX_VALUE)));
    generalPanelLayout.setVerticalGroup(generalPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(generalPanelLayout.createSequentialGroup().addGroup(generalPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(serverNameField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(serverNameLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(generalPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(provideUsageStatsYesRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(provideUsageStatsLabel)
                            .addComponent(provideUsageStatsNoRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(provideUsageStatsMoreInfoLabel,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(1, 1, 1)));

    channelPanel.setBackground(new java.awt.Color(255, 255, 255));
    channelPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
            javax.swing.BorderFactory.createMatteBorder(1, 0, 0, 0, new java.awt.Color(204, 204, 204)),
            "Channel", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

    clearGlobalMapLabel.setText("Clear global map on redeploy:");

    clearGlobalMapYesRadio.setBackground(new java.awt.Color(255, 255, 255));
    clearGlobalMapYesRadio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    clearGlobalMapButtonGroup.add(clearGlobalMapYesRadio);
    clearGlobalMapYesRadio.setSelected(true);
    clearGlobalMapYesRadio.setText("Yes");
    clearGlobalMapYesRadio.setToolTipText("Toggles clearing the global map when redeploying all channels.");
    clearGlobalMapYesRadio.setMargin(new java.awt.Insets(0, 0, 0, 0));

    clearGlobalMapNoRadio.setBackground(new java.awt.Color(255, 255, 255));
    clearGlobalMapNoRadio.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    clearGlobalMapButtonGroup.add(clearGlobalMapNoRadio);
    clearGlobalMapNoRadio.setText("No");
    clearGlobalMapNoRadio.setToolTipText("Toggles clearing the global map when redeploying all channels.");
    clearGlobalMapNoRadio.setMargin(new java.awt.Insets(0, 0, 0, 0));

    queueBufferSizeLabel.setText("Default Queue Buffer Size:");

    defaultMetaDataLabel.setText("Default Metadata Columns:");

    defaultMetaDataSourceCheckBox.setBackground(new java.awt.Color(255, 255, 255));
    defaultMetaDataSourceCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    defaultMetaDataSourceCheckBox.setText("Source");
    defaultMetaDataSourceCheckBox.setToolTipText(
            "<html>If checked, the Source metadata column will be added by<br/>default when a user creates a new channel. The user can<br/>choose to remove the column on the channel's Summary tab.</html>");
    defaultMetaDataSourceCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));

    defaultMetaDataTypeCheckBox.setBackground(new java.awt.Color(255, 255, 255));
    defaultMetaDataTypeCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    defaultMetaDataTypeCheckBox.setText("Type");
    defaultMetaDataTypeCheckBox.setToolTipText(
            "<html>If checked, the Type metadata column will be added by<br/>default when a user creates a new channel. The user can<br/>choose to remove the column on the channel's Summary tab.</html>");
    defaultMetaDataTypeCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));

    defaultMetaDataVersionCheckBox.setBackground(new java.awt.Color(255, 255, 255));
    defaultMetaDataVersionCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    defaultMetaDataVersionCheckBox.setText("Version");
    defaultMetaDataVersionCheckBox.setToolTipText(
            "<html>If checked, the Version metadata column will be added by<br/>default when a user creates a new channel. The user can<br/>choose to remove the column on the channel's Summary tab.</html>");
    defaultMetaDataVersionCheckBox.setMargin(new java.awt.Insets(0, 0, 0, 0));

    queueBufferSizeField
            .setToolTipText("The default source/destination queue buffer size to use for new channels.");

    javax.swing.GroupLayout channelPanelLayout = new javax.swing.GroupLayout(channelPanel);
    channelPanel.setLayout(channelPanelLayout);
    channelPanelLayout.setHorizontalGroup(channelPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(channelPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(channelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(defaultMetaDataLabel).addComponent(clearGlobalMapLabel)
                            .addComponent(queueBufferSizeLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(channelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(channelPanelLayout.createSequentialGroup()
                                    .addComponent(clearGlobalMapYesRadio,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(clearGlobalMapNoRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(channelPanelLayout.createSequentialGroup()
                                    .addComponent(defaultMetaDataSourceCheckBox,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(defaultMetaDataTypeCheckBox,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(defaultMetaDataVersionCheckBox,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(queueBufferSizeField, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    channelPanelLayout.setVerticalGroup(channelPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(channelPanelLayout.createSequentialGroup().addGap(0, 0, 0).addGroup(channelPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(clearGlobalMapLabel)
                    .addComponent(clearGlobalMapYesRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(clearGlobalMapNoRadio, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(channelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(queueBufferSizeLabel).addComponent(queueBufferSizeField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(channelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(defaultMetaDataLabel)
                            .addComponent(defaultMetaDataSourceCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(defaultMetaDataTypeCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(defaultMetaDataVersionCheckBox,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(generalPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(emailPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(channelPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(12, 12, 12)
                    .addComponent(generalPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(channelPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(emailPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(57, Short.MAX_VALUE)));
}

From source file:com.cmsoftware.keyron.vista.admin.EditarEmpleado.java

@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    panel_titulo = new javax.swing.JPanel();
    label_titulo = new javax.swing.JLabel();
    label_logo = new javax.swing.JLabel();
    panel_contenido = new javax.swing.JPanel();
    labelCedula = new javax.swing.JLabel();
    labelNombre = new javax.swing.JLabel();
    nombre = new javax.swing.JTextField();
    labelApellido = new javax.swing.JLabel();
    apellido = new javax.swing.JTextField();
    labelDireccion = new javax.swing.JLabel();
    direccion = new javax.swing.JTextField();
    labelTelefono = new javax.swing.JLabel();
    telefono = new javax.swing.JTextField();
    labelEmail = new javax.swing.JLabel();
    email = new javax.swing.JTextField();
    labelNivel = new javax.swing.JLabel();
    nivel = new javax.swing.JLabel();
    guardar = new javax.swing.JButton();
    cancelar = new javax.swing.JButton();
    restaurar = new javax.swing.JButton();
    cedula = new javax.swing.JLabel();
    panel_pie = new javax.swing.JPanel();
    labelError = new javax.swing.JLabel();

    setClosable(true);//  w  ww  . ja  va 2  s.  c  om
    setIconifiable(true);
    setTitle("Editar Empleado");
    setMaximumSize(new java.awt.Dimension(580, 490));
    setMinimumSize(new java.awt.Dimension(580, 490));
    setNormalBounds(new java.awt.Rectangle(0, 0, 91, 0));
    setPreferredSize(new java.awt.Dimension(580, 490));

    panel_titulo.setBackground(new java.awt.Color(119, 41, 83));

    label_titulo
            .setFont(com.cmsoftware.keyron.controlador.Optimizacion.getInstancia().getFuente().MyFont(1, 16f));
    label_titulo.setForeground(new java.awt.Color(255, 255, 255));
    label_titulo.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/cmsoftware/keyron/recursos/encabezado_edit_empleado.png"))); // NOI18N
    label_titulo.setText("Editar Informacin de Empleado");

    label_logo.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/cmsoftware/keyron/recursos/iconoBarra.png"))); // NOI18N

    javax.swing.GroupLayout panel_tituloLayout = new javax.swing.GroupLayout(panel_titulo);
    panel_titulo.setLayout(panel_tituloLayout);
    panel_tituloLayout.setHorizontalGroup(
            panel_tituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panel_tituloLayout.createSequentialGroup().addGap(21, 21, 21)
                            .addComponent(label_titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 398,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(label_logo).addGap(25, 25, 25)));
    panel_tituloLayout
            .setVerticalGroup(panel_tituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(label_titulo, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            panel_tituloLayout.createSequentialGroup()
                                    .addComponent(label_logo, javax.swing.GroupLayout.PREFERRED_SIZE, 47,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE)));

    panel_contenido.setBackground(new java.awt.Color(246, 246, 246));

    labelCedula.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    labelCedula.setForeground(new java.awt.Color(90, 90, 90));
    labelCedula.setText("Cdula:");

    labelNombre.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    labelNombre.setForeground(new java.awt.Color(90, 90, 90));
    labelNombre.setText("Nombres:");

    nombre.setFont(com.cmsoftware.keyron.controlador.Optimizacion.getInstancia().getFuente().MyFont(0, 14f));
    nombre.setToolTipText("Ingrese los nombres");
    nombre.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    nombre.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            nombreKeyTyped(evt);
        }
    });

    labelApellido.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    labelApellido.setForeground(new java.awt.Color(90, 90, 90));
    labelApellido.setText("Apellidos:");

    apellido.setFont(com.cmsoftware.keyron.controlador.Optimizacion.getInstancia().getFuente().MyFont(0, 14f));
    apellido.setToolTipText("Ingrese los apellidos");
    apellido.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    apellido.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            apellidoKeyTyped(evt);
        }
    });

    labelDireccion.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    labelDireccion.setForeground(new java.awt.Color(90, 90, 90));
    labelDireccion.setText("Direccin:");

    direccion.setFont(com.cmsoftware.keyron.controlador.Optimizacion.getInstancia().getFuente().MyFont(0, 14f));
    direccion.setToolTipText("Ingrese la direccin");
    direccion.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    direccion.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            direccionKeyTyped(evt);
        }
    });

    labelTelefono.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    labelTelefono.setForeground(new java.awt.Color(90, 90, 90));
    labelTelefono.setText("Telfono:");

    telefono.setFont(com.cmsoftware.keyron.controlador.Optimizacion.getInstancia().getFuente().MyFont(0, 14f));
    telefono.setToolTipText("Ingrese nmero de telfono");
    telefono.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    telefono.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            telefonoKeyTyped(evt);
        }
    });

    labelEmail.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    labelEmail.setForeground(new java.awt.Color(90, 90, 90));
    labelEmail.setText("E-mail:");

    email.setFont(com.cmsoftware.keyron.controlador.Optimizacion.getInstancia().getFuente().MyFont(0, 14f));
    email.setToolTipText("Ingrese un E-mail vlido");
    email.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    email.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            emailKeyTyped(evt);
        }
    });

    labelNivel.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    labelNivel.setForeground(new java.awt.Color(90, 90, 90));
    labelNivel.setText("Nivel:");

    nivel.setFont(com.cmsoftware.keyron.controlador.Optimizacion.getInstancia().getFuente().MyFont(0, 14f));
    nivel.setForeground(new java.awt.Color(90, 90, 90));
    nivel.setText("EMPLEADO");
    nivel.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    guardar.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    guardar.setForeground(new java.awt.Color(89, 89, 89));
    guardar.setText("Guardar");
    guardar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
    guardar.setMargin(new java.awt.Insets(6, 14, 6, 14));
    guardar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            guardarActionPerformed(evt);
        }
    });

    cancelar.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    cancelar.setForeground(new java.awt.Color(89, 89, 89));
    cancelar.setText("Cancelar");
    cancelar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
    cancelar.setMargin(new java.awt.Insets(6, 14, 6, 14));
    cancelar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelarActionPerformed(evt);
        }
    });

    restaurar.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    restaurar.setForeground(new java.awt.Color(89, 89, 89));
    restaurar.setText("Restaurar");
    restaurar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
    restaurar.setMargin(new java.awt.Insets(6, 14, 6, 14));
    restaurar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            restaurarActionPerformed(evt);
        }
    });

    cedula.setFont(com.cmsoftware.keyron.controlador.Optimizacion.getInstancia().getFuente().MyFont(0, 14f));
    cedula.setForeground(new java.awt.Color(90, 90, 90));
    cedula.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    javax.swing.GroupLayout panel_contenidoLayout = new javax.swing.GroupLayout(panel_contenido);
    panel_contenido.setLayout(panel_contenidoLayout);
    panel_contenidoLayout.setHorizontalGroup(panel_contenidoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panel_contenidoLayout.createSequentialGroup().addGap(27, 27, 27)
                    .addGroup(panel_contenidoLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panel_contenidoLayout.createSequentialGroup()
                                    .addComponent(telefono, javax.swing.GroupLayout.PREFERRED_SIZE, 167,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(email))
                            .addComponent(direccion)
                            .addGroup(panel_contenidoLayout.createSequentialGroup()
                                    .addGroup(panel_contenidoLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(panel_contenidoLayout.createSequentialGroup()
                                                    .addComponent(labelTelefono).addGap(125, 125, 125)
                                                    .addComponent(labelEmail))
                                            .addGroup(panel_contenidoLayout.createSequentialGroup()
                                                    .addComponent(guardar)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(restaurar)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 165,
                                            Short.MAX_VALUE)
                                    .addComponent(cancelar))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    panel_contenidoLayout.createSequentialGroup().addGroup(panel_contenidoLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(nombre)
                                            .addGroup(panel_contenidoLayout.createSequentialGroup()
                                                    .addGroup(panel_contenidoLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(labelDireccion,
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(labelNombre,
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(labelCedula,
                                                                    javax.swing.GroupLayout.Alignment.LEADING))
                                                    .addGap(0, 0, Short.MAX_VALUE))
                                            .addComponent(
                                                    cedula, javax.swing.GroupLayout.DEFAULT_SIZE, 254,
                                                    Short.MAX_VALUE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(panel_contenidoLayout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(labelNivel)
                                                    .addGroup(panel_contenidoLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(labelApellido)
                                                            .addComponent(nivel,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(apellido,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 228,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGap(49, 49, 49)));

    panel_contenidoLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { guardar, restaurar });

    panel_contenidoLayout.setVerticalGroup(
            panel_contenidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panel_contenidoLayout.createSequentialGroup().addGap(19, 19, 19)
                            .addGroup(panel_contenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(labelCedula).addComponent(labelNivel))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(panel_contenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(nivel, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(cedula, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(panel_contenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(labelNombre).addComponent(labelApellido))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(panel_contenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(apellido, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(labelDireccion)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(direccion, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(panel_contenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(labelEmail).addComponent(labelTelefono))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(panel_contenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(telefono, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(email, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(26, 26, 26)
                            .addGroup(panel_contenidoLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(cancelar).addComponent(guardar).addComponent(restaurar))
                            .addContainerGap(33, Short.MAX_VALUE)));

    panel_contenidoLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { cancelar, guardar, restaurar });

    panel_pie.setBackground(new java.awt.Color(119, 41, 83));

    labelError.setForeground(new java.awt.Color(255, 255, 255));
    labelError.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

    javax.swing.GroupLayout panel_pieLayout = new javax.swing.GroupLayout(panel_pie);
    panel_pie.setLayout(panel_pieLayout);
    panel_pieLayout
            .setHorizontalGroup(panel_pieLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelError, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    panel_pieLayout
            .setVerticalGroup(panel_pieLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            panel_pieLayout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addComponent(
                                    labelError, javax.swing.GroupLayout.PREFERRED_SIZE, 47,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panel_contenido, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(panel_pie, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addComponent(panel_titulo, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(panel_titulo, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, 0)
                    .addComponent(panel_contenido, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(0, 0, 0).addComponent(panel_pie, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

    pack();
}

From source file:com.willwinder.universalgcodesender.MainWindow.java

/** This method is called from within the constructor to
 * initialize the form./*from   ww  w .  j  av  a 2 s .co  m*/
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    lineBreakGroup = new javax.swing.ButtonGroup();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    jMenuItem1 = new javax.swing.JMenuItem();
    jMenuItem3 = new javax.swing.JMenuItem();
    jMenuItem4 = new javax.swing.JMenuItem();
    jogUnitsGroup = new javax.swing.ButtonGroup();
    scrollWindowCheckBox = new javax.swing.JCheckBox();
    bottomTabbedPane = new javax.swing.JTabbedPane();
    commandsPanel = new javax.swing.JPanel();
    commandLabel = new javax.swing.JLabel();
    commandTextField = new com.willwinder.universalgcodesender.uielements.CommandTextArea(backend);
    consoleScrollPane = new javax.swing.JScrollPane();
    consoleTextArea = new javax.swing.JTextArea();
    commandTableScrollPane = new javax.swing.JScrollPane();
    commandTable = new com.willwinder.universalgcodesender.uielements.GcodeTable();
    controlContextTabbedPane = new javax.swing.JTabbedPane();
    machineControlPanel = new javax.swing.JPanel();
    helpButtonMachineControl = new javax.swing.JButton();
    resetYButton = new javax.swing.JButton();
    softResetMachineControl = new javax.swing.JButton();
    requestStateInformation = new javax.swing.JButton();
    returnToZeroButton = new javax.swing.JButton();
    toggleCheckMode = new javax.swing.JButton();
    resetCoordinatesButton = new javax.swing.JButton();
    performHomingCycleButton = new javax.swing.JButton();
    killAlarmLock = new javax.swing.JButton();
    resetXButton = new javax.swing.JButton();
    resetZButton = new javax.swing.JButton();
    keyboardMovementPanel = new javax.swing.JPanel();
    stepSizeSpinner = new javax.swing.JSpinner();
    arrowMovementEnabled = new javax.swing.JCheckBox();
    movementButtonPanel = new javax.swing.JPanel();
    zMinusButton = new javax.swing.JButton();
    yMinusButton = new javax.swing.JButton();
    xPlusButton = new javax.swing.JButton();
    xMinusButton = new javax.swing.JButton();
    zPlusButton = new javax.swing.JButton();
    yPlusButton = new javax.swing.JButton();
    stepSizeLabel = new javax.swing.JLabel();
    inchRadioButton = new javax.swing.JRadioButton();
    mmRadioButton = new javax.swing.JRadioButton();
    macroPane = new javax.swing.JScrollPane();
    macroPanel = new com.willwinder.universalgcodesender.uielements.MacroPanel(settings, backend);
    connectionPanel = new javax.swing.JPanel();
    commPortComboBox = new javax.swing.JComboBox();
    baudrateSelectionComboBox = new javax.swing.JComboBox();
    opencloseButton = new javax.swing.JButton();
    refreshButton = new javax.swing.JButton();
    baudLabel = new javax.swing.JLabel();
    portLabel = new javax.swing.JLabel();
    firmwareLabel = new javax.swing.JLabel();
    firmwareComboBox = new javax.swing.JComboBox();
    showVerboseOutputCheckBox = new javax.swing.JCheckBox();
    statusPanel = new javax.swing.JPanel();
    activeStateLabel = new javax.swing.JLabel();
    activeStateValueLabel = new javax.swing.JLabel();
    machinePosition = new javax.swing.JLabel();
    machinePositionXLabel = new javax.swing.JLabel();
    machinePositionYLabel = new javax.swing.JLabel();
    machinePositionZLabel = new javax.swing.JLabel();
    workPositionLabel = new javax.swing.JLabel();
    workPositionXLabel = new javax.swing.JLabel();
    workPositionYLabel = new javax.swing.JLabel();
    workPositionZLabel = new javax.swing.JLabel();
    machinePositionXValueLabel = new javax.swing.JLabel();
    machinePositionYValueLabel = new javax.swing.JLabel();
    machinePositionZValueLabel = new javax.swing.JLabel();
    workPositionXValueLabel = new javax.swing.JLabel();
    workPositionYValueLabel = new javax.swing.JLabel();
    workPositionZValueLabel = new javax.swing.JLabel();
    latestCommentValueLabel = new javax.swing.JLabel();
    latestCommentLabel = new javax.swing.JLabel();
    showCommandTableCheckBox = new javax.swing.JCheckBox();
    fileModePanel = new javax.swing.JPanel();
    sendButton = new javax.swing.JButton();
    pauseButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    visualizeButton = new javax.swing.JButton();
    browseButton = new javax.swing.JButton();
    saveButton = new javax.swing.JButton();
    fileRunPanel = new javax.swing.JPanel();
    remainingTimeValueLabel = new javax.swing.JLabel();
    sentRowsValueLabel = new javax.swing.JLabel();
    remainingRowsLabel = new javax.swing.JLabel();
    rowsValueLabel = new javax.swing.JLabel();
    remainingTimeLabel = new javax.swing.JLabel();
    durationValueLabel = new javax.swing.JLabel();
    durationLabel = new javax.swing.JLabel();
    remainingRowsValueLabel = new javax.swing.JLabel();
    sentRowsLabel = new javax.swing.JLabel();
    rowsLabel = new javax.swing.JLabel();
    mainMenuBar = new javax.swing.JMenuBar();
    settingsMenu = new javax.swing.JMenu();
    grblConnectionSettingsMenuItem = new javax.swing.JMenuItem();
    firmwareSettingsMenu = new javax.swing.JMenu();
    grblFirmwareSettingsMenuItem = new javax.swing.JMenuItem();
    PendantMenu = new javax.swing.JMenu();
    startPendantServerButton = new javax.swing.JMenuItem();
    stopPendantServerButton = new javax.swing.JMenuItem();

    jMenuItem1.setText("jMenuItem1");

    jMenuItem3.setText("jMenuItem3");

    jMenuItem4.setText("jMenuItem4");

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setMinimumSize(new java.awt.Dimension(640, 520));

    scrollWindowCheckBox.setSelected(true);
    scrollWindowCheckBox.setText("Scroll output window");
    scrollWindowCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            scrollWindowCheckBoxActionPerformed(evt);
        }
    });

    bottomTabbedPane.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
    bottomTabbedPane.setMinimumSize(new java.awt.Dimension(0, 0));
    bottomTabbedPane.setPreferredSize(new java.awt.Dimension(468, 100));

    commandsPanel.setLayout(new java.awt.GridBagLayout());

    commandLabel.setText("Command");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    commandsPanel.add(commandLabel, gridBagConstraints);

    commandTextField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            commandTextFieldActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    commandsPanel.add(commandTextField, gridBagConstraints);

    consoleTextArea.setEditable(false);
    consoleTextArea.setColumns(20);
    consoleTextArea.setDocument(new LengthLimitedDocument(consoleSize));
    consoleTextArea.setRows(5);
    consoleTextArea.setMaximumSize(new java.awt.Dimension(32767, 32767));
    consoleTextArea.setMinimumSize(new java.awt.Dimension(0, 0));
    consoleScrollPane.setViewportView(consoleTextArea);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    commandsPanel.add(consoleScrollPane, gridBagConstraints);

    bottomTabbedPane.addTab("Commands", commandsPanel);

    commandTable.setMaximumSize(new java.awt.Dimension(32767, 32767));
    commandTable.getTableHeader().setReorderingAllowed(false);
    commandTableScrollPane.setViewportView(commandTable);

    bottomTabbedPane.addTab("Command Table", commandTableScrollPane);

    controlContextTabbedPane.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
    controlContextTabbedPane.setMinimumSize(new java.awt.Dimension(395, 175));
    controlContextTabbedPane.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            controlContextTabbedPaneComponentShown(evt);
        }
    });

    helpButtonMachineControl.setText("Help");
    helpButtonMachineControl.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            helpButtonMachineControlActionPerformed(evt);
        }
    });

    resetYButton.setText("Reset Y Axis");
    resetYButton.setEnabled(false);
    resetYButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            resetYCoordinateButtonActionPerformed(evt);
        }
    });

    softResetMachineControl.setText("Soft Reset");
    softResetMachineControl.setEnabled(false);
    softResetMachineControl.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            softResetMachineControlActionPerformed(evt);
        }
    });

    requestStateInformation.setText("$G");
    requestStateInformation.setEnabled(false);
    requestStateInformation.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            requestStateInformationActionPerformed(evt);
        }
    });

    returnToZeroButton.setText("Return to Zero");
    returnToZeroButton.setEnabled(false);
    returnToZeroButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            returnToZeroButtonActionPerformed(evt);
        }
    });

    toggleCheckMode.setText("$C");
    toggleCheckMode.setEnabled(false);
    toggleCheckMode.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            toggleCheckModeActionPerformed(evt);
        }
    });

    resetCoordinatesButton.setText("Reset Zero");
    resetCoordinatesButton.setEnabled(false);
    resetCoordinatesButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            resetCoordinatesButtonActionPerformed(evt);
        }
    });

    performHomingCycleButton.setText("$H");
    performHomingCycleButton.setEnabled(false);
    performHomingCycleButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            performHomingCycleButtonActionPerformed(evt);
        }
    });

    killAlarmLock.setText("$X");
    killAlarmLock.setEnabled(false);
    killAlarmLock.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            killAlarmLockActionPerformed(evt);
        }
    });

    resetXButton.setText("Reset X Axis");
    resetXButton.setEnabled(false);
    resetXButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            resetXCoordinateButtonActionPerformed(evt);
        }
    });

    resetZButton.setText("Reset Z Axis");
    resetZButton.setEnabled(false);
    resetZButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            resetZCoordinateButtonActionPerformed(evt);
        }
    });

    keyboardMovementPanel.setPreferredSize(new java.awt.Dimension(247, 180));

    stepSizeSpinner.setModel(new StepSizeSpinnerModel(1.0, 0.0, null, 1.0));
    stepSizeSpinner.setEnabled(false);
    stepSizeSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            stepSizeSpinnerStateChanged(evt);
        }
    });

    arrowMovementEnabled.setText("Enable Keyboard Movement");
    arrowMovementEnabled.setEnabled(false);

    zMinusButton.setText("Z-");
    zMinusButton.setEnabled(false);
    zMinusButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            zMinusButtonActionPerformed(evt);
        }
    });

    yMinusButton.setText("Y-");
    yMinusButton.setEnabled(false);
    yMinusButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            yMinusButtonActionPerformed(evt);
        }
    });

    xPlusButton.setText("X+");
    xPlusButton.setEnabled(false);
    xPlusButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            xPlusButtonActionPerformed(evt);
        }
    });

    xMinusButton.setText("X-");
    xMinusButton.setEnabled(false);
    xMinusButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            xMinusButtonActionPerformed(evt);
        }
    });

    zPlusButton.setText("Z+");
    zPlusButton.setEnabled(false);
    zPlusButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            zPlusButtonActionPerformed(evt);
        }
    });

    yPlusButton.setText("Y+");
    yPlusButton.setEnabled(false);
    yPlusButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            yPlusButtonActionPerformed(evt);
        }
    });

    org.jdesktop.layout.GroupLayout movementButtonPanelLayout = new org.jdesktop.layout.GroupLayout(
            movementButtonPanel);
    movementButtonPanel.setLayout(movementButtonPanelLayout);
    movementButtonPanelLayout.setHorizontalGroup(movementButtonPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(movementButtonPanelLayout.createSequentialGroup()
                    .add(xMinusButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(movementButtonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(yPlusButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(yMinusButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(xPlusButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(movementButtonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, zMinusButton,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, zPlusButton,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))));
    movementButtonPanelLayout.setVerticalGroup(
            movementButtonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(movementButtonPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)
                            .add(xMinusButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(xPlusButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(movementButtonPanelLayout.createSequentialGroup()
                                    .add(yPlusButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(yMinusButton,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(movementButtonPanelLayout.createSequentialGroup()
                                    .add(zPlusButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(zMinusButton,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))));

    stepSizeLabel.setText("Step size:");
    stepSizeLabel.setEnabled(false);

    jogUnitsGroup.add(inchRadioButton);
    inchRadioButton.setText("inch");
    inchRadioButton.setEnabled(false);
    inchRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            inchRadioButtonActionPerformed(evt);
        }
    });

    jogUnitsGroup.add(mmRadioButton);
    mmRadioButton.setText("millimeters");
    mmRadioButton.setEnabled(false);
    mmRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            mmRadioButtonActionPerformed(evt);
        }
    });

    org.jdesktop.layout.GroupLayout keyboardMovementPanelLayout = new org.jdesktop.layout.GroupLayout(
            keyboardMovementPanel);
    keyboardMovementPanel.setLayout(keyboardMovementPanelLayout);
    keyboardMovementPanelLayout.setHorizontalGroup(keyboardMovementPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(keyboardMovementPanelLayout.createSequentialGroup().add(keyboardMovementPanelLayout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(arrowMovementEnabled)
                    .add(keyboardMovementPanelLayout.createSequentialGroup().addContainerGap()
                            .add(keyboardMovementPanelLayout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(keyboardMovementPanelLayout.createSequentialGroup()
                                            .add(keyboardMovementPanelLayout
                                                    .createParallelGroup(
                                                            org.jdesktop.layout.GroupLayout.LEADING)
                                                    .add(inchRadioButton).add(stepSizeLabel))
                                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                            .add(keyboardMovementPanelLayout
                                                    .createParallelGroup(
                                                            org.jdesktop.layout.GroupLayout.LEADING)
                                                    .add(stepSizeSpinner,
                                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70,
                                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                                    .add(mmRadioButton)))
                                    .add(movementButtonPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap(23, Short.MAX_VALUE)));
    keyboardMovementPanelLayout.setVerticalGroup(keyboardMovementPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(keyboardMovementPanelLayout.createSequentialGroup().add(arrowMovementEnabled)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(keyboardMovementPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(stepSizeLabel)
                            .add(stepSizeSpinner, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(keyboardMovementPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)
                            .add(inchRadioButton).add(mmRadioButton))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(movementButtonPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(46, Short.MAX_VALUE)));

    keyboardMovementPanelLayout.linkSize(new java.awt.Component[] { stepSizeLabel, stepSizeSpinner },
            org.jdesktop.layout.GroupLayout.VERTICAL);

    org.jdesktop.layout.GroupLayout machineControlPanelLayout = new org.jdesktop.layout.GroupLayout(
            machineControlPanel);
    machineControlPanel.setLayout(machineControlPanelLayout);
    machineControlPanelLayout.setHorizontalGroup(machineControlPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(machineControlPanelLayout.createSequentialGroup().add(machineControlPanelLayout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(machineControlPanelLayout.createSequentialGroup()
                            .add(requestStateInformation, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 49,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(helpButtonMachineControl))
                    .add(resetCoordinatesButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 159,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(returnToZeroButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 159,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(softResetMachineControl, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 159,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(machineControlPanelLayout.createSequentialGroup()
                            .add(performHomingCycleButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 49,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(6, 6, 6)
                            .add(killAlarmLock, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 49,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(6, 6, 6).add(toggleCheckMode, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    49, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .add(6, 6, 6)
                    .add(machineControlPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(resetXButton).add(resetYButton).add(resetZButton))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 65, Short.MAX_VALUE)
                    .add(keyboardMovementPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));
    machineControlPanelLayout.setVerticalGroup(machineControlPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(machineControlPanelLayout.createSequentialGroup().add(machineControlPanelLayout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(machineControlPanelLayout.createSequentialGroup().add(resetCoordinatesButton)
                            .add(6, 6, 6).add(returnToZeroButton).add(6, 6, 6).add(softResetMachineControl)
                            .add(6, 6, 6)
                            .add(machineControlPanelLayout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(performHomingCycleButton).add(killAlarmLock).add(toggleCheckMode))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(machineControlPanelLayout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(requestStateInformation).add(helpButtonMachineControl)))
                    .add(machineControlPanelLayout.createSequentialGroup().add(resetXButton).add(6, 6, 6)
                            .add(resetYButton).add(6, 6, 6).add(resetZButton)))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(keyboardMovementPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE));

    controlContextTabbedPane.addTab("Machine Control", machineControlPanel);

    macroPane.setViewportView(macroPanel);

    controlContextTabbedPane.addTab("Macros", macroPane);

    connectionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Connection"));
    connectionPanel.setMaximumSize(new java.awt.Dimension(247, 100));
    connectionPanel.setMinimumSize(new java.awt.Dimension(247, 100));
    connectionPanel.setName("Connection"); // NOI18N
    connectionPanel.setPreferredSize(new java.awt.Dimension(247, 100));

    commPortComboBox.setEditable(true);

    baudrateSelectionComboBox.setModel(new javax.swing.DefaultComboBoxModel(
            new String[] { "2400", "4800", "9600", "19200", "38400", "57600", "115200" }));
    baudrateSelectionComboBox.setSelectedIndex(2);
    baudrateSelectionComboBox.setToolTipText("Select baudrate to use for the serial port.");
    baudrateSelectionComboBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            baudrateSelectionComboBoxActionPerformed(evt);
        }
    });

    opencloseButton.setText("Open");
    opencloseButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            opencloseButtonActionPerformed(evt);
        }
    });

    refreshButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/refresh.gif"))); // NOI18N
    refreshButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            refreshButtonActionPerformed(evt);
        }
    });

    baudLabel.setText("Baud:");

    portLabel.setText("Port:");

    firmwareLabel.setText("Firmware:");

    org.jdesktop.layout.GroupLayout connectionPanelLayout = new org.jdesktop.layout.GroupLayout(
            connectionPanel);
    connectionPanel.setLayout(connectionPanelLayout);
    connectionPanelLayout.setHorizontalGroup(connectionPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(connectionPanelLayout.createSequentialGroup().addContainerGap().add(connectionPanelLayout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, connectionPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(connectionPanelLayout.createSequentialGroup().add(portLabel)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(commPortComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 183,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(connectionPanelLayout.createSequentialGroup().add(baudLabel)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(baudrateSelectionComboBox,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(refreshButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(opencloseButton)))
                    .add(connectionPanelLayout.createSequentialGroup().add(firmwareLabel)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(firmwareComboBox, 0,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addContainerGap()));
    connectionPanelLayout.setVerticalGroup(connectionPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(connectionPanelLayout.createSequentialGroup()
                    .add(connectionPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(commPortComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(portLabel))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(connectionPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(connectionPanelLayout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                    .add(baudLabel).add(baudrateSelectionComboBox,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(refreshButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 24,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(opencloseButton))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(connectionPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(firmwareLabel).add(firmwareComboBox,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    showVerboseOutputCheckBox.setText("Show verbose output");

    statusPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Machine status"));
    statusPanel.setMinimumSize(new java.awt.Dimension(247, 160));
    statusPanel.setPreferredSize(new java.awt.Dimension(247, 160));

    activeStateLabel.setText("Active State:");
    activeStateLabel.setOpaque(true);

    activeStateValueLabel.setText(" ");
    activeStateValueLabel.setOpaque(true);

    machinePosition.setText("Machine Position:");

    machinePositionXLabel.setText("X:");

    machinePositionYLabel.setText("Y:");

    machinePositionZLabel.setText("Z:");

    workPositionLabel.setText("Work Position:");

    workPositionXLabel.setText("X:");

    workPositionYLabel.setText("Y:");

    workPositionZLabel.setText("Z:");

    machinePositionXValueLabel.setText("0");

    machinePositionYValueLabel.setText("0");

    machinePositionZValueLabel.setText("0");

    workPositionXValueLabel.setText("0");

    workPositionYValueLabel.setText("0");

    workPositionZValueLabel.setText("0");

    latestCommentValueLabel.setText(" ");

    latestCommentLabel.setText("Latest Comment:");

    org.jdesktop.layout.GroupLayout statusPanelLayout = new org.jdesktop.layout.GroupLayout(statusPanel);
    statusPanel.setLayout(statusPanelLayout);
    statusPanelLayout.setHorizontalGroup(statusPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(statusPanelLayout.createSequentialGroup().addContainerGap().add(statusPanelLayout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(statusPanelLayout.createSequentialGroup().add(latestCommentLabel)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(latestCommentValueLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .add(statusPanelLayout.createSequentialGroup().add(statusPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(statusPanelLayout.createSequentialGroup().add(activeStateLabel)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(activeStateValueLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            120, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(statusPanelLayout.createSequentialGroup().add(statusPanelLayout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(workPositionLabel)
                                    .add(statusPanelLayout.createSequentialGroup().add(17, 17, 17)
                                            .add(statusPanelLayout
                                                    .createParallelGroup(
                                                            org.jdesktop.layout.GroupLayout.LEADING, false)
                                                    .add(statusPanelLayout.createSequentialGroup()
                                                            .add(workPositionZLabel)
                                                            .addPreferredGap(
                                                                    org.jdesktop.layout.LayoutStyle.RELATED)
                                                            .add(workPositionZValueLabel,
                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE))
                                                    .add(statusPanelLayout.createSequentialGroup()
                                                            .add(workPositionYLabel)
                                                            .addPreferredGap(
                                                                    org.jdesktop.layout.LayoutStyle.RELATED)
                                                            .add(workPositionYValueLabel,
                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE))
                                                    .add(statusPanelLayout.createSequentialGroup()
                                                            .add(workPositionXLabel)
                                                            .addPreferredGap(
                                                                    org.jdesktop.layout.LayoutStyle.RELATED)
                                                            .add(workPositionXValueLabel,
                                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                                    65,
                                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(statusPanelLayout
                                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(machinePosition)
                                            .add(statusPanelLayout.createSequentialGroup().add(17, 17, 17)
                                                    .add(statusPanelLayout
                                                            .createParallelGroup(
                                                                    org.jdesktop.layout.GroupLayout.LEADING,
                                                                    false)
                                                            .add(statusPanelLayout.createSequentialGroup()
                                                                    .add(machinePositionZLabel)
                                                                    .addPreferredGap(
                                                                            org.jdesktop.layout.LayoutStyle.RELATED)
                                                                    .add(machinePositionZValueLabel,
                                                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                            Short.MAX_VALUE))
                                                            .add(statusPanelLayout.createSequentialGroup()
                                                                    .add(machinePositionYLabel)
                                                                    .addPreferredGap(
                                                                            org.jdesktop.layout.LayoutStyle.RELATED)
                                                                    .add(machinePositionYValueLabel,
                                                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                            Short.MAX_VALUE))
                                                            .add(statusPanelLayout.createSequentialGroup()
                                                                    .add(machinePositionXLabel)
                                                                    .addPreferredGap(
                                                                            org.jdesktop.layout.LayoutStyle.RELATED)
                                                                    .add(machinePositionXValueLabel,
                                                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                                            65,
                                                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))))
                            .add(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    statusPanelLayout.setVerticalGroup(statusPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(statusPanelLayout.createSequentialGroup()
                    .add(statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(activeStateLabel).add(activeStateValueLabel))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(latestCommentLabel).add(latestCommentValueLabel))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(statusPanelLayout.createSequentialGroup().add(workPositionLabel)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(statusPanelLayout
                                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(workPositionXLabel).add(workPositionXValueLabel))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(statusPanelLayout
                                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(workPositionYLabel).add(workPositionYValueLabel))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(statusPanelLayout
                                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(workPositionZLabel).add(workPositionZValueLabel)))
                            .add(statusPanelLayout.createSequentialGroup().add(machinePosition)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(statusPanelLayout
                                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(machinePositionXLabel).add(machinePositionXValueLabel))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(statusPanelLayout
                                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(machinePositionYLabel).add(machinePositionYValueLabel))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(statusPanelLayout
                                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(machinePositionZLabel).add(machinePositionZValueLabel))))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    showCommandTableCheckBox.setSelected(true);
    showCommandTableCheckBox.setText("Enable command table");
    showCommandTableCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            showCommandTableCheckBoxActionPerformed(evt);
        }
    });

    fileModePanel.setMinimumSize(new java.awt.Dimension(389, 150));
    fileModePanel.setPreferredSize(new java.awt.Dimension(247, 258));
    fileModePanel.setLayout(new java.awt.GridBagLayout());

    sendButton.setText("Send");
    sendButton.setEnabled(false);
    sendButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            sendButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    fileModePanel.add(sendButton, gridBagConstraints);

    pauseButton.setText("Pause");
    pauseButton.setEnabled(false);
    pauseButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            pauseButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 6;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    fileModePanel.add(pauseButton, gridBagConstraints);

    cancelButton.setText("Cancel");
    cancelButton.setEnabled(false);
    cancelButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    fileModePanel.add(cancelButton, gridBagConstraints);

    visualizeButton.setText("Visualize");
    visualizeButton.setEnabled(false);
    visualizeButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            visualizeButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    fileModePanel.add(visualizeButton, gridBagConstraints);

    browseButton.setText("Browse");
    browseButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            browseButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    fileModePanel.add(browseButton, gridBagConstraints);

    saveButton.setText("Save");
    saveButton.setEnabled(false);
    saveButton.setMaximumSize(new java.awt.Dimension(88, 29));
    saveButton.setMinimumSize(new java.awt.Dimension(88, 29));
    saveButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            saveButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    fileModePanel.add(saveButton, gridBagConstraints);

    remainingTimeValueLabel.setText("--:--:--");

    sentRowsValueLabel.setText("0");

    remainingRowsLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    remainingRowsLabel.setText("Remaining Rows:");
    remainingRowsLabel.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    remainingRowsLabel.setMaximumSize(null);
    remainingRowsLabel.setMinimumSize(new java.awt.Dimension(106, 14));
    remainingRowsLabel.setPreferredSize(new java.awt.Dimension(106, 14));

    rowsValueLabel.setText("0");

    remainingTimeLabel.setText("Estimated Time Remaining:");

    durationValueLabel.setText("00:00:00");

    durationLabel.setText("Duration:");

    remainingRowsValueLabel.setText("0");

    sentRowsLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    sentRowsLabel.setText("Sent Rows:");
    sentRowsLabel.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    sentRowsLabel.setMaximumSize(null);
    sentRowsLabel.setMinimumSize(new java.awt.Dimension(106, 14));
    sentRowsLabel.setPreferredSize(new java.awt.Dimension(106, 14));

    rowsLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    rowsLabel.setText("Rows In File:");
    rowsLabel.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    rowsLabel.setMinimumSize(new java.awt.Dimension(106, 14));
    rowsLabel.setPreferredSize(new java.awt.Dimension(106, 14));

    org.jdesktop.layout.GroupLayout fileRunPanelLayout = new org.jdesktop.layout.GroupLayout(fileRunPanel);
    fileRunPanel.setLayout(fileRunPanelLayout);
    fileRunPanelLayout
            .setHorizontalGroup(fileRunPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(fileRunPanelLayout.createSequentialGroup().add(0, 0, 0)
                            .add(fileRunPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, remainingRowsLabel,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, remainingTimeLabel)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, sentRowsLabel,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, durationLabel)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING, rowsLabel,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(fileRunPanelLayout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                    .add(durationValueLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(remainingRowsValueLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(sentRowsValueLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(remainingTimeValueLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(rowsValueLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 56,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    fileRunPanelLayout.setVerticalGroup(fileRunPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(fileRunPanelLayout.createSequentialGroup().addContainerGap()
                    .add(fileRunPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(rowsValueLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(rowsLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(fileRunPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(sentRowsValueLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(sentRowsLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(fileRunPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(remainingRowsValueLabel).add(remainingRowsLabel,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(fileRunPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(remainingTimeLabel).add(remainingTimeValueLabel))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(fileRunPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(durationLabel).add(durationValueLabel))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    fileModePanel.add(fileRunPanel, gridBagConstraints);

    settingsMenu.setText("Settings");

    grblConnectionSettingsMenuItem.setText("Sender Settings");
    grblConnectionSettingsMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            grblConnectionSettingsMenuItemActionPerformed(evt);
        }
    });
    settingsMenu.add(grblConnectionSettingsMenuItem);

    firmwareSettingsMenu.setText("Firmware Settings");

    grblFirmwareSettingsMenuItem.setText("GRBL");
    grblFirmwareSettingsMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            grblFirmwareSettingsMenuItemActionPerformed(evt);
        }
    });
    firmwareSettingsMenu.add(grblFirmwareSettingsMenuItem);

    settingsMenu.add(firmwareSettingsMenu);

    mainMenuBar.add(settingsMenu);

    PendantMenu.setText("Pendant");

    startPendantServerButton.setText("Start...");
    startPendantServerButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            startPendantServerButtonActionPerformed(evt);
        }
    });
    PendantMenu.add(startPendantServerButton);

    stopPendantServerButton.setText("Stop...");
    stopPendantServerButton.setEnabled(false);
    stopPendantServerButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            stopPendantServerButtonActionPerformed(evt);
        }
    });
    PendantMenu.add(stopPendantServerButton);

    mainMenuBar.add(PendantMenu);

    setJMenuBar(mainMenuBar);

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                    .add(connectionPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(statusPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .add(fileModePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, bottomTabbedPane,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(layout.createSequentialGroup().add(scrollWindowCheckBox)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(showVerboseOutputCheckBox).add(18, 18, 18)
                                    .add(showCommandTableCheckBox).addContainerGap())
                            .add(controlContextTabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));
    layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup().addContainerGap()
                    .add(layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(layout
                                    .createSequentialGroup()
                                    .add(connectionPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 144,
                                            Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(statusPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 162,
                                            Short.MAX_VALUE))
                            .add(layout.createSequentialGroup()
                                    .add(controlContextTabbedPane,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 283,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(scrollWindowCheckBox)
                                            .add(layout
                                                    .createParallelGroup(
                                                            org.jdesktop.layout.GroupLayout.BASELINE)
                                                    .add(showVerboseOutputCheckBox)
                                                    .add(showCommandTableCheckBox)))))
                    .add(4, 4, 4)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(layout.createSequentialGroup()
                                    .add(fileModePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 203,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(0, 0, Short.MAX_VALUE))
                            .add(bottomTabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 407,
                                    Short.MAX_VALUE))
                    .add(4, 4, 4)));

    pack();
}