Example usage for javax.swing GroupLayout PREFERRED_SIZE

List of usage examples for javax.swing GroupLayout PREFERRED_SIZE

Introduction

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

Prototype

int PREFERRED_SIZE

To view the source code for javax.swing GroupLayout PREFERRED_SIZE.

Click Source Link

Document

Indicates the preferred size from the component or gap should be used for a particular range value.

Usage

From source file:com.nbt.TreeFrame.java

private void initComponents() {
    setTitle(TITLE);/*from w ww . j  a v a2  s . c  o  m*/
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    JMenuBar menuBar = createMenuBar();
    setJMenuBar(menuBar);
    JToolBar toolBar = createToolBar();

    contentPane = new JPanel();
    setContentPane(contentPane);

    JPanel browsePanel = new JPanel();
    Border border = new TitledBorder(null, "Location");
    browsePanel.setBorder(border);

    textFile = new JTextField();
    textFile.setEditable(false);
    btnBrowse = new JButton("Browse");
    btnBrowse.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            browseAction.actionPerformed(e);
        }

    });
    scrollPane = new JScrollPane();
    JScrollBar verticalScrollBar = scrollPane.getVerticalScrollBar();
    int unitIncrement = 200;
    verticalScrollBar.setUnitIncrement(unitIncrement);

    GroupLayout gl_contentPane = new GroupLayout(contentPane);
    gl_contentPane
            .setHorizontalGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING)
                    .addGroup(Alignment.LEADING, gl_contentPane.createSequentialGroup().addContainerGap()
                            .addGroup(gl_contentPane.createParallelGroup(Alignment.TRAILING)
                                    .addComponent(browsePanel, Alignment.LEADING, GroupLayout.DEFAULT_SIZE,
                                            GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)
                                    .addComponent(scrollPane, Alignment.LEADING, GroupLayout.DEFAULT_SIZE,
                                            GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE))
                            .addContainerGap())
                    .addComponent(toolBar, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE,
                            Short.MAX_VALUE));
    gl_contentPane.setVerticalGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_contentPane.createSequentialGroup()
                    .addComponent(toolBar, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(ComponentPlacement.RELATED).addComponent(browsePanel)
                    .addPreferredGap(ComponentPlacement.RELATED).addComponent(scrollPane,
                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));

    GroupLayout gl_browsePanel = new GroupLayout(browsePanel);
    gl_browsePanel
            .setHorizontalGroup(gl_browsePanel.createParallelGroup(Alignment.LEADING)
                    .addGroup(Alignment.TRAILING, gl_browsePanel.createSequentialGroup().addContainerGap()
                            .addComponent(textFile, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE,
                                    Short.MAX_VALUE)
                            .addPreferredGap(ComponentPlacement.RELATED).addComponent(btnBrowse)
                            .addContainerGap()));
    gl_browsePanel.setVerticalGroup(gl_browsePanel.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_browsePanel.createSequentialGroup()
                    // .addContainerGap()
                    .addGroup(gl_browsePanel
                            .createParallelGroup(Alignment.BASELINE).addComponent(textFile,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)
                            .addComponent(btnBrowse))
                    .addContainerGap()));
    browsePanel.setLayout(gl_browsePanel);
    contentPane.setLayout(gl_contentPane);

    int width = 440, height = 400;
    setMinimumSize(new Dimension(width, height));

    pack();
}

From source file:de.tor.tribes.ui.views.DSWorkbenchReportFrame.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
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    jCreateStatsFrame = new javax.swing.JFrame();
    jPanel2 = new javax.swing.JPanel();
    jLabel6 = new javax.swing.JLabel();
    jScrollPane2 = new javax.swing.JScrollPane();
    jReportSetsForStatsList = new javax.swing.JList();
    jButton10 = new javax.swing.JButton();
    jPanel3 = new javax.swing.JPanel();
    jLabel7 = new javax.swing.JLabel();
    jScrollPane3 = new javax.swing.JScrollPane();
    jList1 = new javax.swing.JList();
    jResultTabbedPane = new javax.swing.JTabbedPane();
    jPanel4 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jOverallStatsArea = new javax.swing.JTextPane();
    jPanel5 = new javax.swing.JPanel();
    jScrollPane5 = new javax.swing.JScrollPane();
    jAllyStatsArea = new javax.swing.JTextPane();
    jPanel6 = new javax.swing.JPanel();
    jScrollPane6 = new javax.swing.JScrollPane();
    jTribeStatsArea = new javax.swing.JTextPane();
    capabilityInfoPanel2 = new de.tor.tribes.ui.components.CapabilityInfoPanel();
    jXReportsPanel = new org.jdesktop.swingx.JXPanel();
    jReportsTabbedPane = new javax.swing.JTabbedPane();
    jNewPlanPanel = new javax.swing.JPanel();
    jLabel10 = new javax.swing.JLabel();
    jxSearchPane = new org.jdesktop.swingx.JXPanel();
    jXPanel2 = new org.jdesktop.swingx.JXPanel();
    jButton15 = new javax.swing.JButton();
    jTextField1 = new javax.swing.JTextField();
    jLabel21 = new javax.swing.JLabel();
    jFilterRows = new javax.swing.JCheckBox();
    jFilterCaseSensitive = new javax.swing.JCheckBox();
    jScrollPane8 = new javax.swing.JScrollPane();
    jXColumnList = new org.jdesktop.swingx.JXList();
    jLabel22 = new javax.swing.JLabel();
    jPanel7 = new javax.swing.JPanel();
    jGuessUnknownLosses = new javax.swing.JCheckBox();
    jUseSilentKillsBox = new javax.swing.JCheckBox();
    jCheckBox3 = new javax.swing.JCheckBox();
    jShowPercentsBox = new javax.swing.JCheckBox();
    jAlwaysOnTopBox = new javax.swing.JCheckBox();
    jReportsPanel = new javax.swing.JPanel();
    capabilityInfoPanel1 = new de.tor.tribes.ui.components.CapabilityInfoPanel();

    jCreateStatsFrame.setTitle("Kampfstatistiken");

    jPanel2.setBackground(new java.awt.Color(239, 235, 223));

    jLabel6.setText("Verwendete Berichtsets");

    jScrollPane2.setPreferredSize(new java.awt.Dimension(258, 100));

    jScrollPane2.setViewportView(jReportSetsForStatsList);

    jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/ui/select.png"))); // NOI18N
    jButton10.setText("Auswerten");
    jButton10.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            fireDoCreateStatsEvent(evt);
        }
    });

    jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Ergebnisse"));
    jPanel3.setOpaque(false);

    jLabel7.setText("Angezeigte Stmme");

    jScrollPane3.setMaximumSize(new java.awt.Dimension(140, 130));
    jScrollPane3.setMinimumSize(new java.awt.Dimension(140, 130));
    jScrollPane3.setPreferredSize(new java.awt.Dimension(140, 130));

    jScrollPane3.setViewportView(jList1);

    jResultTabbedPane.setBackground(new java.awt.Color(239, 235, 223));

    jPanel4.setOpaque(false);
    jPanel4.setLayout(new java.awt.BorderLayout());

    jOverallStatsArea.setContentType("text/html"); // NOI18N
    jOverallStatsArea.setEditable(false);
    jScrollPane1.setViewportView(jOverallStatsArea);

    jPanel4.add(jScrollPane1, java.awt.BorderLayout.CENTER);

    jResultTabbedPane.addTab("Gesamtbersicht",
            new javax.swing.ImageIcon(getClass().getResource("/res/ui/chart.png")), jPanel4); // NOI18N

    jPanel5.setBackground(new java.awt.Color(239, 235, 223));
    jPanel5.setLayout(new java.awt.BorderLayout());

    jAllyStatsArea.setContentType("text/html"); // NOI18N
    jAllyStatsArea.setEditable(false);
    jScrollPane5.setViewportView(jAllyStatsArea);

    jPanel5.add(jScrollPane5, java.awt.BorderLayout.CENTER);

    jResultTabbedPane.addTab("Stmme", new javax.swing.ImageIcon(getClass().getResource("/res/ally.png")),
            jPanel5); // NOI18N

    jPanel6.setBackground(new java.awt.Color(239, 235, 223));
    jPanel6.setLayout(new java.awt.BorderLayout());

    jTribeStatsArea.setContentType("text/html"); // NOI18N
    jTribeStatsArea.setEditable(false);
    jScrollPane6.setViewportView(jTribeStatsArea);

    jPanel6.add(jScrollPane6, java.awt.BorderLayout.CENTER);

    jResultTabbedPane.addTab("Spieler", new javax.swing.ImageIcon(getClass().getResource("/res/face.png")),
            jPanel6); // NOI18N

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jResultTabbedPane, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 570, Short.MAX_VALUE)
                            .addGroup(jPanel3Layout.createSequentialGroup().addComponent(jLabel7)
                                    .addGap(18, 18, 18).addComponent(jScrollPane3,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, 457, Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7).addComponent(jScrollPane3,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 99,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jResultTabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)
                    .addContainerGap()));

    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()
                    .addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                    jPanel2Layout.createSequentialGroup().addComponent(jLabel6)
                                            .addGap(18, 18, 18).addComponent(jScrollPane2,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 470, Short.MAX_VALUE))
                            .addComponent(jButton10))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel6).addComponent(jScrollPane2,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 90,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jButton10)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));

    capabilityInfoPanel2.setCopyable(false);
    capabilityInfoPanel2.setDeletable(false);
    capabilityInfoPanel2.setPastable(false);
    capabilityInfoPanel2.setSearchable(false);

    javax.swing.GroupLayout jCreateStatsFrameLayout = new javax.swing.GroupLayout(
            jCreateStatsFrame.getContentPane());
    jCreateStatsFrame.getContentPane().setLayout(jCreateStatsFrameLayout);
    jCreateStatsFrameLayout.setHorizontalGroup(
            jCreateStatsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jCreateStatsFrameLayout.createSequentialGroup().addContainerGap()
                            .addGroup(jCreateStatsFrameLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(capabilityInfoPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap()));
    jCreateStatsFrameLayout.setVerticalGroup(jCreateStatsFrameLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jCreateStatsFrameLayout.createSequentialGroup().addContainerGap()
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(capabilityInfoPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    jXReportsPanel.setLayout(new java.awt.BorderLayout());
    jXReportsPanel.add(jReportsTabbedPane, java.awt.BorderLayout.CENTER);

    jNewPlanPanel.setOpaque(false);
    jNewPlanPanel.setLayout(new java.awt.BorderLayout());

    jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/ui/document_new_24x24.png"))); // NOI18N
    jLabel10.setToolTipText("Leeres Berichtset erstellen");
    jLabel10.setEnabled(false);
    jLabel10.setMaximumSize(new java.awt.Dimension(40, 40));
    jLabel10.setMinimumSize(new java.awt.Dimension(40, 40));
    jLabel10.setPreferredSize(new java.awt.Dimension(40, 40));
    jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            fireEnterEvent(evt);
        }

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

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            fireCreateAttackPlanEvent(evt);
        }
    });
    jNewPlanPanel.add(jLabel10, java.awt.BorderLayout.CENTER);

    jxSearchPane.setOpaque(false);
    jxSearchPane.setLayout(new java.awt.GridBagLayout());

    jXPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jXPanel2.setInheritAlpha(false);

    jButton15.setText("Anwenden");
    jButton15.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            jButton15fireHideGlassPaneEvent(evt);
        }
    });

    jTextField1.addCaretListener(new javax.swing.event.CaretListener() {
        public void caretUpdate(javax.swing.event.CaretEvent evt) {
            jTextField1fireHighlightEvent(evt);
        }
    });

    jLabel21.setText("Suchbegriff");

    jFilterRows.setText("Nur gefilterte Zeilen anzeigen");
    jFilterRows.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            jFilterRowsfireUpdateFilterEvent(evt);
        }
    });

    jFilterCaseSensitive.setText("Gro-/Kleinschreibung beachten");
    jFilterCaseSensitive.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            jFilterCaseSensitivefireUpdateFilterEvent(evt);
        }
    });

    jXColumnList.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];
        }
    });
    jXColumnList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    jScrollPane8.setViewportView(jXColumnList);

    jLabel22.setText("Spalten");

    javax.swing.GroupLayout jXPanel2Layout = new javax.swing.GroupLayout(jXPanel2);
    jXPanel2.setLayout(jXPanel2Layout);
    jXPanel2Layout
            .setHorizontalGroup(jXPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jXPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jXPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel22, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(
                                            jLabel21, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addGap(18, 18, 18)
                                    .addGroup(jXPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jXPanel2Layout.createSequentialGroup()
                                                    .addComponent(jScrollPane8,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 158,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(18, 18, 18)
                                                    .addGroup(jXPanel2Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addGroup(jXPanel2Layout.createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                                    false)
                                                                    .addComponent(jFilterRows,
                                                                            javax.swing.GroupLayout.Alignment.LEADING,
                                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                            Short.MAX_VALUE)
                                                                    .addComponent(jFilterCaseSensitive,
                                                                            javax.swing.GroupLayout.Alignment.LEADING,
                                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                            Short.MAX_VALUE))
                                                            .addComponent(jButton15)))
                                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    355, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jXPanel2Layout.setVerticalGroup(jXPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jXPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jXPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel21)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jXPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jXPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jXPanel2Layout
                                            .createSequentialGroup().addComponent(jFilterCaseSensitive)
                                            .addPreferredGap(
                                                    javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jFilterRows)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jButton15))
                                    .addComponent(jScrollPane8, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 164,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabel22))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jxSearchPane.add(jXPanel2, new java.awt.GridBagConstraints());

    jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder("Optionen"));
    jPanel7.setOpaque(false);

    jGuessUnknownLosses.setSelected(true);
    jGuessUnknownLosses.setText("Gegnerische Verluste schtzen, falls unbekannt");
    jGuessUnknownLosses.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            fireStatOptionsChangedEvent(evt);
        }
    });

    jUseSilentKillsBox.setSelected(true);
    jUseSilentKillsBox.setText("Auswrtige Einheiten bei Adelung als Verlust werten");
    jUseSilentKillsBox.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            fireStatOptionsChangedEvent(evt);
        }
    });

    jCheckBox3.setSelected(true);
    jCheckBox3.setText("Verluste pro Angreifer/Verteidiger anzeigen");
    jCheckBox3.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            fireStatOptionsChangedEvent(evt);
        }
    });

    jShowPercentsBox.setText("Prozentuale Anteile anzeigen");
    jShowPercentsBox.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            fireStatOptionsChangedEvent(evt);
        }
    });

    javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
    jPanel7.setLayout(jPanel7Layout);
    jPanel7Layout.setHorizontalGroup(jPanel7Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jGuessUnknownLosses).addComponent(jUseSilentKillsBox)
                            .addComponent(jCheckBox3).addComponent(jShowPercentsBox))));
    jPanel7Layout.setVerticalGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup().addContainerGap().addComponent(jGuessUnknownLosses)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jUseSilentKillsBox)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jCheckBox3)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jShowPercentsBox).addContainerGap(23, Short.MAX_VALUE)));

    setTitle("Berichtsdatenbank");
    getContentPane().setLayout(new java.awt.GridBagLayout());

    jAlwaysOnTopBox.setText("Immer im Vordergrund");
    jAlwaysOnTopBox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            fireAlwaysOnTopEvent(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    getContentPane().add(jAlwaysOnTopBox, gridBagConstraints);

    jReportsPanel.setBackground(new java.awt.Color(239, 235, 223));
    jReportsPanel.setPreferredSize(new java.awt.Dimension(500, 400));
    jReportsPanel.setLayout(new java.awt.BorderLayout());
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 500;
    gridBagConstraints.ipady = 400;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    getContentPane().add(jReportsPanel, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    getContentPane().add(capabilityInfoPanel1, gridBagConstraints);

    pack();
}

From source file:AST.DesignPatternDetection.java

private void initComponents() {

    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Murat Oruc
    btPathFinder = new JButton();
    label1 = new JLabel();
    tfPath = new JTextField();
    label2 = new JLabel();
    cbSelectionDP = new JComboBox<>();
    btRun = new JButton();
    label3 = new JLabel();
    tfProjectName = new JTextField();
    label4 = new JLabel();
    tfThreshold = new JTextField();
    chbOverlap = new JCheckBox();
    btRunSgiso = new JButton();
    scrollPane1 = new JScrollPane();
    taInfo = new JTextArea();
    label5 = new JLabel();
    tfProgramPath = new JTextField();
    btProgramPath = new JButton();
    button1 = new JButton();
    button2 = new JButton();
    chbInnerClass = new JCheckBox();

    //======== this ========
    setTitle("DesPaD (Design Pattern Detector)");
    setIconImage(((ImageIcon) UIManager.getIcon("FileView.computerIcon")).getImage());
    addWindowListener(new WindowAdapter() {
        @Override//from  w  w w  .j  av a  2 s  . com
        public void windowClosing(WindowEvent e) {
            thisWindowClosing(e);
        }
    });
    Container contentPane = getContentPane();

    //---- btPathFinder ----
    btPathFinder.setText("...");
    btPathFinder.setFont(btPathFinder.getFont().deriveFont(btPathFinder.getFont().getSize() + 1f));
    btPathFinder.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            btPathFinderActionPerformed(e);
        }
    });

    //---- label1 ----
    label1.setText("Source Code Directory Path");

    //---- tfPath ----
    tfPath.setText("...");
    tfPath.setEditable(false);
    tfPath.setForeground(Color.blue);
    tfPath.setFont(tfPath.getFont().deriveFont(tfPath.getFont().getStyle() | Font.BOLD));

    //---- label2 ----
    label2.setText("Select Design Pattern");

    //---- cbSelectionDP ----
    cbSelectionDP.setModel(new DefaultComboBoxModel<>(
            new String[] { "FACTORY_METHOD", "PROTOTYPE", "ABSTRACT_FACTORY", "BUILDER", "SINGLETON",
                    "COMPOSITE", "FACADE", "DECORATOR", "DECORATOR2", "BRIDGE", "FLYWEIGHT", "ADAPTER", "PROXY",
                    "MEDIATOR", "STATE", "OBSERVER", "TEMPLATE_METHOD", "TEMPLATE_METHOD2", "COMMAND",
                    "CHAIN_OF_RESPONSIBILITY", "INTERPRETER", "MEMENTO", "ITERATOR", "STRATEGY", "VISITOR" }));

    //---- btRun ----
    btRun.setText("1. Build Model Graph");
    btRun.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            try {
                btRunActionPerformed(e);
            } catch (IOException | InterruptedException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
        }
    });

    //---- label3 ----
    label3.setText("Project Name");

    //---- label4 ----
    label4.setText("Threshold");

    //---- tfThreshold ----
    tfThreshold.setText("0.0");

    //---- chbOverlap ----
    chbOverlap.setText("Overlap");

    //---- btRunSgiso ----
    btRunSgiso.setText("2. Run Subdue-Sgiso Algorithm");
    btRunSgiso.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            try {
                btRunSgisoActionPerformed(e);
            } catch (IOException | InterruptedException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
        }
    });

    //======== scrollPane1 ========
    {
        scrollPane1.setViewportView(taInfo);
    }

    //---- label5 ----
    label5.setText("Program Directory Path");

    //---- tfProgramPath ----
    tfProgramPath.setEditable(false);
    tfProgramPath.setForeground(Color.blue);
    tfProgramPath.setFont(tfProgramPath.getFont().deriveFont(tfProgramPath.getFont().getStyle() | Font.BOLD));

    //---- btProgramPath ----
    btProgramPath.setText("...");
    btProgramPath.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            btProgramPathActionPerformed(e);
        }
    });

    //---- button1 ----
    button1.setText("3. Exclude overlap outputs");
    button1.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            try {
                button1ActionPerformed(e);
            } catch (FileNotFoundException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
        }
    });

    //---- button2 ----
    button2.setText("4. Graph Representations");
    button2.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            try {
                button2ActionPerformed(e);
            } catch (IOException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
        }
    });

    //---- chbInnerClass ----
    chbInnerClass.setText("Include Inner Classes");
    chbInnerClass.setSelected(true);

    GroupLayout contentPaneLayout = new GroupLayout(contentPane);
    contentPane.setLayout(contentPaneLayout);
    contentPaneLayout.setHorizontalGroup(
            contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout.createSequentialGroup()
                    .addContainerGap().addGroup(contentPaneLayout
                            .createParallelGroup().addGroup(GroupLayout.Alignment.TRAILING,
                                    contentPaneLayout.createSequentialGroup().addComponent(label1).addGap(21,
                                            433, Short.MAX_VALUE))
                            .addGroup(contentPaneLayout
                                    .createSequentialGroup().addGroup(contentPaneLayout.createParallelGroup()
                                            .addComponent(label4).addGroup(contentPaneLayout
                                                    .createSequentialGroup().addGroup(contentPaneLayout
                                                            .createParallelGroup(GroupLayout.Alignment.TRAILING,
                                                                    false)
                                                            .addComponent(
                                                                    button1, GroupLayout.Alignment.LEADING,
                                                                    GroupLayout.DEFAULT_SIZE, 260,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(tfThreshold,
                                                                    GroupLayout.Alignment.LEADING)
                                                            .addComponent(cbSelectionDP,
                                                                    GroupLayout.Alignment.LEADING,
                                                                    GroupLayout.DEFAULT_SIZE, 260,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(label2, GroupLayout.Alignment.LEADING)
                                                            .addComponent(
                                                                    btRun, GroupLayout.Alignment.LEADING,
                                                                    GroupLayout.DEFAULT_SIZE, 260,
                                                                    Short.MAX_VALUE))
                                                    .addGap(30, 30, 30)
                                                    .addGroup(contentPaneLayout
                                                            .createParallelGroup(GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(label3)
                                                            .addComponent(tfProjectName,
                                                                    GroupLayout.DEFAULT_SIZE, 260,
                                                                    Short.MAX_VALUE)
                                                            .addGroup(contentPaneLayout.createSequentialGroup()
                                                                    .addComponent(chbOverlap)
                                                                    .addPreferredGap(
                                                                            LayoutStyle.ComponentPlacement.RELATED,
                                                                            GroupLayout.DEFAULT_SIZE,
                                                                            Short.MAX_VALUE)
                                                                    .addComponent(chbInnerClass))
                                                            .addComponent(btRunSgiso, GroupLayout.DEFAULT_SIZE,
                                                                    260, Short.MAX_VALUE)
                                                            .addComponent(
                                                                    button2, GroupLayout.DEFAULT_SIZE, 260,
                                                                    Short.MAX_VALUE))))
                                    .addGap(0, 56, Short.MAX_VALUE))
                            .addGroup(GroupLayout.Alignment.TRAILING,
                                    contentPaneLayout.createSequentialGroup().addGroup(contentPaneLayout
                                            .createParallelGroup(GroupLayout.Alignment.TRAILING)
                                            .addComponent(scrollPane1, GroupLayout.DEFAULT_SIZE, 594,
                                                    Short.MAX_VALUE)
                                            .addGroup(contentPaneLayout.createSequentialGroup()
                                                    .addGroup(contentPaneLayout.createParallelGroup()
                                                            .addGroup(contentPaneLayout.createSequentialGroup()
                                                                    .addComponent(label5)
                                                                    .addGap(0, 418, Short.MAX_VALUE))
                                                            .addComponent(tfProgramPath,
                                                                    GroupLayout.DEFAULT_SIZE, 564,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(
                                                                    tfPath, GroupLayout.Alignment.TRAILING,
                                                                    GroupLayout.DEFAULT_SIZE, 564,
                                                                    Short.MAX_VALUE))
                                                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(contentPaneLayout
                                                            .createParallelGroup(GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(btPathFinder,
                                                                    GroupLayout.DEFAULT_SIZE,
                                                                    GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                            .addComponent(btProgramPath,
                                                                    GroupLayout.DEFAULT_SIZE,
                                                                    GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE))))
                                            .addContainerGap()))));
    contentPaneLayout.setVerticalGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout
            .createSequentialGroup().addGap(29, 29, 29).addComponent(label1).addGap(5, 5, 5)
            .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(tfPath, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addComponent(btPathFinder, GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE))
            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(label5)
            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(tfProgramPath, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addComponent(btProgramPath))
            .addGap(18, 18, 18)
            .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(label2)
                    .addComponent(label3))
            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(cbSelectionDP, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addComponent(tfProjectName, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE))
            .addGap(18, 18, 18).addComponent(label4).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
            .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(tfThreshold, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addComponent(chbOverlap).addComponent(chbInnerClass))
            .addGap(18, 18, 18)
            .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                    .addComponent(btRun, GroupLayout.PREFERRED_SIZE, 47, GroupLayout.PREFERRED_SIZE)
                    .addComponent(btRunSgiso, GroupLayout.PREFERRED_SIZE, 47, GroupLayout.PREFERRED_SIZE))
            .addGap(18, 18, 18)
            .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false)
                    .addComponent(button2, GroupLayout.DEFAULT_SIZE, 45, Short.MAX_VALUE)
                    .addComponent(button1, GroupLayout.DEFAULT_SIZE, 45, Short.MAX_VALUE))
            .addGap(18, 18, 18).addComponent(scrollPane1, GroupLayout.DEFAULT_SIZE, 184, Short.MAX_VALUE)
            .addContainerGap()));
    setSize(630, 625);
    setLocationRelativeTo(null);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.openbravo.pos.imports.JPanelCSVImport.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./*w w w. j  a  v a 2 s .  c  o  m*/
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jFileChooserPanel = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jFileName = new javax.swing.JTextField();
    jbtnDbDriverLib = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    jComboReference = new javax.swing.JComboBox();
    jComboBarcode = new javax.swing.JComboBox();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jCheckInCatalogue = new javax.swing.JCheckBox();
    jLabel8 = new javax.swing.JLabel();
    jCheckSellIncTax = new javax.swing.JCheckBox();
    jLabel12 = new javax.swing.JLabel();
    jComboBuy = new javax.swing.JComboBox();
    jLabel11 = new javax.swing.JLabel();
    jComboTax = new javax.swing.JComboBox();
    jLabel10 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jComboSell = new javax.swing.JComboBox();
    jComboDefaultCategory = new javax.swing.JComboBox();
    jLabel20 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jComboCategory = new javax.swing.JComboBox();
    jComboName = new javax.swing.JComboBox();
    jLabel17 = new javax.swing.JLabel();
    jLabel18 = new javax.swing.JLabel();
    jHeaderRead = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    jLabel9 = new javax.swing.JLabel();
    jLabel14 = new javax.swing.JLabel();
    jLabel16 = new javax.swing.JLabel();
    jTextUpdates = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel15 = new javax.swing.JLabel();
    jLabel13 = new javax.swing.JLabel();
    jTextRecords = new javax.swing.JTextField();
    jTextNew = new javax.swing.JTextField();
    jTextInvalid = new javax.swing.JTextField();
    jTextUpdate = new javax.swing.JTextField();
    jTextMissing = new javax.swing.JTextField();
    jTextBadPrice = new javax.swing.JTextField();
    jTextNoChange = new javax.swing.JTextField();
    jLabel19 = new javax.swing.JLabel();
    jTextBadCats = new javax.swing.JTextField();
    jComboSeparator = new javax.swing.JComboBox();
    jImport = new javax.swing.JButton();

    setOpaque(false);
    setPreferredSize(new java.awt.Dimension(630, 430));

    jLabel1.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pos_messages"); // NOI18N
    jLabel1.setText(bundle.getString("label.csvfile")); // NOI18N
    jLabel1.setPreferredSize(new java.awt.Dimension(100, 30));

    jFileName.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jFileName.setPreferredSize(new java.awt.Dimension(275, 30));
    jFileName.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jFileNameActionPerformed(evt);
        }
    });

    jbtnDbDriverLib
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/fileopen.png"))); // NOI18N
    jbtnDbDriverLib.setMaximumSize(new java.awt.Dimension(64, 32));
    jbtnDbDriverLib.setMinimumSize(new java.awt.Dimension(64, 32));
    jbtnDbDriverLib.setPreferredSize(new java.awt.Dimension(64, 32));
    jbtnDbDriverLib.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbtnDbDriverLibActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jFileChooserPanelLayout = new javax.swing.GroupLayout(jFileChooserPanel);
    jFileChooserPanel.setLayout(jFileChooserPanelLayout);
    jFileChooserPanelLayout.setHorizontalGroup(jFileChooserPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jFileChooserPanelLayout.createSequentialGroup()
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jFileName, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jbtnDbDriverLib, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(116, 116, 116)));
    jFileChooserPanelLayout.setVerticalGroup(jFileChooserPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jFileChooserPanelLayout.createSequentialGroup().addGroup(jFileChooserPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jFileName, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jbtnDbDriverLib, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));

    jComboReference.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    jComboReference.setEnabled(false);
    jComboReference.setMinimumSize(new java.awt.Dimension(32, 25));
    jComboReference.setOpaque(false);
    jComboReference.setPreferredSize(new java.awt.Dimension(275, 30));
    jComboReference.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jComboReferenceItemStateChanged(evt);
        }
    });
    jComboReference.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            jComboReferenceFocusGained(evt);
        }
    });

    jComboBarcode.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    jComboBarcode.setEnabled(false);
    jComboBarcode.setMinimumSize(new java.awt.Dimension(32, 25));
    jComboBarcode.setPreferredSize(new java.awt.Dimension(275, 30));
    jComboBarcode.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jComboBarcodeItemStateChanged(evt);
        }
    });
    jComboBarcode.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            jComboBarcodeFocusGained(evt);
        }
    });

    jLabel3.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel3.setText(bundle.getString("label.prodref")); // NOI18N
    jLabel3.setPreferredSize(new java.awt.Dimension(100, 30));

    jLabel4.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel4.setText(bundle.getString("label.prodbarcode")); // NOI18N
    jLabel4.setPreferredSize(new java.awt.Dimension(100, 30));

    jCheckInCatalogue.setEnabled(false);

    jLabel8.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel8.setText(bundle.getString("label.prodincatalog")); // NOI18N

    jCheckSellIncTax.setEnabled(false);

    jLabel12.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel12.setText(bundle.getString("label.csvsellingintax")); // NOI18N

    jComboBuy.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    jComboBuy.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "" }));
    jComboBuy.setSelectedIndex(-1);
    jComboBuy.setEnabled(false);
    jComboBuy.setMinimumSize(new java.awt.Dimension(32, 25));
    jComboBuy.setPreferredSize(new java.awt.Dimension(275, 30));
    jComboBuy.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jComboBuyItemStateChanged(evt);
        }
    });
    jComboBuy.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            jComboBuyFocusGained(evt);
        }
    });

    jLabel11.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel11.setText(bundle.getString("label.prodcategory")); // NOI18N
    jLabel11.setPreferredSize(new java.awt.Dimension(100, 30));

    jComboTax.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    jComboTax.setEnabled(false);
    jComboTax.setPreferredSize(new java.awt.Dimension(275, 30));

    jLabel10.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel10.setText(bundle.getString("label.prodpricebuy")); // NOI18N
    jLabel10.setPreferredSize(new java.awt.Dimension(100, 30));

    jLabel7.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel7.setText(bundle.getString("label.prodtaxcode")); // NOI18N
    jLabel7.setPreferredSize(new java.awt.Dimension(100, 30));

    jComboSell.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    jComboSell.setEnabled(false);
    jComboSell.setMinimumSize(new java.awt.Dimension(32, 25));
    jComboSell.setPreferredSize(new java.awt.Dimension(275, 30));
    jComboSell.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jComboSellItemStateChanged(evt);
        }
    });
    jComboSell.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            jComboSellFocusGained(evt);
        }
    });

    jComboDefaultCategory.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    jComboDefaultCategory.setEnabled(false);
    jComboDefaultCategory.setMinimumSize(new java.awt.Dimension(32, 25));
    jComboDefaultCategory.setPreferredSize(new java.awt.Dimension(275, 30));
    jComboDefaultCategory.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jComboDefaulrCategoryItemStateChanged(evt);
        }
    });
    jComboDefaultCategory.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jComboDefaultCategoryActionPerformed(evt);
        }
    });

    jLabel20.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel20.setText(bundle.getString("label.prodpricesell")); // NOI18N
    jLabel20.setPreferredSize(new java.awt.Dimension(100, 30));

    jLabel5.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel5.setText(bundle.getString("label.prodname")); // NOI18N
    jLabel5.setPreferredSize(new java.awt.Dimension(100, 30));

    jLabel6.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel6.setText(bundle.getString("label.proddefaultcategory")); // NOI18N
    jLabel6.setPreferredSize(new java.awt.Dimension(100, 30));

    jComboCategory.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    jComboCategory.setEnabled(false);
    jComboCategory.setMinimumSize(new java.awt.Dimension(32, 25));
    jComboCategory.setName(""); // NOI18N
    jComboCategory.setPreferredSize(new java.awt.Dimension(275, 30));
    jComboCategory.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jComboCategoryItemStateChanged(evt);
        }
    });
    jComboCategory.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            jComboCategoryFocusGained(evt);
        }
    });

    jComboName.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    jComboName.setEnabled(false);
    jComboName.setMinimumSize(new java.awt.Dimension(32, 25));
    jComboName.setPreferredSize(new java.awt.Dimension(275, 30));
    jComboName.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jComboNameItemStateChanged(evt);
        }
    });
    jComboName.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            jComboNameFocusGained(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().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jPanel1Layout
                            .createSequentialGroup().addGroup(
                                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jComboDefaultCategory, 0,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboTax, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jComboSell, javax.swing.GroupLayout.Alignment.LEADING, 0,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboBuy, javax.swing.GroupLayout.Alignment.LEADING, 0,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboName, javax.swing.GroupLayout.Alignment.LEADING, 0,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboCategory, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jComboReference, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jComboBarcode, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                            .addComponent(jCheckInCatalogue, javax.swing.GroupLayout.PREFERRED_SIZE, 20,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 150,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jCheckSellIncTax)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 200,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboReference, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBarcode, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(8, 8, 8)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboName, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBuy, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboSell, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jComboCategory, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboDefaultCategory, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboTax, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jCheckInCatalogue)
                            .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCheckSellIncTax).addComponent(jLabel8,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap()));

    jLabel17.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel17.setText("Import Version v2.3");

    jLabel18.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel18.setText(bundle.getString("label.csvdelimit")); // NOI18N
    jLabel18.setPreferredSize(new java.awt.Dimension(100, 30));

    jHeaderRead.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
    jHeaderRead.setText(bundle.getString("label.csvread")); // NOI18N
    jHeaderRead.setEnabled(false);
    jHeaderRead.setPreferredSize(new java.awt.Dimension(120, 30));
    jHeaderRead.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jHeaderReadActionPerformed(evt);
        }
    });

    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(
            new javax.swing.border.LineBorder(new java.awt.Color(153, 153, 153), 1, true),
            bundle.getString("title.CSVImport"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 12),
            new java.awt.Color(102, 102, 102))); // NOI18N

    jLabel9.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel9.setText(bundle.getString("label.csvrecordsfound")); // NOI18N
    jLabel9.setPreferredSize(new java.awt.Dimension(100, 25));

    jLabel14.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel14.setText(bundle.getString("label.csvnewproducts")); // NOI18N
    jLabel14.setMaximumSize(new java.awt.Dimension(77, 14));
    jLabel14.setMinimumSize(new java.awt.Dimension(77, 14));
    jLabel14.setPreferredSize(new java.awt.Dimension(100, 25));

    jLabel16.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel16.setText(bundle.getString("label.cvsinvalid")); // NOI18N
    jLabel16.setPreferredSize(new java.awt.Dimension(100, 25));

    jTextUpdates.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jTextUpdates.setText(bundle.getString("label.csvpriceupdated")); // NOI18N
    jTextUpdates.setPreferredSize(new java.awt.Dimension(100, 25));

    jLabel2.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel2.setText(bundle.getString("label.csvmissing")); // NOI18N
    jLabel2.setPreferredSize(new java.awt.Dimension(100, 25));

    jLabel15.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel15.setText(bundle.getString("label.csvbad")); // NOI18N
    jLabel15.setPreferredSize(new java.awt.Dimension(100, 25));

    jLabel13.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel13.setText(bundle.getString("label.cvsnotchanged")); // NOI18N
    jLabel13.setPreferredSize(new java.awt.Dimension(100, 25));

    jTextRecords.setBackground(new java.awt.Color(224, 223, 227));
    jTextRecords.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
    jTextRecords.setForeground(new java.awt.Color(102, 102, 102));
    jTextRecords.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextRecords.setBorder(null);
    jTextRecords.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    jTextRecords.setEnabled(false);
    jTextRecords.setPreferredSize(new java.awt.Dimension(70, 25));

    jTextNew.setBackground(new java.awt.Color(224, 223, 227));
    jTextNew.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
    jTextNew.setForeground(new java.awt.Color(102, 102, 102));
    jTextNew.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextNew.setBorder(null);
    jTextNew.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    jTextNew.setEnabled(false);
    jTextNew.setPreferredSize(new java.awt.Dimension(70, 25));

    jTextInvalid.setBackground(new java.awt.Color(224, 223, 227));
    jTextInvalid.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
    jTextInvalid.setForeground(new java.awt.Color(102, 102, 102));
    jTextInvalid.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextInvalid.setBorder(null);
    jTextInvalid.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    jTextInvalid.setEnabled(false);
    jTextInvalid.setPreferredSize(new java.awt.Dimension(70, 25));

    jTextUpdate.setBackground(new java.awt.Color(224, 223, 227));
    jTextUpdate.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
    jTextUpdate.setForeground(new java.awt.Color(102, 102, 102));
    jTextUpdate.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextUpdate.setBorder(null);
    jTextUpdate.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    jTextUpdate.setEnabled(false);
    jTextUpdate.setPreferredSize(new java.awt.Dimension(70, 25));
    jTextUpdate.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextUpdateActionPerformed(evt);
        }
    });

    jTextMissing.setBackground(new java.awt.Color(224, 223, 227));
    jTextMissing.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
    jTextMissing.setForeground(new java.awt.Color(102, 102, 102));
    jTextMissing.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextMissing.setBorder(null);
    jTextMissing.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    jTextMissing.setEnabled(false);
    jTextMissing.setPreferredSize(new java.awt.Dimension(70, 25));

    jTextBadPrice.setBackground(new java.awt.Color(224, 223, 227));
    jTextBadPrice.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
    jTextBadPrice.setForeground(new java.awt.Color(102, 102, 102));
    jTextBadPrice.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextBadPrice.setBorder(null);
    jTextBadPrice.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    jTextBadPrice.setEnabled(false);
    jTextBadPrice.setPreferredSize(new java.awt.Dimension(70, 25));

    jTextNoChange.setBackground(new java.awt.Color(224, 223, 227));
    jTextNoChange.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
    jTextNoChange.setForeground(new java.awt.Color(102, 102, 102));
    jTextNoChange.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextNoChange.setBorder(null);
    jTextNoChange.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    jTextNoChange.setEnabled(false);
    jTextNoChange.setPreferredSize(new java.awt.Dimension(70, 25));

    jLabel19.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jLabel19.setText(bundle.getString("label.cvsbadcats")); // NOI18N
    jLabel19.setPreferredSize(new java.awt.Dimension(100, 25));

    jTextBadCats.setBackground(new java.awt.Color(224, 223, 227));
    jTextBadCats.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
    jTextBadCats.setForeground(new java.awt.Color(102, 102, 102));
    jTextBadCats.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextBadCats.setBorder(null);
    jTextBadCats.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    jTextBadCats.setEnabled(false);
    jTextBadCats.setPreferredSize(new java.awt.Dimension(70, 25));

    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()
                            .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jTextRecords, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jTextUpdates, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(
                                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jTextBadCats, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextNew, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextInvalid, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextUpdate, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextMissing, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextBadPrice, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jTextNoChange, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap(26, Short.MAX_VALUE)));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addGap(0, 0, 0).addGroup(jPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextRecords, 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.BASELINE)
                            .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextNew, 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.BASELINE)
                            .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextInvalid, 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.BASELINE)
                            .addComponent(jTextUpdates, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextUpdate, 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.BASELINE)
                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextMissing, 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.BASELINE)
                            .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextBadPrice, 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.BASELINE)
                            .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextNoChange, 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.BASELINE)
                            .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextBadCats, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jComboSeparator.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    jComboSeparator.setPreferredSize(new java.awt.Dimension(50, 30));

    jImport.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
    jImport.setText(bundle.getString("label.csvimpostbtn")); // NOI18N
    jImport.setEnabled(false);
    jImport.setPreferredSize(new java.awt.Dimension(120, 30));
    jImport.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jImportActionPerformed(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().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addGap(10, 10, 10).addComponent(
                                    jFileChooserPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    false)
                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout
                                                    .createSequentialGroup()
                                                    .addComponent(jLabel18,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(jComboSeparator,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(106, 106, 106).addComponent(jHeaderRead,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(layout.createSequentialGroup()
                                                    .addComponent(jImport,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(8, 8, 8)))
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 394,
                                                    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)))))
                            .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addGap(0, 0, Short.MAX_VALUE).addComponent(jLabel17)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addComponent(jLabel17)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jFileChooserPanel, 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(jComboSeparator, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jHeaderRead, 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.LEADING)
                            .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jImport, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
}

From source file:convcao.com.agent.ConvcaoNeptusInteraction.java

@Override
public void initSubPanel() {
    jPanelMain = new JPanel();
    jPanel1 = new JPanel();
    jPanel2 = new JPanel();
    jLabel2 = new JLabel();
    jScrollPane1 = new JScrollPane();
    jTextPane1 = new JTextPane();
    renewButton = new JButton();
    jLabel4 = new JLabel();
    jTextField1 = new JTextField();
    jLabel5 = new JLabel();
    jPasswordField1 = new JPasswordField();
    connectButton = new JButton();
    jScrollPane2 = new JScrollPane();
    jTextArea1 = new JTextArea();
    jLabel7 = new JLabel();
    jLabel8 = new JLabel();
    jButton1 = new JButton();
    jButton2 = new JButton();
    jLabel1 = new JLabel();
    jLabel9 = new JLabel();
    jLabel10 = new JLabel();
    jLabel11 = new JLabel();
    jLabel12 = new JLabel();
    jLabel6 = new JLabel();
    jLabel3 = new JLabel();

    jLabel11.setIcon(noptilusLogo);//from w w  w  . j a  v a 2  s .c om

    jLabel12.setHorizontalAlignment(SwingConstants.LEFT);
    jLabel12.setText("<html>www.convcao.com<br>version 0.01</html>");
    jLabel12.setToolTipText("");
    jLabel12.setHorizontalTextPosition(SwingConstants.RIGHT);

    GroupLayout jPanel1Layout = new GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addComponent(jLabel11, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(GroupLayout.Alignment.TRAILING,
                    jPanel1Layout.createSequentialGroup().addGap(0, 19, Short.MAX_VALUE).addComponent(jLabel12,
                            GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jLabel11, GroupLayout.PREFERRED_SIZE, 45, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jLabel12,
                            GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));

    jLabel2.setFont(new Font("Tahoma", 0, 10)); // NOI18N
    jLabel2.setText("Unique ID");

    jTextPane1.setEditable(true);
    jScrollPane1.setViewportView(jTextPane1);
    //jTextPane1.getAccessibleContext().setAccessibleName("");

    renewButton.setText("RENEW");
    renewButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            renewButtonActionPerformed(evt);
        }
    });

    jLabel4.setFont(new Font("Tahoma", 0, 12)); // NOI18N
    jLabel4.setText("Username");

    jTextField1.setText("FTPUser");

    jLabel5.setFont(new Font("Tahoma", 0, 12)); // NOI18N
    jLabel5.setText("Password");

    jPasswordField1.setText("FTPUser123");

    connectButton.setText("Connect");
    connectButton.setEnabled(false);
    connectButton.setActionCommand("connect");
    connectButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            try {
                connectButtonActionPerformed(evt);
            } catch (FileNotFoundException | UnsupportedEncodingException e) {
                e.printStackTrace();
            } catch (SocketException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    });

    jTextArea1.setEditable(false);
    jTextArea1.setColumns(20);
    jTextArea1.setRows(5);
    jScrollPane2.setViewportView(jTextArea1);

    jLabel7.setFont(new Font("Tahoma", 0, 12)); // NOI18N
    jLabel7.setText("Command Monitor");

    jButton1.setFont(new Font("Tahoma", 1, 12)); // NOI18N
    jButton1.setText("START");
    jButton1.setEnabled(false);
    jButton1.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            startButtonActionPerformed(evt);
        }
    });

    jButton2.setFont(new Font("Tahoma", 1, 12)); // NOI18N
    jButton2.setText("STOP");
    jButton2.setEnabled(false);
    jButton2.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            stopButtonActionPerformed(evt);
        }
    });

    jLabel1.setForeground(new Color(255, 0, 0));
    jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel1.setText(
            "<html>Click HERE to activate the web service using your ID<br>When the web application is ready, press Start </html>");
    jLabel1.setCursor(new Cursor(Cursor.HAND_CURSOR));
    jLabel1.addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent evt) {
            try {
                jLabel1MouseClicked(evt);
            } catch (URISyntaxException | IOException e) {
                e.printStackTrace();
            }
        }
    });

    //jLabel9.setText("Working...");
    jLabel9.setIcon(runIcon);
    jLabel9.setVisible(false);

    jLabel10.setText("---");

    jLabel6.setForeground(new Color(0, 204, 0));
    jLabel6.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel6.setText("---");

    GroupLayout jPanel2Layout = new GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(
            GroupLayout.Alignment.TRAILING,
            jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                    .createParallelGroup(GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addComponent(jLabel6,
                            GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup().addGap(126, 126, 126)
                                            .addComponent(jLabel7, GroupLayout.PREFERRED_SIZE, 110,
                                                    GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel2Layout.createSequentialGroup().addGap(23, 23, 23)
                                            .addGroup(jPanel2Layout
                                                    .createParallelGroup(GroupLayout.Alignment.TRAILING)
                                                    .addGroup(jPanel2Layout
                                                            .createParallelGroup(GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addGroup(GroupLayout.Alignment.TRAILING,
                                                                    jPanel2Layout.createSequentialGroup()
                                                                            .addComponent(jLabel9,
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    56,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addPreferredGap(
                                                                                    LayoutStyle.ComponentPlacement.RELATED,
                                                                                    GroupLayout.DEFAULT_SIZE,
                                                                                    Short.MAX_VALUE)
                                                                            .addComponent(jButton1,
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    80,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addGap(29, 29, 29)
                                                                            .addComponent(jButton2,
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    77,
                                                                                    GroupLayout.PREFERRED_SIZE))
                                                            .addComponent(jScrollPane2,
                                                                    GroupLayout.Alignment.TRAILING,
                                                                    GroupLayout.PREFERRED_SIZE, 308,
                                                                    GroupLayout.PREFERRED_SIZE))
                                                    .addComponent(jLabel10, GroupLayout.Alignment.LEADING,
                                                            GroupLayout.PREFERRED_SIZE, 103,
                                                            GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jLabel1, GroupLayout.PREFERRED_SIZE, 299,
                                                            GroupLayout.PREFERRED_SIZE))))
                            .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel2Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                            .addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(
                                    GroupLayout.Alignment.TRAILING,
                                    jPanel2Layout.createSequentialGroup()
                                            .addComponent(jLabel2, GroupLayout.PREFERRED_SIZE, 80,
                                                    GroupLayout.PREFERRED_SIZE)
                                            .addGap(18, 18, 18)
                                            .addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 130,
                                                    GroupLayout.PREFERRED_SIZE)
                                            .addGap(18, 18, 18).addComponent(renewButton))
                                    .addGroup(GroupLayout.Alignment.TRAILING,
                                            jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                                    .createParallelGroup(GroupLayout.Alignment.LEADING, false)
                                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                                            .addComponent(jLabel4, GroupLayout.PREFERRED_SIZE,
                                                                    64, GroupLayout.PREFERRED_SIZE)
                                                            .addGap(18, 18, 18).addComponent(jTextField1,
                                                                    GroupLayout.PREFERRED_SIZE, 130,
                                                                    GroupLayout.PREFERRED_SIZE))
                                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                                            .addComponent(jLabel5, GroupLayout.PREFERRED_SIZE,
                                                                    64, GroupLayout.PREFERRED_SIZE)
                                                            .addGap(18, 18, 18).addComponent(jPasswordField1)))
                                                    .addGap(14, 14, 14).addComponent(connectButton)))))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.LEADING, false)
                            .addComponent(renewButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jScrollPane1)
                            .addComponent(jLabel2, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jTextField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                                    GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jPasswordField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                                    GroupLayout.PREFERRED_SIZE)
                            .addComponent(connectButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jLabel6, GroupLayout.PREFERRED_SIZE, 21, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel1)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel7, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane2, GroupLayout.PREFERRED_SIZE, 113, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jButton2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jButton1, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jLabel9, GroupLayout.PREFERRED_SIZE, 33, GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel10, GroupLayout.PREFERRED_SIZE, 26, GroupLayout.PREFERRED_SIZE)
                    .addGap(5, 5, 5)));

    jLabel1.getAccessibleContext().setAccessibleName("jLabel1");

    jLabel3.setFont(new Font("Tahoma", 1, 22)); // NOI18N
    jLabel3.setText("Real Time Navigation");

    jLabel8.setIcon(appLogo);

    GroupLayout layout = new GroupLayout(jPanelMain);
    jPanelMain.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel3)
                    .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel1, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jLabel8, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel2, GroupLayout.PREFERRED_SIZE, 331, GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout
            .createSequentialGroup().addComponent(jLabel3)
            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(jLabel8, GroupLayout.PREFERRED_SIZE, 110, GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(jPanel1,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jPanel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addContainerGap()));

    addMenuItem("Settings>Noptilus>Coordinate Settings",
            ImageUtils.getIcon(PluginUtils.getPluginIcon(getClass())), new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    PluginUtils.editPluginProperties(coords, true);
                    coords.saveProps();
                }
            });

    addMenuItem("Settings>Noptilus>ConvCAO Settings", ImageUtils.getIcon(PluginUtils.getPluginIcon(getClass())),
            new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    PluginUtils.editPluginProperties(ConvcaoNeptusInteraction.this, true);
                }
            });

    addMenuItem("Settings>Noptilus>Force vehicle depth",
            ImageUtils.getIcon(PluginUtils.getPluginIcon(getClass())), new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    if (positions.isEmpty()) {
                        GuiUtils.errorMessage(getConsole(), "Force vehicle depth",
                                "ConvCAO control is not active");
                        return;
                    }
                    String[] choices = nameTable.values().toArray(new String[0]);

                    String vehicle = (String) JOptionPane.showInputDialog(getConsole(), "Force vehicle depth",
                            "Choose vehicle", JOptionPane.QUESTION_MESSAGE, null, choices, choices[0]);

                    if (vehicle != null) {
                        double depth = depths.get(vehicle);
                        String newDepth = JOptionPane.showInputDialog(getConsole(), "New depth", "" + depth);
                        try {
                            double dd = Double.parseDouble(newDepth);
                            depths.put(vehicle, dd);
                        } catch (Exception ex) {
                            GuiUtils.errorMessage(getConsole(), ex);
                        }
                    }
                }
            });

    add(jPanelMain);

    renewButtonActionPerformed(null);
}

From source file:de.tor.tribes.ui.panels.MinimapPanel.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  . j  a  va2 s .  co m*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jScreenshotControl = new javax.swing.JFrame();
    jScalingSlider = new javax.swing.JSlider();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jFileTypeChooser = new javax.swing.JComboBox();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jLabel3 = new javax.swing.JLabel();
    jTransparancySlider = new javax.swing.JSlider();
    jScreenshotPreview = new javax.swing.JDialog();
    jPanel1 = new javax.swing.JPanel();

    jScreenshotControl.setTitle("Einstellungen");
    jScreenshotControl.addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            fireScreenshotControlClosingEvent(evt);
        }
    });

    jScalingSlider.setMajorTickSpacing(1);
    jScalingSlider.setMaximum(10);
    jScalingSlider.setMinimum(1);
    jScalingSlider.setPaintLabels(true);
    jScalingSlider.setPaintTicks(true);
    jScalingSlider.setSnapToTicks(true);
    jScalingSlider.setValue(1);
    jScalingSlider.setOpaque(false);
    jScalingSlider.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            fireChangeScreenshotScalingEvent(evt);
        }
    });

    jLabel1.setText("Zoom");

    jLabel2.setText("Dateityp");

    jFileTypeChooser.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "png", "gif", "jpeg" }));

    jButton1.setText("Schlieen");
    jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            fireCloseScreenshotEvent(evt);
        }
    });

    jButton2.setText("Speichern");
    jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            fireSaveScreenshotEvent(evt);
        }
    });

    jLabel3.setText("Legendentransparenz");

    jTransparancySlider.setMajorTickSpacing(1);
    jTransparancySlider.setMaximum(10);
    jTransparancySlider.setPaintLabels(true);
    jTransparancySlider.setPaintTicks(true);
    jTransparancySlider.setSnapToTicks(true);
    jTransparancySlider.setToolTipText("Transparenz der Legende (10 = keine Legende)");
    jTransparancySlider.setValue(0);
    jTransparancySlider.setOpaque(false);

    javax.swing.GroupLayout jScreenshotControlLayout = new javax.swing.GroupLayout(
            jScreenshotControl.getContentPane());
    jScreenshotControl.getContentPane().setLayout(jScreenshotControlLayout);
    jScreenshotControlLayout.setHorizontalGroup(jScreenshotControlLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jScreenshotControlLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jScreenshotControlLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    jScreenshotControlLayout.createSequentialGroup()
                                            .addGap(0, 0, Short.MAX_VALUE).addComponent(jButton1)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jButton2))
                            .addGroup(jScreenshotControlLayout.createSequentialGroup()
                                    .addGroup(jScreenshotControlLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel1).addComponent(jLabel3).addComponent(jLabel2,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 100,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jScreenshotControlLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jTransparancySlider,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE)
                                            .addComponent(jScalingSlider, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    236, Short.MAX_VALUE)
                                            .addComponent(jFileTypeChooser, 0, 236, Short.MAX_VALUE))))
                    .addContainerGap()));
    jScreenshotControlLayout.setVerticalGroup(jScreenshotControlLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jScreenshotControlLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jScreenshotControlLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 54,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScalingSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jScreenshotControlLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTransparancySlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 22,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jScreenshotControlLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jFileTypeChooser, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 36, Short.MAX_VALUE)
                    .addGroup(jScreenshotControlLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton2).addComponent(jButton1))
                    .addContainerGap()));

    jScreenshotPreview.setTitle("Vorschau");
    jScreenshotPreview.addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            fireMapPreviewClosingEvent(evt);
        }
    });

    jPanel1.setBackground(new java.awt.Color(102, 255, 102));
    jPanel1.setOpaque(false);
    jPanel1.setPreferredSize(new java.awt.Dimension(0, 0));
    jPanel1.setLayout(new java.awt.BorderLayout());

    javax.swing.GroupLayout jScreenshotPreviewLayout = new javax.swing.GroupLayout(
            jScreenshotPreview.getContentPane());
    jScreenshotPreview.getContentPane().setLayout(jScreenshotPreviewLayout);
    jScreenshotPreviewLayout.setHorizontalGroup(
            jScreenshotPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jScreenshotPreviewLayout.createSequentialGroup().addContainerGap()
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 321, Short.MAX_VALUE)
                            .addContainerGap()));
    jScreenshotPreviewLayout.setVerticalGroup(
            jScreenshotPreviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jScreenshotPreviewLayout.createSequentialGroup().addContainerGap()
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE)
                            .addContainerGap()));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0,
            304, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 142,
            Short.MAX_VALUE));
}

From source file:ca.osmcanada.osvuploadr.JPMain.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  a va 2 s.  c o  m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jbAdd = new javax.swing.JButton();
    listDir = new java.awt.List();
    jlDirectories = new javax.swing.JLabel();
    jbRemoveDup = new javax.swing.JButton();
    jbUpload = new javax.swing.JButton();
    jbExit = new javax.swing.JButton();
    jbRemove = new javax.swing.JButton();

    jbAdd.setText("Add Folder");
    jbAdd.setMaximumSize(new java.awt.Dimension(123, 23));
    jbAdd.setMinimumSize(new java.awt.Dimension(123, 23));
    jbAdd.setPreferredSize(new java.awt.Dimension(123, 23));
    jbAdd.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbAddActionPerformed(evt);
        }
    });

    listDir.setMultipleMode(true);
    listDir.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            listDirActionPerformed(evt);
        }
    });

    jlDirectories.setText("Directories");

    jbRemoveDup.setText("Remove Duplicates");
    jbRemoveDup.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbRemoveDupActionPerformed(evt);
        }
    });

    jbUpload.setText("Upload");
    jbUpload.setMaximumSize(new java.awt.Dimension(123, 23));
    jbUpload.setMinimumSize(new java.awt.Dimension(123, 23));
    jbUpload.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbUploadActionPerformed(evt);
        }
    });

    jbExit.setText("Exit");
    jbExit.setMaximumSize(new java.awt.Dimension(123, 23));
    jbExit.setMinimumSize(new java.awt.Dimension(123, 23));
    jbExit.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbExitActionPerformed(evt);
        }
    });

    jbRemove.setText("Remove Folder");
    jbRemove.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbRemoveActionPerformed(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().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jlDirectories, javax.swing.GroupLayout.PREFERRED_SIZE, 79,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(listDir, javax.swing.GroupLayout.PREFERRED_SIZE, 456,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addGap(24, 24, 24).addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jbAdd, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jbRemove, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout
                                            .createSequentialGroup()
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jbRemoveDup,
                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addComponent(jbUpload,
                                                            javax.swing.GroupLayout.Alignment.TRAILING,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 123,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jbExit,
                                                            javax.swing.GroupLayout.Alignment.TRAILING,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 123,
                                                            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().addGap(19, 19, 19).addComponent(jlDirectories)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(listDir, javax.swing.GroupLayout.PREFERRED_SIZE, 222,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(jbAdd, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jbRemove)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jbRemoveDup)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jbUpload, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jbExit, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(41, Short.MAX_VALUE)));
}

From source file:eu.ggnet.dwoss.receipt.unit.UnitView.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/*from  w  w w  .j  ava2 s .co  m*/
 * Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    manufacturerButtonGroup = new javax.swing.ButtonGroup();
    jPanel1 = new javax.swing.JPanel();
    unitSplitPane = new javax.swing.JSplitPane();
    unitWritePanel = new javax.swing.JPanel();
    internalCommentAreaScrollPane = new javax.swing.JScrollPane();
    internalCommentArea = new javax.swing.JTextArea();
    commentAreaScrollPane = new javax.swing.JScrollPane();
    commentArea = new javax.swing.JTextArea();
    unitItemLabel = new javax.swing.JLabel();
    unitStatusLabel = new javax.swing.JLabel();
    unitStateBox = new javax.swing.JComboBox();
    editProductButton = new javax.swing.JButton();
    partNoField = new javax.swing.JTextField();
    refurbishedIdField = new javax.swing.JTextField();
    unitSnLabel = new javax.swing.JLabel();
    unitNumberLabel = new javax.swing.JLabel();
    serialField = new javax.swing.JTextField();
    editRefurbishedIdButton = new javax.swing.JButton();
    mfgLabel = new javax.swing.JLabel();
    mfgDateChooser = new com.toedter.calendar.JDateChooser();
    jLabel3 = new javax.swing.JLabel();
    warrantyTillChooser = new com.toedter.calendar.JDateChooser();
    jLabel4 = new javax.swing.JLabel();
    warrantyTypeChooser = new javax.swing.JComboBox();
    manufacturerPanel = new javax.swing.JPanel();
    contractorBox = new javax.swing.JComboBox();
    jScrollPane3 = new javax.swing.JScrollPane();
    equipmentTable = new javax.swing.JTable();
    jScrollPane4 = new javax.swing.JScrollPane();
    commentTable = new javax.swing.JTable();
    jScrollPane5 = new javax.swing.JScrollPane();
    internalCommentTable = new javax.swing.JTable();
    unitReadPanel = new javax.swing.JPanel();
    unitShipLabel = new javax.swing.JLabel();
    unitShipField = new javax.swing.JTextField();
    unitOwnerLabel = new javax.swing.JLabel();
    unitOwnerField = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jScrollPane2 = new javax.swing.JScrollPane();
    detailArea = new javax.swing.JEditorPane();
    messagesButton = new javax.swing.JButton();
    operationButtonPanel = new javax.swing.JPanel();
    cancelButton = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Gert bearbeiten/aufnehmen");
    setMinimumSize(new java.awt.Dimension(1080, 700));
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);
        }
    });

    unitSplitPane.setDividerLocation(600);
    unitSplitPane.setResizeWeight(1.0);
    unitSplitPane.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    unitSplitPane.setDoubleBuffered(true);

    unitWritePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
            javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED,
                    new java.awt.Color(204, 204, 255), new java.awt.Color(51, 51, 51))));
    unitWritePanel.setMinimumSize(new java.awt.Dimension(500, 400));
    unitWritePanel.setPreferredSize(new java.awt.Dimension(500, 400));
    unitWritePanel.setLayout(new java.awt.GridBagLayout());

    internalCommentArea.setColumns(20);
    internalCommentArea.setLineWrap(true);
    internalCommentArea.setRows(5);
    internalCommentArea.setWrapStyleWord(true);
    internalCommentAreaScrollPane.setViewportView(internalCommentArea);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.weighty = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(internalCommentAreaScrollPane, gridBagConstraints);

    commentArea.setColumns(20);
    commentArea.setLineWrap(true);
    commentArea.setRows(5);
    commentArea.setWrapStyleWord(true);
    commentAreaScrollPane.setViewportView(commentArea);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.weighty = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(commentAreaScrollPane, gridBagConstraints);

    unitItemLabel.setText("ArtikelNr:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(unitItemLabel, gridBagConstraints);

    unitStatusLabel.setText("Zustand:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(unitStatusLabel, gridBagConstraints);

    unitStateBox.setNextFocusableComponent(warrantyTillChooser);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(unitStateBox, gridBagConstraints);

    editProductButton.setText("Edit");
    editProductButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            editProductButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    unitWritePanel.add(editProductButton, gridBagConstraints);

    partNoField.setName("partNo"); // NOI18N
    partNoField.setNextFocusableComponent(unitStateBox);
    partNoField.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            partNoFieldFocusLost(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(partNoField, gridBagConstraints);

    refurbishedIdField.setName("refurbishId"); // NOI18N
    refurbishedIdField.setNextFocusableComponent(serialField);
    refurbishedIdField.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            refurbishedIdFieldFocusLost(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(refurbishedIdField, gridBagConstraints);

    unitSnLabel.setText("SerienNr:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
    gridBagConstraints.insets = new java.awt.Insets(5, 2, 2, 2);
    unitWritePanel.add(unitSnLabel, gridBagConstraints);

    unitNumberLabel.setText("SopoNr:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(unitNumberLabel, gridBagConstraints);

    serialField.setName("serial"); // NOI18N
    serialField.setNextFocusableComponent(partNoField);
    serialField.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            serialFieldFocusLost(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(serialField, gridBagConstraints);

    editRefurbishedIdButton.setText("Edit");
    editRefurbishedIdButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            editRefurbishedIdButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    unitWritePanel.add(editRefurbishedIdButton, gridBagConstraints);

    mfgLabel.setText("MFG Date:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
    unitWritePanel.add(mfgLabel, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(mfgDateChooser, gridBagConstraints);

    jLabel3.setText("Garantie bis:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 7;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_END;
    gridBagConstraints.insets = new java.awt.Insets(8, 0, 0, 0);
    unitWritePanel.add(jLabel3, gridBagConstraints);

    warrantyTillChooser.setEnabled(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 7;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(warrantyTillChooser, gridBagConstraints);

    jLabel4.setText("Garantietyp:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
    unitWritePanel.add(jLabel4, gridBagConstraints);

    warrantyTypeChooser.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            warrantyTypeChooserActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(warrantyTypeChooser, gridBagConstraints);

    manufacturerPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Hersteller Support"));

    contractorBox.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    contractorBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            contractorBoxActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout manufacturerPanelLayout = new javax.swing.GroupLayout(manufacturerPanel);
    manufacturerPanel.setLayout(manufacturerPanelLayout);
    manufacturerPanelLayout.setHorizontalGroup(
            manufacturerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
                    contractorBox, javax.swing.GroupLayout.Alignment.TRAILING, 0, 333, Short.MAX_VALUE));
    manufacturerPanelLayout.setVerticalGroup(
            manufacturerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(contractorBox, javax.swing.GroupLayout.Alignment.TRAILING));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    unitWritePanel.add(manufacturerPanel, gridBagConstraints);

    equipmentTable
            .setModel(new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Title 1", "Title 2", "Title 3", "Title 4" }));
    jScrollPane3.setViewportView(equipmentTable);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridheight = 9;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.2;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(jScrollPane3, gridBagConstraints);

    commentTable
            .setModel(new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Title 1", "Title 2", "Title 3", "Title 4" }));
    jScrollPane4.setViewportView(commentTable);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.gridheight = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weighty = 0.2;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(jScrollPane4, gridBagConstraints);

    internalCommentTable
            .setModel(new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Title 1", "Title 2", "Title 3", "Title 4" }));
    jScrollPane5.setViewportView(internalCommentTable);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.2;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    unitWritePanel.add(jScrollPane5, gridBagConstraints);

    unitSplitPane.setLeftComponent(unitWritePanel);

    unitReadPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
            javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED,
                    new java.awt.Color(204, 204, 255), java.awt.Color.black)));

    unitShipLabel.setText("Shipment ID:");

    unitShipField.setEditable(false);
    unitShipField.setFocusable(false);

    unitOwnerLabel.setText("Besitzer:");

    unitOwnerField.setEditable(false);
    unitOwnerField.setFocusable(false);

    jLabel1.setText("Details:");

    jScrollPane2.setFocusable(false);

    detailArea.setContentType("text/html"); // NOI18N
    detailArea.setFocusable(false);
    jScrollPane2.setViewportView(detailArea);

    messagesButton.setText("Meldungen");
    messagesButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            messagesButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout unitReadPanelLayout = new javax.swing.GroupLayout(unitReadPanel);
    unitReadPanel.setLayout(unitReadPanelLayout);
    unitReadPanelLayout.setHorizontalGroup(unitReadPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 393, Short.MAX_VALUE)
            .addGroup(unitReadPanelLayout.createSequentialGroup()
                    .addGroup(unitReadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(unitShipLabel).addComponent(unitOwnerLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(unitReadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(unitShipField, javax.swing.GroupLayout.DEFAULT_SIZE, 308,
                                    Short.MAX_VALUE)
                            .addComponent(unitOwnerField, javax.swing.GroupLayout.DEFAULT_SIZE, 308,
                                    Short.MAX_VALUE)))
            .addGroup(unitReadPanelLayout.createSequentialGroup().addComponent(jLabel1).addGap(0, 346,
                    Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, unitReadPanelLayout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE).addComponent(messagesButton)));
    unitReadPanelLayout.setVerticalGroup(unitReadPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(unitReadPanelLayout.createSequentialGroup().addGroup(unitReadPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(unitShipLabel)
                    .addComponent(unitShipField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            unitReadPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(unitOwnerLabel).addComponent(unitOwnerField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 414, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(messagesButton)));

    unitSplitPane.setRightComponent(unitReadPanel);

    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(unitSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 1008, Short.MAX_VALUE)
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jPanel1Layout
                    .createSequentialGroup().addContainerGap().addComponent(unitSplitPane).addContainerGap()));

    operationButtonPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    operationButtonPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

    cancelButton.setText("Abbrechen");
    cancelButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    layout.createSequentialGroup().addContainerGap().addComponent(cancelButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(operationButtonPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(operationButtonPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 45,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    layout.createSequentialGroup()
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(cancelButton).addContainerGap()))));

    pack();
}

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

/** This method is called from within the constructor to
 * initialize the form.//from w w w.j  a  v  a2  s . com
 * 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();
}

From source file:de.tor.tribes.ui.views.DSWorkbenchSelectionFrame.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.
 */// w w  w.  j av  a 2s.c om
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    jSelectionTreePanel = new org.jdesktop.swingx.JXPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jSelectionTree = new org.jdesktop.swingx.JXTree();
    infoPanel = new org.jdesktop.swingx.JXCollapsiblePane();
    jXInfoLabel = new org.jdesktop.swingx.JXLabel();
    jRegionSelectDialog = new javax.swing.JDialog();
    jLabel1 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jPerformSelection = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jStartX = new javax.swing.JSpinner();
    jStartY = new javax.swing.JSpinner();
    jLabel8 = new javax.swing.JLabel();
    jEndX = new javax.swing.JSpinner();
    jLabel9 = new javax.swing.JLabel();
    jEndY = new javax.swing.JSpinner();
    jCustomPointsPanel = new javax.swing.JPanel();
    jCustomPointsField = new org.jdesktop.swingx.JXTextField();
    jApplyCustomFilter = new javax.swing.JButton();
    jAlwaysOnTopBox = new javax.swing.JCheckBox();
    jSelectionPanel = new javax.swing.JPanel();
    capabilityInfoPanel1 = new de.tor.tribes.ui.components.CapabilityInfoPanel();

    jSelectionTreePanel.setPreferredSize(new java.awt.Dimension(600, 400));
    jSelectionTreePanel.setLayout(new java.awt.BorderLayout());

    jScrollPane1.setViewportView(jSelectionTree);

    jSelectionTreePanel.add(jScrollPane1, java.awt.BorderLayout.CENTER);

    infoPanel.setCollapsed(true);
    infoPanel.setInheritAlpha(false);

    jXInfoLabel.setText("Keine Meldung");
    jXInfoLabel.setOpaque(true);
    jXInfoLabel.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            jXInfoLabelfireHideInfoEvent(evt);
        }
    });
    infoPanel.add(jXInfoLabel, java.awt.BorderLayout.CENTER);

    jSelectionTreePanel.add(infoPanel, java.awt.BorderLayout.SOUTH);

    jLabel1.setText("Start");

    jLabel7.setText("Ende");

    jPerformSelection.setText("Auswhlen");
    jPerformSelection.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            firePerformRegionSelectionEvent(evt);
        }
    });

    jButton3.setText("Abbrechen");
    jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            firePerformRegionSelectionEvent(evt);
        }
    });

    jStartX.setModel(new javax.swing.SpinnerNumberModel(0, 0, 999, 1));
    jStartX.setMinimumSize(new java.awt.Dimension(80, 25));
    jStartX.setPreferredSize(new java.awt.Dimension(80, 25));

    jStartY.setModel(new javax.swing.SpinnerNumberModel(0, 0, 999, 1));
    jStartY.setMinimumSize(new java.awt.Dimension(80, 25));
    jStartY.setPreferredSize(new java.awt.Dimension(80, 25));

    jLabel8.setText("|");

    jEndX.setModel(new javax.swing.SpinnerNumberModel(0, 0, 999, 1));
    jEndX.setMinimumSize(new java.awt.Dimension(80, 25));
    jEndX.setPreferredSize(new java.awt.Dimension(80, 25));

    jLabel9.setText("|");

    jEndY.setModel(new javax.swing.SpinnerNumberModel(0, 0, 999, 1));
    jEndY.setMinimumSize(new java.awt.Dimension(80, 25));
    jEndY.setPreferredSize(new java.awt.Dimension(80, 25));

    javax.swing.GroupLayout jRegionSelectDialogLayout = new javax.swing.GroupLayout(
            jRegionSelectDialog.getContentPane());
    jRegionSelectDialog.getContentPane().setLayout(jRegionSelectDialogLayout);
    jRegionSelectDialogLayout.setHorizontalGroup(jRegionSelectDialogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jRegionSelectDialogLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jRegionSelectDialogLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jRegionSelectDialogLayout.createSequentialGroup().addComponent(jLabel1)
                                    .addGap(18, 18, 18)
                                    .addComponent(jStartX, javax.swing.GroupLayout.DEFAULT_SIZE, 111,
                                            Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel8)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jStartY, javax.swing.GroupLayout.DEFAULT_SIZE, 112,
                                            Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    jRegionSelectDialogLayout.createSequentialGroup().addComponent(jButton3)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jPerformSelection))
                            .addGroup(jRegionSelectDialogLayout.createSequentialGroup().addComponent(jLabel7)
                                    .addGap(18, 18, 18)
                                    .addComponent(jEndX, javax.swing.GroupLayout.DEFAULT_SIZE, 111,
                                            Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel9)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jEndY, javax.swing.GroupLayout.DEFAULT_SIZE, 112,
                                            Short.MAX_VALUE)))
                    .addContainerGap()));
    jRegionSelectDialogLayout.setVerticalGroup(
            jRegionSelectDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    jRegionSelectDialogLayout.createSequentialGroup().addContainerGap()
                            .addGroup(jRegionSelectDialogLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel1)
                                    .addComponent(jStartX, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jStartY, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel8))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jRegionSelectDialogLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel7)
                                    .addComponent(jEndX, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jEndY, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel9))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jRegionSelectDialogLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jPerformSelection).addComponent(jButton3))
                            .addContainerGap()));

    jCustomPointsPanel.setMaximumSize(new java.awt.Dimension(100, 50));
    jCustomPointsPanel.setMinimumSize(new java.awt.Dimension(100, 50));
    jCustomPointsPanel.setPreferredSize(new java.awt.Dimension(100, 50));
    jCustomPointsPanel.setLayout(new java.awt.BorderLayout());

    jCustomPointsField.setToolTipText("Punktezahl manuell angeben");
    jCustomPointsField.setMaximumSize(new java.awt.Dimension(30, 30));
    jCustomPointsField.setMinimumSize(new java.awt.Dimension(30, 30));
    jCustomPointsField.setPreferredSize(new java.awt.Dimension(30, 30));
    jCustomPointsField.setPrompt("Punkte");
    jCustomPointsPanel.add(jCustomPointsField, java.awt.BorderLayout.CENTER);

    jApplyCustomFilter.setText("Auswhlen");
    jApplyCustomFilter.setToolTipText("Drfer mit weniger als den angegebenen Punkte whlen");
    jApplyCustomFilter.setMaximumSize(new java.awt.Dimension(30, 20));
    jApplyCustomFilter.setMinimumSize(new java.awt.Dimension(30, 20));
    jApplyCustomFilter.setPreferredSize(new java.awt.Dimension(30, 20));
    jCustomPointsPanel.add(jApplyCustomFilter, java.awt.BorderLayout.PAGE_END);

    setTitle("Auswahl");
    setMinimumSize(new java.awt.Dimension(500, 400));
    getContentPane().setLayout(new java.awt.GridBagLayout());

    jAlwaysOnTopBox.setText("Immer im Vordergrund");
    jAlwaysOnTopBox.setOpaque(false);
    jAlwaysOnTopBox.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            fireAlwaysOnTopChangedEvent(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    getContentPane().add(jAlwaysOnTopBox, gridBagConstraints);

    jSelectionPanel.setBackground(new java.awt.Color(239, 235, 223));
    jSelectionPanel.setMinimumSize(new java.awt.Dimension(300, 100));
    jSelectionPanel.setPreferredSize(new java.awt.Dimension(600, 400));
    jSelectionPanel.setLayout(new java.awt.BorderLayout());
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    getContentPane().add(jSelectionPanel, gridBagConstraints);

    capabilityInfoPanel1.setSearchable(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    getContentPane().add(capabilityInfoPanel1, gridBagConstraints);

    pack();
}