Example usage for javax.swing WindowConstants EXIT_ON_CLOSE

List of usage examples for javax.swing WindowConstants EXIT_ON_CLOSE

Introduction

In this page you can find the example usage for javax.swing WindowConstants EXIT_ON_CLOSE.

Prototype

int EXIT_ON_CLOSE

To view the source code for javax.swing WindowConstants EXIT_ON_CLOSE.

Click Source Link

Document

The exit application default window close operation.

Usage

From source file:labr_client.GUI.forms.EhealthSearch.java

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

    jPanel1 = new CustomJPanel(671, 570, "#DDB300");
    jTextFieldOrgNihii = new javax.swing.JTextField();
    jButton1 = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();
    jButton2 = new javax.swing.JButton();
    jTextFieldProfNihii = new javax.swing.JTextField();
    jTextFieldProfFirstName = new javax.swing.JTextField();
    jTextFieldProfName = new javax.swing.JTextField();
    jTextFieldOrgName = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jButton3 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jLabel3 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setPreferredSize(new java.awt.Dimension(665, 500));
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);
        }
    });

    jPanel1.setPreferredSize(new java.awt.Dimension(665, 570));

    jTextFieldOrgNihii.setText("NIHII number");

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

    jTable1.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { { null, null, null },
            { null, null, null }, { null, null, null }, { null, null, null } },
            new String[] { "Title 1", "Title 2", "Title 3" }));
    jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jTable1MouseClicked(evt);
        }
    });
    jScrollPane1.setViewportView(jTable1);

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

    jTextFieldProfNihii.setText("NIHII number");

    jTextFieldProfFirstName.setText("Firstname");

    jTextFieldProfName.setText("Name");

    jTextFieldOrgName.setText("Name");

    jLabel1.setText("Search physicians");

    jLabel2.setText("Search laboratories");

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

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

    jLabel3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
    jLabel3.setText("Search for eHealth members");

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(50, 50, 50).addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 549,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1)
                            .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jTextFieldProfFirstName).addComponent(jTextFieldProfNihii,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jButton2)
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                    .addComponent(jTextFieldProfName,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 100,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jButton3))))
                            .addComponent(jLabel3)).addGap(87, 87, 87)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel2)
                                    .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jTextFieldOrgNihii).addComponent(jTextFieldOrgName,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 88,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel1Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING, false)
                                                    .addComponent(jButton1,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE)
                                                    .addComponent(jButton4,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE))))
                            .addGap(6, 6, 6)))
                    .addContainerGap(42, Short.MAX_VALUE)));
    jPanel1Layout
            .setVerticalGroup(
                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout
                                    .createSequentialGroup().addGap(40, 40, 40).addComponent(jLabel3)
                                    .addGap(40, 40, 40)
                                    .addGroup(
                                            jPanel1Layout.createParallelGroup(
                                                    javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(jLabel1).addComponent(jLabel2))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jTextFieldProfFirstName,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                    jTextFieldProfName, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(
                                                    jTextFieldOrgName, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jButton3).addComponent(jButton4))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jTextFieldProfNihii,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jButton2)
                                            .addComponent(jTextFieldOrgNihii,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jButton1))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 246,
                                            Short.MAX_VALUE)
                                    .addGap(40, 40, 40)));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            layout.createSequentialGroup().addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 641,
                    javax.swing.GroupLayout.PREFERRED_SIZE).addGap(0, 19, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
            jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 471,
            Short.MAX_VALUE));

    pack();
}

From source file:com.alvermont.terraj.stargen.ui.StargenFrame.java

/** This method is called from within the constructor to
 * initialize the form./*  ww w  .  j  av a2 s  . com*/
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
    generateButton = new JButton();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    jPanel1 = new javax.swing.JPanel();
    nameCheckbox = new javax.swing.JCheckBox();
    massCheckbox = new javax.swing.JCheckBox();
    hipCheckbox = new javax.swing.JCheckBox();
    lumCheckbox = new javax.swing.JCheckBox();
    nameField = new javax.swing.JTextField();
    hipSpinner = new javax.swing.JSpinner();
    massSpinner = new javax.swing.JSpinner();
    lumSpinner = new javax.swing.JSpinner();
    seedCheckbox = new javax.swing.JCheckBox();
    seedSpinner = new javax.swing.JSpinner();
    jPanel2 = new javax.swing.JPanel();
    classCheckbox = new javax.swing.JCheckBox();
    subclassCheckbox = new javax.swing.JCheckBox();
    lumClassCheckbox = new javax.swing.JCheckBox();
    classCombo = new JComboBox<String>();
    subclassCombo = new JComboBox<String>();
    lumClassCombo = new JComboBox<String>();
    jPanel3 = new javax.swing.JPanel();
    distanceCheckbox = new javax.swing.JCheckBox();
    ascensionCheckbox = new javax.swing.JCheckBox();
    declinationCheckbox = new javax.swing.JCheckBox();
    distanceSpinner = new javax.swing.JSpinner();
    ascensionSpinner = new javax.swing.JSpinner();
    declinationSpinner = new javax.swing.JSpinner();
    resetButton = new javax.swing.JButton();
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    loadMenuItem = new javax.swing.JMenuItem();
    saveMenuItem = new javax.swing.JMenuItem();
    jSeparator1 = new javax.swing.JSeparator();
    exitMenuItem = new javax.swing.JMenuItem();
    jMenu2 = new javax.swing.JMenu();
    aboutItem = new javax.swing.JMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Stargen Solar System Generator");
    generateButton.setText("Generate ...");
    generateButton.setToolTipText("Generate a solar system using the parameters in the dialog");
    generateButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            generateButtonActionPerformed(evt);
        }
    });

    nameCheckbox.setText("Name of Star");
    nameCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    nameCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    nameCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            nameCheckboxStateChanged(evt);
        }
    });

    massCheckbox.setText("Stellar Mass (Sol = 1.0)");
    massCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    massCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    massCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            massCheckboxStateChanged(evt);
        }
    });

    hipCheckbox.setText("Hipparcus Catalogue Number");
    hipCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    hipCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    hipCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            hipCheckboxStateChanged(evt);
        }
    });

    lumCheckbox.setText("Stellar Luminosity (Sol = 1.0)");
    lumCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    lumCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    lumCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            lumCheckboxStateChanged(evt);
        }
    });

    nameField.setText("Stargen");
    nameField.setToolTipText("The name of the star and the system for use in output");
    nameField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            nameFieldActionPerformed(evt);
        }
    });
    nameField.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            nameFieldFocusLost(evt);
        }
    });

    hipSpinner.setModel(new SpinnerNumberModel(500000, 0, 10000000, 1));
    hipSpinner.setToolTipText("Stellar catalogue number used for Celestia output");
    hipSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            hipSpinnerStateChanged(evt);
        }
    });

    massSpinner.setModel(new SpinnerNumberModel(1.0, 0.1, 10000.0, 0.01));
    massSpinner.setToolTipText("The stellar mass compared to our Sun");
    massSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            massSpinnerStateChanged(evt);
        }
    });

    lumSpinner.setModel(new SpinnerNumberModel(1.0, 0.1, 10000.0, 0.01));
    lumSpinner.setToolTipText("The stellar luminosity compared to our Sun");
    lumSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            lumSpinnerStateChanged(evt);
        }
    });

    seedCheckbox.setText("Random number seed");
    seedCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    seedCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    seedCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            seedCheckboxStateChanged(evt);
        }
    });

    seedSpinner.setModel(new SpinnerNumberModel((Number) new Long(0L), (Comparable<Long>) new Long(0L),
            (Comparable) Long.MAX_VALUE, (Number) new Long(1)));
    seedSpinner.setToolTipText("Select a specific seed value. The same seed always generates the same result");
    seedSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            seedSpinnerStateChanged(evt);
        }
    });

    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup().addContainerGap().add(jPanel1Layout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel1Layout.createSequentialGroup()
                            .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(massCheckbox).add(hipCheckbox).add(lumCheckbox).add(seedCheckbox))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                    .add(jPanel1Layout
                                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                            .add(jPanel1Layout
                                                    .createParallelGroup(
                                                            org.jdesktop.layout.GroupLayout.LEADING, false)
                                                    .add(massSpinner,
                                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 184,
                                                            Short.MAX_VALUE)
                                                    .add(hipSpinner,
                                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 184,
                                                            Short.MAX_VALUE))
                                            .add(lumSpinner, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                    184, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .add(seedSpinner, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 184,
                                            Short.MAX_VALUE)))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING,
                            jPanel1Layout.createSequentialGroup().add(nameCheckbox)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(nameField,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 333,
                                            Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup().addContainerGap()
                    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(nameField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(nameCheckbox))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(hipCheckbox).add(hipSpinner, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(9, 9, 9)
                    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(massCheckbox).add(massSpinner, 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(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(lumCheckbox).add(lumSpinner, 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(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(seedCheckbox).add(seedSpinner))
                    .addContainerGap(31, Short.MAX_VALUE)));
    jTabbedPane1.addTab("Basic", jPanel1);

    classCheckbox.setText("Spectral Class");
    classCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    classCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    classCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            classCheckboxStateChanged(evt);
        }
    });

    subclassCheckbox.setText("Spectral Subclass");
    subclassCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    subclassCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    subclassCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            subclassCheckboxStateChanged(evt);
        }
    });

    lumClassCheckbox.setText("Luminosity Class");
    lumClassCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    lumClassCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    lumClassCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            lumClassCheckboxStateChanged(evt);
        }
    });

    classCombo.setModel(
            new javax.swing.DefaultComboBoxModel<String>(new String[] { "O", "B", "A", "F", "G", "K", "M" }));
    classCombo.setToolTipText("Select the spectral class of the star. O is the hottest.");
    classCombo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            classComboActionPerformed(evt);
        }
    });

    subclassCombo.setModel(new javax.swing.DefaultComboBoxModel<String>(
            new String[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }));
    subclassCombo.setToolTipText("Select the spectral subclass of the star");
    subclassCombo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            subclassComboActionPerformed(evt);
        }
    });

    lumClassCombo.setModel(new javax.swing.DefaultComboBoxModel<String>(
            new String[] { "Ia", "Ib", "II", "III", "IV", "V", "VI", "VII" }));
    lumClassCombo.setToolTipText("Select the luminosity class of the star");
    lumClassCombo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            lumClassComboActionPerformed(evt);
        }
    });

    org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lumClassCheckbox).add(classCheckbox).add(subclassCheckbox))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 279, Short.MAX_VALUE)
                    .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                            .add(classCombo, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(subclassCombo, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .add(lumClassCombo, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel2Layout.createSequentialGroup().add(16, 16, 16)
                    .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(classCheckbox).add(classCombo, 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(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(subclassCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(subclassCheckbox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 18,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(lumClassCheckbox).add(lumClassCombo,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(75, Short.MAX_VALUE)));
    jTabbedPane1.addTab("Spectral", jPanel2);

    distanceCheckbox.setText("Distance (light years)");
    distanceCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    distanceCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    distanceCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            distanceCheckboxStateChanged(evt);
        }
    });

    ascensionCheckbox.setText("Right Ascension (degrees)");
    ascensionCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    ascensionCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    ascensionCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            ascensionCheckboxStateChanged(evt);
        }
    });

    declinationCheckbox.setText("Declination (degrees)");
    declinationCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    declinationCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));
    declinationCheckbox.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            declinationCheckboxStateChanged(evt);
        }
    });

    distanceSpinner.setModel(new SpinnerNumberModel(100.0, 0.0, 10000.0, 0.01));
    distanceSpinner.setToolTipText("Set the distance of the star from Earth in light years");
    distanceSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            distanceSpinnerStateChanged(evt);
        }
    });

    ascensionSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, 360.0, 0.01));
    ascensionSpinner.setToolTipText("Set the right ascension of the star in degrees");
    ascensionSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            ascensionSpinnerStateChanged(evt);
        }
    });

    declinationSpinner.setModel(new SpinnerNumberModel(0.0, -90.0, 90.0, 0.01));
    declinationSpinner.setToolTipText("Set the declination of the star in degrees");
    declinationSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            declinationSpinnerStateChanged(evt);
        }
    });

    org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup().addContainerGap()
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(distanceCheckbox).add(ascensionCheckbox).add(declinationCheckbox))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 201, Short.MAX_VALUE)
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(declinationSpinner).add(ascensionSpinner).add(distanceSpinner,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 76, Short.MAX_VALUE))
                    .addContainerGap()));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup().addContainerGap()
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(distanceCheckbox).add(distanceSpinner,
                                    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(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(ascensionCheckbox).add(ascensionSpinner,
                                    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(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(declinationCheckbox).add(declinationSpinner,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(86, Short.MAX_VALUE)));
    jTabbedPane1.addTab("Position", jPanel3);

    resetButton.setText("Reset All");
    resetButton.setToolTipText("Reset all the parameters to their defaults");
    resetButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            resetButtonActionPerformed(evt);
        }
    });

    jMenu1.setText("File");
    loadMenuItem.setText("Load Settings ...");
    loadMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            loadMenuItemActionPerformed(evt);
        }
    });

    jMenu1.add(loadMenuItem);

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

    jMenu1.add(saveMenuItem);

    jMenu1.add(jSeparator1);

    exitMenuItem.setText("Exit");
    exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            exitMenuItemActionPerformed(evt);
        }
    });

    jMenu1.add(exitMenuItem);

    jMenuBar1.add(jMenu1);

    jMenu2.setText("Help");
    aboutItem.setText("About ...");
    aboutItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            aboutItemActionPerformed(evt);
        }
    });

    jMenu2.add(aboutItem);

    jMenuBar1.add(jMenu2);

    setJMenuBar(jMenuBar1);

    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().addContainerGap()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(layout.createSequentialGroup().add(resetButton)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 273,
                                            Short.MAX_VALUE)
                                    .add(generateButton))
                            .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 445,
                                    Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(
            org.jdesktop.layout.GroupLayout.TRAILING,
            layout.createSequentialGroup().addContainerGap()
                    .add(jTabbedPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 194,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 13, Short.MAX_VALUE)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(resetButton)
                            .add(generateButton))
                    .addContainerGap()));
    java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    setBounds((screenSize.width - 473) / 2, (screenSize.height - 300) / 2, 473, 300);
}

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

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

    controlContextTabbedPane = new javax.swing.JTabbedPane();
    actionPanel = new com.willwinder.universalgcodesender.uielements.action.ActionPanel(backend);
    macroEditPanel = new javax.swing.JScrollPane();
    macroPanel = new com.willwinder.universalgcodesender.uielements.MacroPanel(backend);
    visualizerPanel = new com.willwinder.universalgcodesender.visualizer.VisualizerPanel(backend);
    connectionPanel = new com.willwinder.universalgcodesender.uielements.connection.ConnectionPanel(backend);
    commandPanel = new com.willwinder.universalgcodesender.uielements.command.CommandPanel(backend);
    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 com.willwinder.universalgcodesender.uielements.pendant.PendantMenu(backend);

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

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

    macroEditPanel.setViewportView(macroPanel);

    controlContextTabbedPane.addTab("Macros", macroEditPanel);
    controlContextTabbedPane.addTab("Visualizer", visualizerPanel);

    connectionPanel.setMinimumSize(new java.awt.Dimension(1, 1));
    connectionPanel.setPreferredSize(new java.awt.Dimension(275, 130));

    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");
    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(connectionPanel, 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(controlContextTabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 764,
                            Short.MAX_VALUE)
                    .add(commandPanel, 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()
                    .add(controlContextTabbedPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 294,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(commandPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE))
            .add(connectionPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));

    pack();
}

From source file:EnrollFingerprint.Enroll.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  ava2s .co m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    buttonGroup1 = new javax.swing.ButtonGroup();
    jPanelBackground = new javax.swing.JPanel();
    picFingerprint = new javax.swing.JLabel();
    jPanelConsole = new javax.swing.JPanel();
    txtConsole = new javax.swing.JTextField();
    lblConsole = new javax.swing.JLabel();
    btnSave = new javax.swing.JButton();
    btnCancel = new javax.swing.JButton();
    jPanelLog = new javax.swing.JPanel();
    JScrollPane1 = new javax.swing.JScrollPane();
    txtLog = new javax.swing.JTextArea();
    lblLog = new javax.swing.JLabel();
    btnRead = new javax.swing.JButton();
    lblStatus = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Almacenar Huellas");
    setResizable(false);

    jPanelBackground.setBackground(new java.awt.Color(238, 241, 245));

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

    jPanelConsole.setBackground(new java.awt.Color(255, 255, 255));

    txtConsole.setEditable(false);
    txtConsole.setForeground(new java.awt.Color(136, 136, 136));
    txtConsole.setText("Consola de estado");

    lblConsole.setForeground(new java.awt.Color(136, 136, 136));
    lblConsole.setText("Consola:");

    javax.swing.GroupLayout jPanelConsoleLayout = new javax.swing.GroupLayout(jPanelConsole);
    jPanelConsole.setLayout(jPanelConsoleLayout);
    jPanelConsoleLayout.setHorizontalGroup(jPanelConsoleLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsoleLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelConsoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtConsole).addGroup(jPanelConsoleLayout.createSequentialGroup()
                                    .addComponent(lblConsole).addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanelConsoleLayout.setVerticalGroup(jPanelConsoleLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsoleLayout.createSequentialGroup()
                    .addGap(5, 5, 5).addComponent(lblConsole)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(txtConsole, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(15, Short.MAX_VALUE)));

    btnSave.setText("Guardar");
    btnSave.setEnabled(false);
    btnSave.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnSaveActionPerformed(evt);
        }
    });

    btnCancel.setText("Cancelar");
    btnCancel.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnCancelActionPerformed(evt);
        }
    });

    jPanelLog.setBackground(new java.awt.Color(255, 255, 255));

    txtLog.setEditable(false);
    txtLog.setColumns(20);
    txtLog.setForeground(new java.awt.Color(168, 168, 168));
    txtLog.setRows(5);
    JScrollPane1.setViewportView(txtLog);

    lblLog.setForeground(new java.awt.Color(136, 136, 136));
    lblLog.setText("Estado:");

    javax.swing.GroupLayout jPanelLogLayout = new javax.swing.GroupLayout(jPanelLog);
    jPanelLog.setLayout(jPanelLogLayout);
    jPanelLogLayout.setHorizontalGroup(jPanelLogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLogLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelLogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(JScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 409, Short.MAX_VALUE)
                            .addGroup(jPanelLogLayout.createSequentialGroup().addComponent(lblLog).addGap(0, 0,
                                    Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanelLogLayout.setVerticalGroup(jPanelLogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLogLayout.createSequentialGroup().addContainerGap().addComponent(lblLog)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(JScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
                    .addContainerGap()));

    btnRead.setText("Leer Huella");
    btnRead.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnReadActionPerformed(evt);
        }
    });

    lblStatus.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    lblStatus.setText("Intentos");

    javax.swing.GroupLayout jPanelBackgroundLayout = new javax.swing.GroupLayout(jPanelBackground);
    jPanelBackground.setLayout(jPanelBackgroundLayout);
    jPanelBackgroundLayout.setHorizontalGroup(jPanelBackgroundLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBackgroundLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelBackgroundLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanelBackgroundLayout.createSequentialGroup()
                                    .addComponent(picFingerprint, javax.swing.GroupLayout.PREFERRED_SIZE, 250,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(jPanelBackgroundLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jPanelConsole, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jPanelLog, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(jPanelBackgroundLayout.createSequentialGroup().addComponent(lblStatus)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(btnRead)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnSave)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnCancel)))
                    .addContainerGap()));
    jPanelBackgroundLayout.setVerticalGroup(jPanelBackgroundLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBackgroundLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelBackgroundLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelBackgroundLayout.createSequentialGroup()
                                    .addComponent(jPanelConsole, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jPanelLog, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(picFingerprint, javax.swing.GroupLayout.PREFERRED_SIZE, 300,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                    .addGroup(jPanelBackgroundLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnCancel).addComponent(btnSave).addComponent(btnRead)
                            .addComponent(lblStatus))
                    .addContainerGap()));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanelBackground, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
            jPanelBackground, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
            Short.MAX_VALUE));

    pack();
}

From source file:com.declarativa.interprolog.gui.Ini2.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. co m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    fileChooser = new javax.swing.JFileChooser();
    testButton = new javax.swing.JButton();
    jTabbedPane2 = new javax.swing.JTabbedPane();
    jPanel5 = new javax.swing.JPanel();
    jLayeredPane2 = new javax.swing.JLayeredPane();
    jScrollPane1 = new javax.swing.JScrollPane();
    prologOutput = new javax.swing.JTextArea();
    jButton1 = new javax.swing.JButton();
    jLayeredPane1 = new javax.swing.JLayeredPane();
    jLayeredPane3 = new javax.swing.JLayeredPane();
    jLayeredPane9 = new javax.swing.JLayeredPane();
    jPanel6 = new javax.swing.JPanel();
    jLayeredPane4 = new javax.swing.JLayeredPane();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jLayeredPane5 = new javax.swing.JLayeredPane();
    jLayeredPane6 = new javax.swing.JLayeredPane();
    jLayeredPane7 = new javax.swing.JLayeredPane();
    jScrollPane3 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    jLayeredPane8 = new javax.swing.JLayeredPane();

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

    testButton.setText(org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.testButton.text")); // NOI18N

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jTabbedPane2.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            jTabbedPane2MouseEntered(evt);
        }
    });

    jLayeredPane2.setBackground(new java.awt.Color(0, 0, 0));

    prologOutput.setColumns(20);
    prologOutput.setRows(5);
    prologOutput.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            prologOutputComponentShown(evt);
        }
    });
    jScrollPane1.setViewportView(prologOutput);

    jButton1.setText(org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.jButton1.text")); // NOI18N
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    jLayeredPane1.setBackground(new java.awt.Color(153, 153, 255));
    jLayeredPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jLayeredPane1.setPreferredSize(new java.awt.Dimension(600, 0));

    javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1);
    jLayeredPane1.setLayout(jLayeredPane1Layout);
    jLayeredPane1Layout.setHorizontalGroup(jLayeredPane1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 596, Short.MAX_VALUE));
    jLayeredPane1Layout.setVerticalGroup(jLayeredPane1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 411, Short.MAX_VALUE));

    jLayeredPane3.setBorder(javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.jLayeredPane3.border.title"))); // NOI18N

    javax.swing.GroupLayout jLayeredPane3Layout = new javax.swing.GroupLayout(jLayeredPane3);
    jLayeredPane3.setLayout(jLayeredPane3Layout);
    jLayeredPane3Layout.setHorizontalGroup(jLayeredPane3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jLayeredPane3Layout.setVerticalGroup(jLayeredPane3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 77, Short.MAX_VALUE));

    jLayeredPane9.setBorder(javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.jLayeredPane9.border.title"))); // NOI18N

    javax.swing.GroupLayout jLayeredPane9Layout = new javax.swing.GroupLayout(jLayeredPane9);
    jLayeredPane9.setLayout(jLayeredPane9Layout);
    jLayeredPane9Layout.setHorizontalGroup(jLayeredPane9Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jLayeredPane9Layout.setVerticalGroup(jLayeredPane9Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    javax.swing.GroupLayout jLayeredPane2Layout = new javax.swing.GroupLayout(jLayeredPane2);
    jLayeredPane2.setLayout(jLayeredPane2Layout);
    jLayeredPane2Layout.setHorizontalGroup(
            jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPane2Layout.createSequentialGroup().addGap(22, 22, 22)
                            .addGroup(jLayeredPane2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jButton1)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 488,
                                            Short.MAX_VALUE)
                                    .addComponent(jLayeredPane9))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jLayeredPane2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLayeredPane3).addComponent(jLayeredPane1,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addContainerGap(240, Short.MAX_VALUE)));
    jLayeredPane2Layout
            .setVerticalGroup(jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPane2Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jButton1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jLayeredPane2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jLayeredPane2Layout.createSequentialGroup()
                                            .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    415, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(22, 22, 22)
                                            .addComponent(jLayeredPane3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE))
                                    .addGroup(jLayeredPane2Layout.createSequentialGroup()
                                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    313, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLayeredPane9)))
                            .addContainerGap()));
    jLayeredPane2.setLayer(jScrollPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jButton1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jLayeredPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jLayeredPane3, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jLayeredPane9, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
    jPanel5.setLayout(jPanel5Layout);
    jPanel5Layout
            .setHorizontalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel5Layout.createSequentialGroup().addComponent(jLayeredPane2).addGap(1, 1, 1)));
    jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                    .addComponent(jLayeredPane2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));

    jTabbedPane2.addTab(
            org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.jPanel5.TabConstraints.tabTitle"), jPanel5); // NOI18N

    jPanel6.setPreferredSize(new java.awt.Dimension(1100, 476));

    jButton2.setText(org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.jButton2.text")); // NOI18N
    jButton2.setPreferredSize(new java.awt.Dimension(133, 23));
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });

    jButton3.setText(org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.jButton3.text")); // NOI18N

    jButton4.setText(org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.jButton4.text")); // NOI18N

    javax.swing.GroupLayout jLayeredPane4Layout = new javax.swing.GroupLayout(jLayeredPane4);
    jLayeredPane4.setLayout(jLayeredPane4Layout);
    jLayeredPane4Layout.setHorizontalGroup(jLayeredPane4Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPane4Layout.createSequentialGroup()
                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(73, 73, 73)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 143,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(89, 89, 89).addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 153,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));
    jLayeredPane4Layout.setVerticalGroup(
            jLayeredPane4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    jLayeredPane4Layout.createSequentialGroup().addContainerGap(24, Short.MAX_VALUE)
                            .addGroup(jLayeredPane4Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jButton3).addComponent(jButton4))
                            .addGap(19, 19, 19)));
    jLayeredPane4.setLayer(jButton2, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane4.setLayer(jButton3, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane4.setLayer(jButton4, javax.swing.JLayeredPane.DEFAULT_LAYER);

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

    javax.swing.GroupLayout jLayeredPane5Layout = new javax.swing.GroupLayout(jLayeredPane5);
    jLayeredPane5.setLayout(jLayeredPane5Layout);
    jLayeredPane5Layout.setHorizontalGroup(jLayeredPane5Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jLayeredPane5Layout.setVerticalGroup(jLayeredPane5Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 449, Short.MAX_VALUE));

    jLayeredPane6.setBorder(javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.jLayeredPane6.border.title"))); // NOI18N

    javax.swing.GroupLayout jLayeredPane6Layout = new javax.swing.GroupLayout(jLayeredPane6);
    jLayeredPane6.setLayout(jLayeredPane6Layout);
    jLayeredPane6Layout.setHorizontalGroup(jLayeredPane6Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 541, Short.MAX_VALUE));
    jLayeredPane6Layout.setVerticalGroup(jLayeredPane6Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 88, Short.MAX_VALUE));

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

    jTextArea1.setColumns(20);
    jTextArea1.setRows(5);
    jScrollPane3.setViewportView(jTextArea1);

    javax.swing.GroupLayout jLayeredPane7Layout = new javax.swing.GroupLayout(jLayeredPane7);
    jLayeredPane7.setLayout(jLayeredPane7Layout);
    jLayeredPane7Layout.setHorizontalGroup(
            jLayeredPane7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 761, Short.MAX_VALUE));
    jLayeredPane7Layout
            .setVerticalGroup(jLayeredPane7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE));
    jLayeredPane7.setLayer(jScrollPane3, javax.swing.JLayeredPane.DEFAULT_LAYER);

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

    javax.swing.GroupLayout jLayeredPane8Layout = new javax.swing.GroupLayout(jLayeredPane8);
    jLayeredPane8.setLayout(jLayeredPane8Layout);
    jLayeredPane8Layout.setHorizontalGroup(jLayeredPane8Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jLayeredPane8Layout.setVerticalGroup(jLayeredPane8Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout.setHorizontalGroup(jPanel6Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLayeredPane4).addComponent(jLayeredPane7)
                            .addComponent(jLayeredPane8))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLayeredPane6).addComponent(jLayeredPane5))
                    .addGap(23, 23, 23)));
    jPanel6Layout
            .setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup().addContainerGap()
                            .addGroup(jPanel6Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(jPanel6Layout.createSequentialGroup()
                                            .addComponent(jLayeredPane5, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLayeredPane6, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel6Layout.createSequentialGroup()
                                            .addComponent(jLayeredPane4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLayeredPane7, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLayeredPane8)))
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jTabbedPane2.addTab(
            org.openide.util.NbBundle.getMessage(Ini2.class, "Ini2.jPanel6.TabConstraints.tabTitle"), jPanel6); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jTabbedPane2));
    layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jTabbedPane2));

    jTabbedPane2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(Ini2.class,
            "Ini2.jTabbedPane2.AccessibleContext.accessibleName")); // NOI18N

    pack();
}

From source file:com.declarativa.interprolog.gui.Ini3.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  . ja v a  2s  .c om
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    fileChooser = new javax.swing.JFileChooser();
    testButton = new javax.swing.JButton();
    jTabbedPane2 = new javax.swing.JTabbedPane();
    jPanel5 = new javax.swing.JPanel();
    jLayeredPane2 = new javax.swing.JLayeredPane();
    jScrollPane1 = new javax.swing.JScrollPane();
    prologOutput = new javax.swing.JTextArea();
    jButton1 = new javax.swing.JButton();
    jLayeredPane1 = new javax.swing.JLayeredPane();
    jLayeredPane3 = new javax.swing.JLayeredPane();
    jLayeredPane9 = new javax.swing.JLayeredPane();
    jPanel6 = new javax.swing.JPanel();
    jLayeredPane4 = new javax.swing.JLayeredPane();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jLayeredPane5 = new javax.swing.JLayeredPane();
    jLayeredPane6 = new javax.swing.JLayeredPane();
    jLayeredPane7 = new javax.swing.JLayeredPane();
    jLayeredPane10 = new javax.swing.JLayeredPane();
    jScrollPaneX = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();
    jScrollPane3 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    jLayeredPane8 = new javax.swing.JLayeredPane();

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

    testButton.setText(org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.testButton.text")); // NOI18N

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jTabbedPane2.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            jTabbedPane2MouseEntered(evt);
        }
    });

    jLayeredPane2.setBackground(new java.awt.Color(0, 0, 0));

    prologOutput.setColumns(20);
    prologOutput.setRows(5);
    prologOutput.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            prologOutputComponentShown(evt);
        }
    });
    jScrollPane1.setViewportView(prologOutput);

    jButton1.setText(org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.jButton1.text")); // NOI18N
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    jLayeredPane1.setBackground(new java.awt.Color(153, 153, 255));
    jLayeredPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jLayeredPane1.setPreferredSize(new java.awt.Dimension(600, 0));

    javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1);
    jLayeredPane1.setLayout(jLayeredPane1Layout);
    jLayeredPane1Layout.setHorizontalGroup(jLayeredPane1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 596, Short.MAX_VALUE));
    jLayeredPane1Layout.setVerticalGroup(jLayeredPane1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 411, Short.MAX_VALUE));

    jLayeredPane3.setBorder(javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.jLayeredPane3.border.title"))); // NOI18N

    javax.swing.GroupLayout jLayeredPane3Layout = new javax.swing.GroupLayout(jLayeredPane3);
    jLayeredPane3.setLayout(jLayeredPane3Layout);
    jLayeredPane3Layout.setHorizontalGroup(jLayeredPane3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jLayeredPane3Layout.setVerticalGroup(jLayeredPane3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 77, Short.MAX_VALUE));

    jLayeredPane9.setBorder(javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.jLayeredPane9.border.title"))); // NOI18N

    javax.swing.GroupLayout jLayeredPane9Layout = new javax.swing.GroupLayout(jLayeredPane9);
    jLayeredPane9.setLayout(jLayeredPane9Layout);
    jLayeredPane9Layout.setHorizontalGroup(jLayeredPane9Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jLayeredPane9Layout.setVerticalGroup(jLayeredPane9Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    javax.swing.GroupLayout jLayeredPane2Layout = new javax.swing.GroupLayout(jLayeredPane2);
    jLayeredPane2.setLayout(jLayeredPane2Layout);
    jLayeredPane2Layout.setHorizontalGroup(
            jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPane2Layout.createSequentialGroup().addGap(22, 22, 22)
                            .addGroup(jLayeredPane2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jButton1)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 488,
                                            Short.MAX_VALUE)
                                    .addComponent(jLayeredPane9))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jLayeredPane2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLayeredPane3).addComponent(jLayeredPane1,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addContainerGap(240, Short.MAX_VALUE)));
    jLayeredPane2Layout
            .setVerticalGroup(jLayeredPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPane2Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jButton1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jLayeredPane2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jLayeredPane2Layout.createSequentialGroup()
                                            .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    415, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(22, 22, 22)
                                            .addComponent(jLayeredPane3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE))
                                    .addGroup(jLayeredPane2Layout.createSequentialGroup()
                                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    313, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLayeredPane9)))
                            .addContainerGap()));
    jLayeredPane2.setLayer(jScrollPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jButton1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jLayeredPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jLayeredPane3, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane2.setLayer(jLayeredPane9, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
    jPanel5.setLayout(jPanel5Layout);
    jPanel5Layout
            .setHorizontalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel5Layout.createSequentialGroup().addComponent(jLayeredPane2).addGap(1, 1, 1)));
    jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                    .addComponent(jLayeredPane2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));

    jTabbedPane2.addTab(
            org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.jPanel5.TabConstraints.tabTitle"), jPanel5); // NOI18N

    jPanel6.setPreferredSize(new java.awt.Dimension(1100, 476));

    jButton2.setText(org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.jButton2.text")); // NOI18N
    jButton2.setPreferredSize(new java.awt.Dimension(133, 23));
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });

    jButton3.setText(org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.jButton3.text")); // NOI18N
    jButton3.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton3ActionPerformed(evt);
        }
    });

    jButton4.setText(org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.jButton4.text")); // NOI18N

    javax.swing.GroupLayout jLayeredPane4Layout = new javax.swing.GroupLayout(jLayeredPane4);
    jLayeredPane4.setLayout(jLayeredPane4Layout);
    jLayeredPane4Layout.setHorizontalGroup(jLayeredPane4Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPane4Layout.createSequentialGroup()
                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(73, 73, 73)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 143,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(89, 89, 89).addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 153,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 174, Short.MAX_VALUE)));
    jLayeredPane4Layout.setVerticalGroup(
            jLayeredPane4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    jLayeredPane4Layout.createSequentialGroup().addContainerGap(24, Short.MAX_VALUE)
                            .addGroup(jLayeredPane4Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jButton3).addComponent(jButton4))
                            .addGap(19, 19, 19)));
    jLayeredPane4.setLayer(jButton2, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane4.setLayer(jButton3, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane4.setLayer(jButton4, javax.swing.JLayeredPane.DEFAULT_LAYER);

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

    javax.swing.GroupLayout jLayeredPane5Layout = new javax.swing.GroupLayout(jLayeredPane5);
    jLayeredPane5.setLayout(jLayeredPane5Layout);
    jLayeredPane5Layout.setHorizontalGroup(jLayeredPane5Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jLayeredPane5Layout.setVerticalGroup(jLayeredPane5Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 449, Short.MAX_VALUE));

    jLayeredPane6.setBorder(javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.jLayeredPane6.border.title"))); // NOI18N

    javax.swing.GroupLayout jLayeredPane6Layout = new javax.swing.GroupLayout(jLayeredPane6);
    jLayeredPane6.setLayout(jLayeredPane6Layout);
    jLayeredPane6Layout.setHorizontalGroup(jLayeredPane6Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 541, Short.MAX_VALUE));
    jLayeredPane6Layout.setVerticalGroup(jLayeredPane6Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 88, Short.MAX_VALUE));

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

    jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { null, null }, { null, null }, { null, null }, { null, null } },
            new String[] { "Title 1", "Title 2" }) {
        boolean[] canEdit = new boolean[] { false, false };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jScrollPaneX.setViewportView(jTable1);

    jTextArea1.setColumns(20);
    jTextArea1.setRows(5);
    jScrollPane3.setViewportView(jTextArea1);

    javax.swing.GroupLayout jLayeredPane10Layout = new javax.swing.GroupLayout(jLayeredPane10);
    jLayeredPane10.setLayout(jLayeredPane10Layout);
    jLayeredPane10Layout.setHorizontalGroup(
            jLayeredPane10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPane10Layout.createSequentialGroup()
                            .addComponent(jScrollPaneX, javax.swing.GroupLayout.PREFERRED_SIZE, 337,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 416,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)));
    jLayeredPane10Layout.setVerticalGroup(jLayeredPane10Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jScrollPaneX,
                    javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(jScrollPane3));
    jLayeredPane10.setLayer(jScrollPaneX, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane10.setLayer(jScrollPane3, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout jLayeredPane7Layout = new javax.swing.GroupLayout(jLayeredPane7);
    jLayeredPane7.setLayout(jLayeredPane7Layout);
    jLayeredPane7Layout.setHorizontalGroup(jLayeredPane7Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPane7Layout.createSequentialGroup()
                    .addComponent(jLayeredPane10, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));
    jLayeredPane7Layout
            .setVerticalGroup(jLayeredPane7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLayeredPane10, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE));
    jLayeredPane7.setLayer(jLayeredPane10, javax.swing.JLayeredPane.DEFAULT_LAYER);

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

    javax.swing.GroupLayout jLayeredPane8Layout = new javax.swing.GroupLayout(jLayeredPane8);
    jLayeredPane8.setLayout(jLayeredPane8Layout);
    jLayeredPane8Layout.setHorizontalGroup(jLayeredPane8Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jLayeredPane8Layout.setVerticalGroup(jLayeredPane8Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout.setHorizontalGroup(jPanel6Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLayeredPane4).addComponent(jLayeredPane7)
                            .addComponent(jLayeredPane8))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLayeredPane6).addComponent(jLayeredPane5))
                    .addGap(23, 23, 23)));
    jPanel6Layout
            .setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup().addContainerGap()
                            .addGroup(jPanel6Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(jPanel6Layout.createSequentialGroup()
                                            .addComponent(jLayeredPane5, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLayeredPane6, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel6Layout.createSequentialGroup()
                                            .addComponent(jLayeredPane4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLayeredPane7, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLayeredPane8)))
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jTabbedPane2.addTab(
            org.openide.util.NbBundle.getMessage(Ini3.class, "Ini3.jPanel6.TabConstraints.tabTitle"), jPanel6); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jTabbedPane2));
    layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jTabbedPane2));

    jTabbedPane2.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(Ini3.class,
            "Ini3.jTabbedPane2.AccessibleContext.accessibleName")); // NOI18N

    pack();
}

From source file:ir.ac.iust.nlp.postagger.POSTaggerForm.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 v  a  2  s .  c o m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    rbgPOSTypeD2T = new javax.swing.ButtonGroup();
    rbgPOSTypeT2D = new javax.swing.ButtonGroup();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    pnlConverter = new javax.swing.JPanel();
    tabConverter = new javax.swing.JTabbedPane();
    pnlDep2Tag = new javax.swing.JPanel();
    lblInputCoNLLFile = new javax.swing.JLabel();
    txtInputCoNLLFile = new javax.swing.JTextField();
    btnBrowseInputCoNLLFile = new javax.swing.JButton();
    lblOutputTagPath = new javax.swing.JLabel();
    txtOutputTagPath = new javax.swing.JTextField();
    btnBrowseOutputTagPath = new javax.swing.JButton();
    btnConertDep2Tag = new javax.swing.JButton();
    chkAddGoldTag = new javax.swing.JCheckBox();
    pnlPOSTypeD2T = new javax.swing.JPanel();
    rbFPOSD2T = new javax.swing.JRadioButton();
    rbCPOSD2T = new javax.swing.JRadioButton();
    pnlTag2Dep = new javax.swing.JPanel();
    lblInputTagFile = new javax.swing.JLabel();
    txtInputTagFile = new javax.swing.JTextField();
    btnBrowseInputTagFile = new javax.swing.JButton();
    lblOutputDepPath = new javax.swing.JLabel();
    txtOutputDepPath = new javax.swing.JTextField();
    btnBrowseOutputDepPath = new javax.swing.JButton();
    btnConvertTag2Dep = new javax.swing.JButton();
    pnlPOSTypeT2D = new javax.swing.JPanel();
    rbFPOST2D = new javax.swing.JRadioButton();
    rbCPOST2D = new javax.swing.JRadioButton();
    lblInputCoNLLFileT2D = new javax.swing.JLabel();
    txtInputCoNLLFileT2D = new javax.swing.JTextField();
    btnBrowseInputCoNLLFileT2D = new javax.swing.JButton();
    pnlTrain = new javax.swing.JPanel();
    lblTrainFile = new javax.swing.JLabel();
    txtTrainFile = new javax.swing.JTextField();
    btnBrowseTrainFile = new javax.swing.JButton();
    lblTrainModelPath = new javax.swing.JLabel();
    txtTrainModelPath = new javax.swing.JTextField();
    btnBrowseTrainModelPath = new javax.swing.JButton();
    lblMaxIters = new javax.swing.JLabel();
    spMaxIters = new javax.swing.JSpinner();
    btnStartTraining = new javax.swing.JButton();
    jScrollbar2 = new javax.swing.JScrollPane();
    txtTrainLog = new javax.swing.JTextArea();
    pnlTag = new javax.swing.JPanel();
    lblInputFile = new javax.swing.JLabel();
    txtInputFile = new javax.swing.JTextField();
    btnBrowseInputFile = new javax.swing.JButton();
    lblOutputPath = new javax.swing.JLabel();
    txtOutputPath = new javax.swing.JTextField();
    btnBrowseOutputPath = new javax.swing.JButton();
    chkGoldFile = new javax.swing.JCheckBox();
    txtGoldFile = new javax.swing.JTextField();
    btnBrowseGoldFile = new javax.swing.JButton();
    tabTag = new javax.swing.JTabbedPane();
    pnlTagLog = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    txtTagLog = new javax.swing.JTextArea();
    pnlTagResults = new javax.swing.JPanel();
    lblTagEvaluation = new javax.swing.JLabel();
    jScrollPane2 = new javax.swing.JScrollPane();
    lstWordsList = new javax.swing.JList(new DefaultListModel());
    lblWordsList = new javax.swing.JLabel();
    jScrollPane3 = new javax.swing.JScrollPane();
    lstPredictedTags = new javax.swing.JList(new DefaultListModel());
    jScrollPane4 = new javax.swing.JScrollPane();
    lstGoldTags = new javax.swing.JList(new DefaultListModel());
    lblPredictedTags = new javax.swing.JLabel();
    lblGoldTags = new javax.swing.JLabel();
    btnStartTagging = new javax.swing.JButton();
    lblModelPath = new javax.swing.JLabel();
    txtModelPath = new javax.swing.JTextField();
    btnBrowseModelPath = new javax.swing.JButton();
    pnlAbout = new javax.swing.JPanel();
    lblMXPostTitle = new javax.swing.JLabel();
    lblMXPostSiteTitle = new javax.swing.JLabel();
    lblMXPostSiteValue = new javax.swing.JTextField();
    lblMXPostAuthorsTitle = new javax.swing.JLabel();
    lblMXPostAuthorsValue = new javax.swing.JTextField();
    lblMXPostCitationTitle = new javax.swing.JLabel();
    jScrollPane9 = new javax.swing.JScrollPane();
    txtMXPostCitationValue = new javax.swing.JTextArea();
    lblMXpostLicenseTitle = new javax.swing.JLabel();
    jScrollPane5 = new javax.swing.JScrollPane();
    txtMXPostLicenseValue = new javax.swing.JTextArea();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("POS Tagger");

    lblInputCoNLLFile.setText("Input CoNLL File:");

    txtInputCoNLLFile.setEditable(false);

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

    lblOutputTagPath.setText("Output Path:");

    txtOutputTagPath.setEditable(false);

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

    btnConertDep2Tag.setText("Start Convert");
    btnConertDep2Tag.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnConertDep2TagActionPerformed(evt);
        }
    });

    chkAddGoldTag.setSelected(true);
    chkAddGoldTag.setText("Add Gold Tag");

    pnlPOSTypeD2T.setBorder(javax.swing.BorderFactory.createTitledBorder("Type"));

    rbgPOSTypeD2T.add(rbFPOSD2T);
    rbFPOSD2T.setSelected(true);
    rbFPOSD2T.setText("Fine-grained POS");

    rbgPOSTypeD2T.add(rbCPOSD2T);
    rbCPOSD2T.setText("Coarse-grained POS");

    javax.swing.GroupLayout pnlPOSTypeD2TLayout = new javax.swing.GroupLayout(pnlPOSTypeD2T);
    pnlPOSTypeD2T.setLayout(pnlPOSTypeD2TLayout);
    pnlPOSTypeD2TLayout.setHorizontalGroup(pnlPOSTypeD2TLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlPOSTypeD2TLayout.createSequentialGroup().addContainerGap()
                    .addGroup(pnlPOSTypeD2TLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rbFPOSD2T).addComponent(rbCPOSD2T))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    pnlPOSTypeD2TLayout
            .setVerticalGroup(pnlPOSTypeD2TLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlPOSTypeD2TLayout.createSequentialGroup().addComponent(rbFPOSD2T)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(rbCPOSD2T)));

    javax.swing.GroupLayout pnlDep2TagLayout = new javax.swing.GroupLayout(pnlDep2Tag);
    pnlDep2Tag.setLayout(pnlDep2TagLayout);
    pnlDep2TagLayout.setHorizontalGroup(pnlDep2TagLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDep2TagLayout.createSequentialGroup().addContainerGap().addGroup(pnlDep2TagLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDep2TagLayout.createSequentialGroup()
                            .addGroup(pnlDep2TagLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblInputCoNLLFile).addComponent(lblOutputTagPath))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(pnlDep2TagLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtInputCoNLLFile).addComponent(txtOutputTagPath))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(pnlDep2TagLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(btnBrowseOutputTagPath,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                                    .addComponent(btnBrowseInputCoNLLFile,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlDep2TagLayout.createSequentialGroup()
                            .addGroup(pnlDep2TagLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(chkAddGoldTag).addComponent(pnlPOSTypeD2T,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 398,
                                    Short.MAX_VALUE)
                            .addComponent(btnConertDep2Tag)))
                    .addContainerGap()));
    pnlDep2TagLayout.setVerticalGroup(pnlDep2TagLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDep2TagLayout.createSequentialGroup().addContainerGap().addGroup(pnlDep2TagLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblInputCoNLLFile)
                    .addComponent(txtInputCoNLLFile, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnBrowseInputCoNLLFile))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlDep2TagLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblOutputTagPath)
                            .addComponent(txtOutputTagPath, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnBrowseOutputTagPath))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlDep2TagLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlDep2TagLayout.createSequentialGroup().addComponent(chkAddGoldTag)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(pnlPOSTypeD2T, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(btnConertDep2Tag))
                    .addContainerGap(146, Short.MAX_VALUE)));

    tabConverter.addTab("Dependency to Tagger", pnlDep2Tag);

    lblInputTagFile.setText("Input Tag File:");

    txtInputTagFile.setEditable(false);

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

    lblOutputDepPath.setText("Output Path:");

    txtOutputDepPath.setEditable(false);

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

    btnConvertTag2Dep.setText("Start Convert");
    btnConvertTag2Dep.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnConvertTag2DepActionPerformed(evt);
        }
    });

    pnlPOSTypeT2D.setBorder(javax.swing.BorderFactory.createTitledBorder("Type"));

    rbgPOSTypeT2D.add(rbFPOST2D);
    rbFPOST2D.setSelected(true);
    rbFPOST2D.setText("Fine-grained POS");

    rbgPOSTypeT2D.add(rbCPOST2D);
    rbCPOST2D.setText("Coarse-grained POS");

    javax.swing.GroupLayout pnlPOSTypeT2DLayout = new javax.swing.GroupLayout(pnlPOSTypeT2D);
    pnlPOSTypeT2D.setLayout(pnlPOSTypeT2DLayout);
    pnlPOSTypeT2DLayout.setHorizontalGroup(pnlPOSTypeT2DLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlPOSTypeT2DLayout.createSequentialGroup().addContainerGap()
                    .addGroup(pnlPOSTypeT2DLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rbFPOST2D).addComponent(rbCPOST2D))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    pnlPOSTypeT2DLayout
            .setVerticalGroup(pnlPOSTypeT2DLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlPOSTypeT2DLayout.createSequentialGroup().addComponent(rbFPOST2D)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(rbCPOST2D)));

    lblInputCoNLLFileT2D.setText("Input CoNLL File:");

    txtInputCoNLLFileT2D.setEditable(false);

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

    javax.swing.GroupLayout pnlTag2DepLayout = new javax.swing.GroupLayout(pnlTag2Dep);
    pnlTag2Dep.setLayout(pnlTag2DepLayout);
    pnlTag2DepLayout.setHorizontalGroup(pnlTag2DepLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTag2DepLayout.createSequentialGroup().addContainerGap()
                    .addGroup(pnlTag2DepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlTag2DepLayout.createSequentialGroup()
                                    .addComponent(pnlPOSTypeT2D, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 398,
                                            Short.MAX_VALUE)
                                    .addComponent(btnConvertTag2Dep))
                            .addGroup(pnlTag2DepLayout.createSequentialGroup()
                                    .addGroup(pnlTag2DepLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblInputTagFile).addComponent(lblOutputDepPath)
                                            .addComponent(lblInputCoNLLFileT2D))
                                    .addGap(14, 14, 14)
                                    .addGroup(pnlTag2DepLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txtInputTagFile).addComponent(txtInputCoNLLFileT2D)
                                            .addComponent(txtOutputDepPath))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(pnlTag2DepLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(btnBrowseInputCoNLLFileT2D,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                                            .addComponent(btnBrowseOutputDepPath,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                                            .addComponent(btnBrowseInputTagFile,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 31,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap()));
    pnlTag2DepLayout.setVerticalGroup(pnlTag2DepLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTag2DepLayout.createSequentialGroup().addContainerGap().addGroup(pnlTag2DepLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtInputTagFile, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnBrowseInputTagFile).addComponent(lblInputTagFile))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlTag2DepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblInputCoNLLFileT2D)
                            .addComponent(txtInputCoNLLFileT2D, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnBrowseInputCoNLLFileT2D))
                    .addGap(8, 8, 8)
                    .addGroup(pnlTag2DepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlTag2DepLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(lblOutputDepPath).addComponent(txtOutputDepPath,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(btnBrowseOutputDepPath))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlTag2DepLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlPOSTypeT2D, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnConvertTag2Dep))
                    .addContainerGap(140, Short.MAX_VALUE)));

    tabConverter.addTab("Tagger to Dependency", pnlTag2Dep);

    javax.swing.GroupLayout pnlConverterLayout = new javax.swing.GroupLayout(pnlConverter);
    pnlConverter.setLayout(pnlConverterLayout);
    pnlConverterLayout.setHorizontalGroup(pnlConverterLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pnlConverterLayout
                    .createSequentialGroup().addContainerGap().addComponent(tabConverter).addContainerGap()));
    pnlConverterLayout.setVerticalGroup(pnlConverterLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pnlConverterLayout
                    .createSequentialGroup().addContainerGap().addComponent(tabConverter).addContainerGap()));

    jTabbedPane1.addTab("Converter", pnlConverter);

    lblTrainFile.setText("Train File:");

    txtTrainFile.setEditable(false);

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

    lblTrainModelPath.setText("Model Path:");

    txtTrainModelPath.setEditable(false);

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

    lblMaxIters.setText("Maximum Iterations:");

    btnStartTraining.setText("Start Training");
    btnStartTraining.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnStartTrainingActionPerformed(evt);
        }
    });

    txtTrainLog.setColumns(20);
    txtTrainLog.setRows(5);
    jScrollbar2.setViewportView(txtTrainLog);

    javax.swing.GroupLayout pnlTrainLayout = new javax.swing.GroupLayout(pnlTrain);
    pnlTrain.setLayout(pnlTrainLayout);
    pnlTrainLayout.setHorizontalGroup(pnlTrainLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTrainLayout.createSequentialGroup().addContainerGap()
                    .addGroup(pnlTrainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollbar2)
                            .addGroup(pnlTrainLayout.createSequentialGroup()
                                    .addGroup(pnlTrainLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblTrainFile).addComponent(lblTrainModelPath))
                                    .addGap(18, 18, 18)
                                    .addGroup(pnlTrainLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txtTrainFile).addComponent(txtTrainModelPath))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(pnlTrainLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(btnBrowseTrainModelPath,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                                            .addComponent(btnBrowseTrainFile,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(pnlTrainLayout.createSequentialGroup().addComponent(lblMaxIters)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(spMaxIters, javax.swing.GroupLayout.PREFERRED_SIZE, 97,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 373,
                                            Short.MAX_VALUE)
                                    .addComponent(btnStartTraining)))
                    .addContainerGap()));
    pnlTrainLayout.setVerticalGroup(pnlTrainLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTrainLayout.createSequentialGroup().addContainerGap().addGroup(pnlTrainLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(lblTrainFile)
                    .addComponent(txtTrainFile, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnBrowseTrainFile))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(pnlTrainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblTrainModelPath)
                            .addComponent(txtTrainModelPath, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnBrowseTrainModelPath))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlTrainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblMaxIters)
                            .addComponent(spMaxIters, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnStartTraining))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollbar2, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)
                    .addContainerGap()));

    jTabbedPane1.addTab("Train", pnlTrain);

    lblInputFile.setText("Input File:");

    txtInputFile.setEditable(false);

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

    lblOutputPath.setText("Output Path:");

    txtOutputPath.setEditable(false);

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

    chkGoldFile.setSelected(true);
    chkGoldFile.setText("Gold File:");

    txtGoldFile.setEditable(false);

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

    txtTagLog.setColumns(20);
    txtTagLog.setEditable(false);
    txtTagLog.setRows(5);
    jScrollPane1.setViewportView(txtTagLog);

    javax.swing.GroupLayout pnlTagLogLayout = new javax.swing.GroupLayout(pnlTagLog);
    pnlTagLog.setLayout(pnlTagLogLayout);
    pnlTagLogLayout
            .setHorizontalGroup(pnlTagLogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 664, Short.MAX_VALUE));
    pnlTagLogLayout
            .setVerticalGroup(pnlTagLogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE));

    tabTag.addTab("Log", pnlTagLog);

    lblTagEvaluation.setText("Total: 0 - Correct: 0 - Accuracy: 0%");

    lstWordsList.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            lst_mouseClick(evt);
        }
    });
    lstWordsList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            lstWoldsList_valueChanged(evt);
        }
    });
    jScrollPane2.setViewportView(lstWordsList);

    lblWordsList.setText("Words List");

    lstPredictedTags.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            lst_mouseClick(evt);
        }
    });
    lstPredictedTags.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            lstPredictedTags_valueChanged(evt);
        }
    });
    jScrollPane3.setViewportView(lstPredictedTags);

    lstGoldTags.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            lst_mouseClick(evt);
        }
    });
    lstGoldTags.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            lstGoldTags_valueChanged(evt);
        }
    });
    jScrollPane4.setViewportView(lstGoldTags);

    lblPredictedTags.setText("Predicted Tags");

    lblGoldTags.setText("Gold Tags");

    javax.swing.GroupLayout pnlTagResultsLayout = new javax.swing.GroupLayout(pnlTagResults);
    pnlTagResults.setLayout(pnlTagResultsLayout);
    pnlTagResultsLayout.setHorizontalGroup(pnlTagResultsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTagResultsLayout.createSequentialGroup().addContainerGap().addGroup(pnlTagResultsLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlTagResultsLayout
                            .createSequentialGroup()
                            .addGroup(pnlTagResultsLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblWordsList).addComponent(jScrollPane2,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 244,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(pnlTagResultsLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblPredictedTags).addComponent(jScrollPane3,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
                            .addGap(7, 7, 7)
                            .addGroup(pnlTagResultsLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 184,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(lblGoldTags)))
                    .addComponent(lblTagEvaluation, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));
    pnlTagResultsLayout.setVerticalGroup(pnlTagResultsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlTagResultsLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                            pnlTagResultsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(lblWordsList).addComponent(lblPredictedTags)
                                    .addComponent(lblGoldTags))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(pnlTagResultsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 119,
                                    Short.MAX_VALUE)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 0,
                                    Short.MAX_VALUE)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 0,
                                    Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(lblTagEvaluation).addContainerGap()));

    tabTag.addTab("Results", pnlTagResults);

    btnStartTagging.setText("Start Tagging");
    btnStartTagging.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnStartTaggingActionPerformed(evt);
        }
    });

    lblModelPath.setText("Model Path:");

    txtModelPath.setEditable(false);

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

    javax.swing.GroupLayout pnlTagLayout = new javax.swing.GroupLayout(pnlTag);
    pnlTag.setLayout(pnlTagLayout);
    pnlTagLayout.setHorizontalGroup(pnlTagLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTagLayout.createSequentialGroup().addContainerGap()
                    .addGroup(pnlTagLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    pnlTagLayout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                            .addComponent(btnStartTagging))
                            .addComponent(tabTag)
                            .addGroup(pnlTagLayout.createSequentialGroup()
                                    .addGroup(pnlTagLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblInputFile).addComponent(lblOutputPath)
                                            .addComponent(chkGoldFile).addComponent(lblModelPath))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(pnlTagLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txtGoldFile).addComponent(txtOutputPath)
                                            .addComponent(txtInputFile).addComponent(txtModelPath))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(pnlTagLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(btnBrowseModelPath,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                                            .addComponent(btnBrowseGoldFile,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                                            .addComponent(btnBrowseOutputPath,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                                            .addComponent(btnBrowseInputFile,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap()));
    pnlTagLayout
            .setVerticalGroup(pnlTagLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlTagLayout.createSequentialGroup().addContainerGap()
                            .addGroup(pnlTagLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(pnlTagLayout.createSequentialGroup().addGroup(pnlTagLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(lblModelPath)
                                            .addComponent(txtModelPath, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(4, 4, 4))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlTagLayout
                                            .createSequentialGroup().addComponent(btnBrowseModelPath)
                                            .addPreferredGap(
                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                            .addGroup(
                                    pnlTagLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(lblInputFile)
                                            .addComponent(txtInputFile, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(btnBrowseInputFile))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(
                                    pnlTagLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(lblOutputPath)
                                            .addComponent(txtOutputPath, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(btnBrowseOutputPath))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(
                                    pnlTagLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(chkGoldFile)
                                            .addComponent(txtGoldFile, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(btnBrowseGoldFile))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(btnStartTagging)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(tabTag).addContainerGap()));

    jTabbedPane1.addTab("Tag", pnlTag);

    pnlAbout.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            pnlAbout_Shown(evt);
        }
    });

    lblMXPostTitle.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
    lblMXPostTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    lblMXPostTitle.setText("MXPost (Version 1.0)");

    lblMXPostSiteTitle.setText("Site:");

    lblMXPostSiteValue.setEditable(false);
    lblMXPostSiteValue.setForeground(new java.awt.Color(0, 102, 204));
    lblMXPostSiteValue.setText("http://www.inf.ed.ac.uk/resources/nlp/local_doc/MXPOST.html");
    lblMXPostSiteValue.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
    lblMXPostSiteValue.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));

    lblMXPostAuthorsTitle.setText("Authors:");

    lblMXPostAuthorsValue.setEditable(false);
    lblMXPostAuthorsValue.setText("Adwait Ratnaparkhi");
    lblMXPostAuthorsValue.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));

    lblMXPostCitationTitle.setText("Citation:");

    txtMXPostCitationValue.setColumns(20);
    txtMXPostCitationValue.setEditable(false);
    txtMXPostCitationValue.setLineWrap(true);
    txtMXPostCitationValue.setRows(5);
    txtMXPostCitationValue.setText(
            "A. Ratnaparkhi, \"A maximum entropy model for part-of-speech tagging\", in Proceedings of the Empirical Methods in Natural Language Processing Conference, University of Pennsylvania, pp. 133-142, 1996.");
    jScrollPane9.setViewportView(txtMXPostCitationValue);

    lblMXpostLicenseTitle.setText("License");

    txtMXPostLicenseValue.setColumns(20);
    txtMXPostLicenseValue.setEditable(false);
    txtMXPostLicenseValue.setRows(5);
    txtMXPostLicenseValue.setText(
            "                              SOFTWARE LICENSE\n\n                          MXPOST and MXTERMINATOR\n\n                            All rights reserved.\n\n                        (c) 1997 Adwait Ratnaparkhi\n\n                      Developed by Adwait Ratnaparkhi\n                         University of Pennsylvania\n                 Dept. of Computer and Information Science\n                           200 South 33rd Street\n                          Philadelphia, PA. 19104\n\n   LICENSE INFORMATION\n\n   Adwait Ratnaparkhi (\"Owner\") grants to the individual researcher who\n   downloads this software (\"Licensee\") a non-exclusive, non-transferable\n   run-time license to use the MXPOST and MXTERMINATOR software\n   (\"Software\"), subject to the restrictions listed below under \"Scope of\n   Grant.\"\n\n   SCOPE OF GRANT\n\n   The Licensee may:\n     * use the Software for educational or research purposes;\n     * permit others under the Licensee's supervision at the same site to\n       use the Software for educational or research purposes;\n     * copy the Software for archival purposes, provided that any such\n       copy contains all of the original proprietary notices.\n\n   The Licensee may not:\n     * use the Software for commercial purposes;\n     * allow any individual who is not under the direct supervision of\n       the Licensee to use the Software;\n     * redistribute the Software;\n     * copy the Software other than as specified above;\n     * rent, lease, grant a security interest in, or otherwise transfer\n       rights to the Software;\n     * remove any proprietary notices or labels accompanying the\n       Software;\n\n   DISCLAIMER\n\n   The Owner makes no representations or warranties about the suitability\n   of the Software and Linguistic Resources, either express or implied,\n   including but not limited to the implied warranties of\n   merchantability, fitness for a particular purpose, or\n   non-infringement. The Owner shall not be liable for any damages\n   suffered by Licensee as a result of using, modifying or distributing\n   the Software or its derivatives.\n\n   CONSENT\n\n   By downloading, using or copying the Software, Licensee agrees to\n   abide by the intellectual property laws, and all other applicable laws\n   of the U.S., and the terms of this License. Ownership of the Software\n   shall remain solely with the Owner.\n\n   TERMINATION\n\n   The Owner shall have the right to terminate this license at any time\n   by written notice. Licensee shall be liable for any infringement or\n   damages resulting from Licensee's failure to abide by the terms of\n   this License.");
    jScrollPane5.setViewportView(txtMXPostLicenseValue);

    javax.swing.GroupLayout pnlAboutLayout = new javax.swing.GroupLayout(pnlAbout);
    pnlAbout.setLayout(pnlAboutLayout);
    pnlAboutLayout.setHorizontalGroup(pnlAboutLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlAboutLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(pnlAboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(lblMXPostTitle, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlAboutLayout
                                    .createSequentialGroup()
                                    .addGroup(pnlAboutLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblMXpostLicenseTitle)
                                            .addComponent(lblMXPostCitationTitle))
                                    .addGap(11, 11, 11)
                                    .addGroup(pnlAboutLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jScrollPane9).addComponent(jScrollPane5)))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlAboutLayout
                                    .createSequentialGroup()
                                    .addGroup(pnlAboutLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblMXPostAuthorsTitle)
                                            .addComponent(lblMXPostSiteTitle))
                                    .addGap(10, 10, 10)
                                    .addGroup(pnlAboutLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblMXPostSiteValue,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 617, Short.MAX_VALUE)
                                            .addComponent(lblMXPostAuthorsValue))))
                    .addContainerGap()));
    pnlAboutLayout.setVerticalGroup(pnlAboutLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlAboutLayout.createSequentialGroup().addContainerGap().addComponent(lblMXPostTitle)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlAboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblMXPostSiteTitle).addComponent(lblMXPostSiteValue,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlAboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblMXPostAuthorsTitle).addComponent(lblMXPostAuthorsValue,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlAboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlAboutLayout.createSequentialGroup()
                                    .addComponent(lblMXPostCitationTitle).addGap(0, 91, Short.MAX_VALUE))
                            .addGroup(pnlAboutLayout.createSequentialGroup()
                                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9,
                                            Short.MAX_VALUE)))
                    .addGroup(pnlAboutLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(pnlAboutLayout.createSequentialGroup().addComponent(lblMXpostLicenseTitle)
                                    .addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 155,
                                    Short.MAX_VALUE))
                    .addContainerGap()));

    jTabbedPane1.addTab("About", pnlAbout);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jTabbedPane1));
    layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jTabbedPane1));

    pack();
}

From source file:com.ga.forms.DailyLogAddUI.java

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

    group = new javax.swing.ButtonGroup();
    jPanel1 = new javax.swing.JPanel();
    mainTitleLbl = new javax.swing.JLabel();
    jSeparator1 = new javax.swing.JSeparator();
    exitButton = new javax.swing.JButton();
    viewButton = new javax.swing.JButton();
    dailyLogPanel = new javax.swing.JPanel();
    dateLbl = new javax.swing.JLabel();
    dateDisplayLbl = new javax.swing.JLabel();
    dayLbl = new javax.swing.JLabel();
    dayDisplayLbl = new javax.swing.JLabel();
    checkInLbl = new javax.swing.JLabel();
    checkoutLbl = new javax.swing.JLabel();
    breakLbl = new javax.swing.JLabel();
    checkInTimeCombo = new javax.swing.JComboBox();
    checkOutTimeCombo = new javax.swing.JComboBox();
    checkInOutButton = new javax.swing.JToggleButton();
    breakOptionPanel = new javax.swing.JPanel();
    yesRdButton = new javax.swing.JRadioButton();
    noRdButton = new javax.swing.JRadioButton();
    customRdButton = new javax.swing.JRadioButton();
    customBreakTimeTextField = new javax.swing.JTextField();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Daily Log Manager");
    setBounds(new java.awt.Rectangle(0, 0, 395, 389));
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    setMinimumSize(new java.awt.Dimension(395, 389));

    jPanel1.setMaximumSize(new java.awt.Dimension(395, 389));
    jPanel1.setMinimumSize(new java.awt.Dimension(395, 389));
    jPanel1.setPreferredSize(new java.awt.Dimension(464, 474));

    mainTitleLbl.setFont(new java.awt.Font("Arial", 0, 36)); // NOI18N
    mainTitleLbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    mainTitleLbl.setText("Daily Log Manager");
    mainTitleLbl.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

    exitButton.setText("Exit");
    exitButton.setMaximumSize(new java.awt.Dimension(72, 29));
    exitButton.setMinimumSize(new java.awt.Dimension(72, 29));
    exitButton.setPreferredSize(new java.awt.Dimension(72, 29));
    exitButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            exitButtonActionPerformed(evt);
        }
    });

    viewButton.setText("View");
    viewButton.setMaximumSize(new java.awt.Dimension(72, 29));
    viewButton.setMinimumSize(new java.awt.Dimension(72, 29));
    viewButton.setPreferredSize(new java.awt.Dimension(72, 29));
    viewButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            viewButtonActionPerformed(evt);
        }
    });

    dailyLogPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Add Daily Log"));
    dailyLogPanel.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    dailyLogPanel.setName("Daily Log Entry"); // NOI18N
    dailyLogPanel.setPreferredSize(new java.awt.Dimension(240, 190));

    dateLbl.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    dateLbl.setText("Date");
    dateLbl.setPreferredSize(new java.awt.Dimension(56, 17));

    dateDisplayLbl.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    dateDisplayLbl.setEnabled(false);
    dateDisplayLbl.setMaximumSize(new java.awt.Dimension(144, 17));
    dateDisplayLbl.setMinimumSize(new java.awt.Dimension(144, 17));
    dateDisplayLbl.setPreferredSize(new java.awt.Dimension(144, 17));
    dateDisplayLbl.setRequestFocusEnabled(false);

    dayLbl.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    dayLbl.setText("Day");
    dayLbl.setPreferredSize(new java.awt.Dimension(56, 17));

    dayDisplayLbl.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    dayDisplayLbl.setEnabled(false);
    dayDisplayLbl.setMaximumSize(new java.awt.Dimension(144, 17));
    dayDisplayLbl.setMinimumSize(new java.awt.Dimension(144, 17));
    dayDisplayLbl.setPreferredSize(new java.awt.Dimension(144, 17));
    dayDisplayLbl.setRequestFocusEnabled(false);

    checkInLbl.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    checkInLbl.setText("In");
    checkInLbl.setPreferredSize(new java.awt.Dimension(56, 17));

    checkoutLbl.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    checkoutLbl.setText("Out");
    checkoutLbl.setPreferredSize(new java.awt.Dimension(56, 17));

    breakLbl.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    breakLbl.setText("Break");
    breakLbl.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    breakLbl.setPreferredSize(new java.awt.Dimension(56, 17));

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

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

    checkInOutButton.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    checkInOutButton.setText("Check In");
    checkInOutButton.setMaximumSize(new java.awt.Dimension(102, 29));
    checkInOutButton.setMinimumSize(new java.awt.Dimension(102, 29));
    checkInOutButton.setPreferredSize(new java.awt.Dimension(102, 29));
    checkInOutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            checkInOutButtonActionPerformed(evt);
        }
    });

    breakOptionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Options"));
    breakOptionPanel.setPreferredSize(new java.awt.Dimension(255, 98));

    yesRdButton.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    yesRdButton.setText("Yes");
    yesRdButton.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            yesRdButtonMouseClicked(evt);
        }
    });

    noRdButton.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    noRdButton.setSelected(true);
    noRdButton.setText("No");
    noRdButton.setPreferredSize(new java.awt.Dimension(51, 24));
    noRdButton.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            noRdButtonMouseClicked(evt);
        }
    });

    customRdButton.setFont(new java.awt.Font("Arial", 0, 15)); // NOI18N
    customRdButton.setText("Custom");
    customRdButton.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            customRdButtonItemStateChanged(evt);
        }
    });
    customRdButton.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            customRdButtonStateChanged(evt);
        }
    });
    customRdButton.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            customRdButtonMouseClicked(evt);
        }
    });

    customBreakTimeTextField.setText("00:30");
    customBreakTimeTextField.setEnabled(false);

    javax.swing.GroupLayout breakOptionPanelLayout = new javax.swing.GroupLayout(breakOptionPanel);
    breakOptionPanel.setLayout(breakOptionPanelLayout);
    breakOptionPanelLayout.setHorizontalGroup(breakOptionPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(breakOptionPanelLayout.createSequentialGroup().addGap(5, 5, 5)
                    .addGroup(breakOptionPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(customBreakTimeTextField, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(breakOptionPanelLayout.createSequentialGroup().addComponent(yesRdButton)
                                    .addGap(5, 5, 5)
                                    .addComponent(noRdButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(5, 5, 5).addComponent(customRdButton)
                                    .addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    breakOptionPanelLayout.setVerticalGroup(breakOptionPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(breakOptionPanelLayout.createSequentialGroup().addGap(5, 5, 5)
                    .addGroup(breakOptionPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(yesRdButton)
                            .addComponent(noRdButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(customRdButton))
                    .addGap(5, 5, 5).addComponent(customBreakTimeTextField,
                            javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    yesRdButton.getAccessibleContext().setAccessibleName("breakRdButton");
    noRdButton.getAccessibleContext().setAccessibleName("breakRdButton");
    customRdButton.getAccessibleContext().setAccessibleName("breakRdButton");
    customBreakTimeTextField.getAccessibleContext().setAccessibleName("customBreakTimeTextField");

    javax.swing.GroupLayout dailyLogPanelLayout = new javax.swing.GroupLayout(dailyLogPanel);
    dailyLogPanel.setLayout(dailyLogPanelLayout);
    dailyLogPanelLayout.setHorizontalGroup(dailyLogPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dailyLogPanelLayout.createSequentialGroup().addContainerGap().addGroup(dailyLogPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            dailyLogPanelLayout.createSequentialGroup().addGroup(dailyLogPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, dailyLogPanelLayout
                                            .createSequentialGroup()
                                            .addComponent(dayLbl, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(
                                                    javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(dayDisplayLbl, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    304, Short.MAX_VALUE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, dailyLogPanelLayout
                                            .createSequentialGroup()
                                            .addComponent(dateLbl, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(
                                                    javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(
                                                    dateDisplayLbl, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                                    .addGap(44, 44, 44))
                    .addGroup(dailyLogPanelLayout.createSequentialGroup().addGroup(dailyLogPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(dailyLogPanelLayout.createSequentialGroup()
                                    .addComponent(checkInLbl, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(checkInTimeCombo, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(dailyLogPanelLayout.createSequentialGroup().addGroup(dailyLogPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(checkoutLbl, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(breakLbl, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(dailyLogPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(checkOutTimeCombo,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(breakOptionPanel,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addContainerGap(152, Short.MAX_VALUE))))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dailyLogPanelLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(checkInOutButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(21, 21, 21)));
    dailyLogPanelLayout.setVerticalGroup(dailyLogPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dailyLogPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(dailyLogPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(dateLbl, javax.swing.GroupLayout.DEFAULT_SIZE, 18, Short.MAX_VALUE)
                            .addComponent(dateDisplayLbl, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(dailyLogPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(dayLbl, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(dayDisplayLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 18,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(dailyLogPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(checkInTimeCombo).addComponent(checkInLbl,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(dailyLogPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(checkOutTimeCombo).addComponent(checkoutLbl,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(dailyLogPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(dailyLogPanelLayout.createSequentialGroup()
                                    .addComponent(breakLbl, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGap(47, 47, 47))
                            .addGroup(dailyLogPanelLayout.createSequentialGroup()
                                    .addComponent(breakOptionPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 84,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, 40,
                                            Short.MAX_VALUE)
                                    .addComponent(checkInOutButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap()))));

    dayLbl.getAccessibleContext().setAccessibleName("dayLbl");
    dayDisplayLbl.getAccessibleContext().setAccessibleName("dayDisplayLbl");
    checkInTimeCombo.getAccessibleContext().setAccessibleName("checkInTimeCombo");
    checkOutTimeCombo.getAccessibleContext().setAccessibleName("checkOutTimeCombo");
    checkInOutButton.getAccessibleContext().setAccessibleName("checkInOutButton");

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(dailyLogPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 452,
                                    Short.MAX_VALUE)
                            .addGroup(jPanel1Layout.createSequentialGroup().addGap(0, 287, Short.MAX_VALUE)
                                    .addComponent(viewButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(exitButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(mainTitleLbl, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addContainerGap())
            .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap()
                    .addComponent(mainTitleLbl, javax.swing.GroupLayout.PREFERRED_SIZE, 70,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(dailyLogPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 327, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 6,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(exitButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(viewButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap()));

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

    pack();
}

From source file:de.tor.tribes.ui.windows.ClockFrame.java

/**
 * @param args the command line arguments
 *///from ww w.  j  ava 2 s  .  com
public static void main(String args[]) {

    java.awt.EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ClockFrame cf = new ClockFrame();
            cf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            cf.setVisible(true);
        }
    });
}

From source file:lab4.YouQuiz.java

private void initComponents() {

    menuBar = new JMenuBar();
    menuBarFile = new JMenu();
    menuBarExit = new JMenuItem();
    menuBarMode = new JMenu();
    menuBarEdit = new JRadioButtonMenuItem();
    menuBarQuiz = new JRadioButtonMenuItem();
    menuBarHelp = new JMenu();
    menuBarAbout = new JMenuItem();

    setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    setTitle("YouQuiz | Your Quiz Factory");
    setIconImage((new ImageIcon(getClass().getClassLoader().getResource("resources/icon.png"))).getImage());
    setMinimumSize(new Dimension(800, 500));
    setResizable(false);/* w w w  . jav  a  2  s  .c  o m*/

    menuBarFile.setText("File");

    menuBarExit.setAccelerator(
            KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
    menuBarExit.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            System.exit(0);
        }
    });
    menuBarExit.setText("Exit");
    menuBarFile.add(menuBarExit);

    menuBar.add(menuBarFile);

    menuBarMode.setText("Mode");

    menuBarEdit.setAccelerator(
            KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
    menuBarEdit.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            //Execute when button is pressed
            System.out.println("You clicked the button");
        }
    });
    menuBarEdit.setText("Edit Mode");

    menuBarQuiz.setAccelerator(
            KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q, java.awt.event.InputEvent.CTRL_MASK));
    menuBarQuiz.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            //Execute when button is pressed
            System.out.println("You clicked the button");
        }
    });
    menuBarQuiz.setSelected(true);
    menuBarQuiz.setText("Quiz Mode");

    ButtonGroup menuBarGroup = new ButtonGroup();
    menuBarGroup.add(menuBarEdit);
    menuBarGroup.add(menuBarQuiz);

    menuBarMode.add(menuBarEdit);
    menuBarMode.add(menuBarQuiz);

    menuBar.add(menuBarMode);

    menuBarHelp.setText("Help");

    menuBarAbout.setAccelerator(
            KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.CTRL_MASK));
    menuBarAbout.setText("About");
    menuBarAbout.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            JOptionPane.showMessageDialog(null, "By Anwar Mohamed ~ 2491", "YouQuiz",
                    JOptionPane.INFORMATION_MESSAGE,
                    new ImageIcon(getClass().getClassLoader().getResource("resources/icon-48.png")));
        }
    });
    menuBarHelp.add(menuBarAbout);

    menuBar.add(menuBarHelp);
    setJMenuBar(menuBar);

    pack();
    setLocationRelativeTo(null);
}