Example usage for javax.swing GroupLayout linkSize

List of usage examples for javax.swing GroupLayout linkSize

Introduction

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

Prototype

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

Source Link

Document

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

Usage

From source file:com.igormaznitsa.zxpspritecorrector.files.FileNameDialog.java

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

    buttonCancel = new javax.swing.JButton();
    buttonOk = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    textFileName0 = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    textZxFileName0 = new javax.swing.JFormattedTextField();
    textZxFileType0 = new javax.swing.JFormattedTextField();
    jPanel2 = new javax.swing.JPanel();
    jLabel4 = new javax.swing.JLabel();
    textFileName1 = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    textZxFileName1 = new javax.swing.JFormattedTextField();
    textZxFileType1 = new javax.swing.JFormattedTextField();
    jPanel3 = new javax.swing.JPanel();
    jLabel10 = new javax.swing.JLabel();
    textFileName3 = new javax.swing.JTextField();
    jLabel11 = new javax.swing.JLabel();
    jLabel12 = new javax.swing.JLabel();
    textZxFileName3 = new javax.swing.JFormattedTextField();
    textZxFileType3 = new javax.swing.JFormattedTextField();
    jPanel4 = new javax.swing.JPanel();
    jLabel7 = new javax.swing.JLabel();
    textFileName2 = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    textZxFileName2 = new javax.swing.JFormattedTextField();
    textZxFileType2 = new javax.swing.JFormattedTextField();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    buttonCancel.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/igormaznitsa/zxpspritecorrector/icons/cross.png"))); // NOI18N
    buttonCancel.setText("Cancel");
    buttonCancel.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonCancelActionPerformed(evt);
        }
    });

    buttonOk.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/igormaznitsa/zxpspritecorrector/icons/tick.png"))); // NOI18N
    buttonOk.setText("Ok");
    buttonOk.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonOkActionPerformed(evt);
        }
    });

    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Block CPU0"));

    jLabel1.setText("File name:");

    jLabel2.setText("ZX File name:");

    jLabel3.setText("ZX File type:");

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addGap(6, 6, 6).addComponent(jLabel3)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(textZxFileType0, javax.swing.GroupLayout.PREFERRED_SIZE, 130,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel2).addComponent(jLabel1))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(
                                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(textFileName0).addComponent(textZxFileName0))))
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textFileName0, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2).addComponent(textZxFileName0,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(textZxFileType0,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(20, Short.MAX_VALUE)));

    jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { jLabel1, jLabel2,
            jLabel3, textFileName0, textZxFileName0, textZxFileType0 });

    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Block CPU1"));

    jLabel4.setText("File name:");

    jLabel5.setText("ZX File name:");

    jLabel6.setText("ZX File type:");

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup().addGap(6, 6, 6).addComponent(jLabel6)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(textZxFileType1, javax.swing.GroupLayout.PREFERRED_SIZE, 133,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel5).addComponent(jLabel4))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(
                                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(textFileName1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    511, Short.MAX_VALUE)
                                            .addComponent(textZxFileName1))))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textFileName1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5).addComponent(textZxFileName1,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6).addComponent(textZxFileType1,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(20, Short.MAX_VALUE)));

    jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { jLabel4, jLabel5,
            jLabel6, textFileName1, textZxFileName1, textZxFileType1 });

    jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Block CPU3"));

    jLabel10.setText("File name:");

    jLabel11.setText("ZX File name:");

    jLabel12.setText("ZX File type:");

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addGroup(jPanel3Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup().addGap(6, 6, 6).addComponent(jLabel12)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(textZxFileType3, javax.swing.GroupLayout.PREFERRED_SIZE, 131,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                            .addGroup(jPanel3Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel11).addComponent(jLabel10))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(
                                    jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(textFileName3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    511, Short.MAX_VALUE)
                                            .addComponent(textZxFileName3))))
                    .addContainerGap()));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textFileName3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel11).addComponent(textZxFileName3,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel12).addComponent(textZxFileType3,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(20, Short.MAX_VALUE)));

    jPanel3Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { jLabel10, jLabel11,
            jLabel12, textFileName3, textZxFileName3, textZxFileType3 });

    jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Block CPU2"));

    jLabel7.setText("File name:");

    jLabel8.setText("ZX File name:");

    jLabel9.setText("ZX File type:");

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(jPanel4Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup().addContainerGap().addGroup(jPanel4Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup().addGap(6, 6, 6).addComponent(jLabel9)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(textZxFileType2, javax.swing.GroupLayout.PREFERRED_SIZE, 134,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                            .addGroup(jPanel4Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel8).addComponent(jLabel7))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(
                                    jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(textFileName2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    511, Short.MAX_VALUE)
                                            .addComponent(textZxFileName2))))
                    .addContainerGap()));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(textFileName2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8).addComponent(textZxFileName2,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9).addComponent(textZxFileType2,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(20, Short.MAX_VALUE)));

    jPanel4Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { jLabel7, jLabel8,
            jLabel9, textFileName2, textZxFileName2, textZxFileType2 });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addComponent(buttonOk)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(buttonCancel)))
                    .addContainerGap()));

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

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(buttonOk).addComponent(buttonCancel))
                    .addContainerGap()));

    layout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { jPanel1, jPanel2, jPanel3, jPanel4 });

    pack();
}

From source file:UserInterface.CustomerRole.CustomerTaxJPanel.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 ww. j  a v  a 2s  .  com
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    taxTextField = new javax.swing.JTextField();
    dueDateTextField = new javax.swing.JTextField();
    totalTaxBtn = new javax.swing.JButton();
    dueDateBtn = new javax.swing.JButton();
    backBtn = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    todaysGraphJBtn = new javax.swing.JButton();

    taxTextField.setEditable(false);

    dueDateTextField.setEditable(false);

    totalTaxBtn.setText("Total Tax");
    totalTaxBtn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            totalTaxBtnActionPerformed(evt);
        }
    });

    dueDateBtn.setText("Due Date");
    dueDateBtn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            dueDateBtnActionPerformed(evt);
        }
    });

    backBtn.setText("< Back");
    backBtn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            backBtnActionPerformed(evt);
        }
    });

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

    }, new String[] { "Date", "CO2 current", "CO2 Normal", "NOX current", "NOx normal", "solar CO2 current",
            "solar CO2 normal", "solar NOx current", "solar NOx normal" }) {
        boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false, false, false };

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

    jLabel1.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
    jLabel1.setText("Comparison Chart");

    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
    jLabel2.setText("Tax Details");

    todaysGraphJBtn.setText("VIEW TODAY'S GRAPHS");
    todaysGraphJBtn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            todaysGraphJBtnActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(31, 31, 31)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 672,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2).addComponent(jLabel1)
                            .addGroup(layout
                                    .createSequentialGroup()
                                    .addComponent(backBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 77,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(todaysGraphJBtn))
                            .addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(layout.createSequentialGroup().addComponent(dueDateBtn)
                                            .addGap(18, 18, 18).addComponent(dueDateTextField))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                            layout.createSequentialGroup().addComponent(totalTaxBtn)
                                                    .addGap(18, 18, 18).addComponent(taxTextField,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 106,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap(37, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(27, 27, 27).addComponent(jLabel2).addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(taxTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(totalTaxBtn))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(dueDateTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dueDateBtn))
                    .addGap(26, 26, 26).addComponent(jLabel1).addGap(18, 18, 18)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 193,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(backBtn).addComponent(todaysGraphJBtn))
                    .addContainerGap(28, Short.MAX_VALUE)));

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

}

From source file:it.unibas.spicygui.vista.configuration.SettingEngineConfigurationDialog.java

private void initComponents() {

    buttonGroup = new javax.swing.ButtonGroup();
    okButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    checkRewriteCoverages = new javax.swing.JCheckBox();
    checkRewriteEDGs = new javax.swing.JCheckBox();
    checkRewriteSelfJoins = new javax.swing.JCheckBox();
    checkRewriteSubsumptions = new javax.swing.JCheckBox();
    checkUseCreateTableSTExchange = new javax.swing.JCheckBox();
    labelUseSortStrategy = new javax.swing.JLabel();
    comboBoxUseSortStrategy = new javax.swing.JComboBox();
    checkUseSkolemStrings = new javax.swing.JCheckBox();
    checkUseHashTextForSkolems = new javax.swing.JCheckBox();
    checkUseLocalSkolems = new javax.swing.JCheckBox();
    checkRewriteAllHomomorphisms = new javax.swing.JCheckBox();
    labelUseSkolemTableStrategy = new javax.swing.JLabel();
    comboBoxUseSkolemTableStrategy = new javax.swing.JComboBox();

    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            closeDialog(evt);/*from   w w w  .j a  va  2s .  co  m*/
        }
    });

    okButton.setText(org.openide.util.NbBundle.getMessage(Costanti.class, "Ok_button")); // NOI18N
    okButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            okButtonActionPerformed(evt);
        }
    });

    cancelButton.setText(org.openide.util.NbBundle.getMessage(Costanti.class, "Cancel_button")); // NOI18N
    cancelButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });

    checkRewriteCoverages
            .setText(org.openide.util.NbBundle.getMessage(Costanti.class, "check_RewriteCoverages_text")); // NOI18N

    checkRewriteEDGs.setText(org.openide.util.NbBundle.getMessage(Costanti.class, "check_RewriteEDGs_text")); // NOI18N

    checkRewriteSelfJoins
            .setText(org.openide.util.NbBundle.getMessage(Costanti.class, "check_RewriteSelfJoins_text")); // NOI18N

    checkRewriteSubsumptions
            .setText(org.openide.util.NbBundle.getMessage(Costanti.class, "check_RewriteSubsumptions_text")); // NOI18N

    checkUseCreateTableSTExchange.setText(
            org.openide.util.NbBundle.getMessage(Costanti.class, "check_UseCreateTableSTExchange_text")); // NOI18N
    checkUseCreateTableSTExchange.setEnabled(false);

    labelUseSortStrategy
            .setText(org.openide.util.NbBundle.getMessage(Costanti.class, "label_UseSortStrategy_text")); // NOI18N

    comboBoxUseSortStrategy.setModel(
            new DefaultComboBoxModel(new String[] { NbBundle.getMessage(Costanti.class, Costanti.COMBO_NO_SORT),
                    NbBundle.getMessage(Costanti.class, Costanti.COMBO_SORT),
                    NbBundle.getMessage(Costanti.class, Costanti.COMBO_AUTO_SORT) }));

    checkUseSkolemStrings
            .setText(org.openide.util.NbBundle.getMessage(Costanti.class, "check_UseSkolemStrings_text")); // NOI18N

    checkUseHashTextForSkolems
            .setText(org.openide.util.NbBundle.getMessage(Costanti.class, "check_UseHashTextForSkolem_text")); // NOI18N

    checkUseLocalSkolems.setLabel(org.openide.util.NbBundle.getMessage(SettingEngineConfigurationDialog.class,
            "SettingEngineConfigurationDialog.checkUseLocalSkolems.label")); // NOI18N

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

    labelUseSkolemTableStrategy.setText(org.openide.util.NbBundle.getMessage(Costanti.class,
            "SettingEngineConfigurationDialog.labelUseSkolemTableStrategy.text")); // NOI18N

    comboBoxUseSkolemTableStrategy.setModel(new DefaultComboBoxModel(
            new String[] { NbBundle.getMessage(Costanti.class, Costanti.COMBO_NO_SKOLEM_TABLE),
                    NbBundle.getMessage(Costanti.class, Costanti.COMBO_SKOLEM_TABLE),
                    NbBundle.getMessage(Costanti.class, Costanti.COMBO_AUTO_SKOLEM_TABLE) }));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(checkRewriteSubsumptions).addComponent(checkRewriteSelfJoins)
                                    .addComponent(checkRewriteCoverages)
                                    .addComponent(checkRewriteAllHomomorphisms))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55,
                                    Short.MAX_VALUE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(checkUseCreateTableSTExchange,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 239,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(checkUseSkolemStrings)
                                    .addComponent(checkUseHashTextForSkolems).addComponent(checkRewriteEDGs))
                            .addGap(34, 34, 34))
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(checkUseLocalSkolems)
                            .addGroup(layout.createSequentialGroup().addComponent(labelUseSortStrategy)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(comboBoxUseSortStrategy,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 122,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(labelUseSkolemTableStrategy)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 67,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(cancelButton))
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(comboBoxUseSkolemTableStrategy,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 122,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE)))
                            .addContainerGap()))));

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

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(checkRewriteSubsumptions).addComponent(checkUseCreateTableSTExchange))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(checkRewriteCoverages).addComponent(checkRewriteEDGs))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(checkRewriteSelfJoins).addComponent(checkUseSkolemStrings))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(checkRewriteAllHomomorphisms)
                            .addComponent(checkUseHashTextForSkolems))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(labelUseSkolemTableStrategy)
                                    .addComponent(comboBoxUseSkolemTableStrategy,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(comboBoxUseSortStrategy,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(labelUseSortStrategy)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(checkUseLocalSkolems).addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(okButton).addComponent(cancelButton))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
}

From source file:com.firmansyah.imam.sewa.kendaraan.FormUser.java

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

    jScrollPane2 = new javax.swing.JScrollPane();
    tblPelanggan = new javax.swing.JTable();
    labelIdUser = new javax.swing.JLabel();
    labelNama = new javax.swing.JLabel();
    labelUsername = new javax.swing.JLabel();
    inputIdUser = new javax.swing.JTextField();
    inputNama = new javax.swing.JTextField();
    btnTambah = new javax.swing.JButton();
    btnUbah = new javax.swing.JButton();
    btnHapus = new javax.swing.JButton();
    jSeparator1 = new javax.swing.JSeparator();
    btnFormSewa = new javax.swing.JButton();
    btnKeluar = new javax.swing.JButton();
    inputUsername = new javax.swing.JTextField();
    labelPassword = new javax.swing.JLabel();
    inputPassword = new javax.swing.JPasswordField();
    btnAktif = new javax.swing.JButton();
    btnRefresh = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Form Pelaggan");
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowActivated(java.awt.event.WindowEvent evt) {
            formWindowActivated(evt);
        }
    });

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

    }, new String[] { "No", "Nama", "Username", "Status", "ID User" }));
    tblPelanggan.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            tblPelangganMouseClicked(evt);
        }
    });
    jScrollPane2.setViewportView(tblPelanggan);

    labelIdUser.setText("ID User");

    labelNama.setText("Nama");

    labelUsername.setText("Username");

    btnTambah.setText("Tambah");
    btnTambah.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnTambahActionPerformed(evt);
        }
    });

    btnUbah.setText("Ubah");
    btnUbah.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnUbahActionPerformed(evt);
        }
    });

    btnHapus.setText("Hapus");
    btnHapus.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnHapusActionPerformed(evt);
        }
    });

    btnFormSewa.setText("Form Sewa");
    btnFormSewa.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnFormSewaActionPerformed(evt);
        }
    });

    btnKeluar.setText("Keluar");
    btnKeluar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnKeluarActionPerformed(evt);
        }
    });

    labelPassword.setText("Password");

    btnAktif.setText("Non Akifkan");
    btnAktif.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnAktifActionPerformed(evt);
        }
    });

    btnRefresh.setText("Refresh");
    btnRefresh.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnRefreshActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 650, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(labelIdUser).addComponent(labelNama)
                                    .addComponent(labelUsername).addComponent(labelPassword))
                            .addGap(40, 40, 40)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    false)
                                            .addComponent(inputPassword,
                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(inputUsername,
                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(inputIdUser,
                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(inputNama, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE))
                                    .addGroup(layout.createSequentialGroup().addComponent(btnTambah)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btnUbah)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btnHapus)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btnRefresh)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btnAktif)))
                            .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(btnFormSewa, javax.swing.GroupLayout.PREFERRED_SIZE, 111,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(btnKeluar)))
                    .addContainerGap()));

    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { btnHapus, btnRefresh, btnTambah, btnUbah });

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

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addGap(23, 23, 23)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelIdUser).addComponent(inputIdUser,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelNama).addComponent(inputNama,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelUsername).addComponent(inputUsername,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelPassword).addComponent(inputPassword,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnTambah).addComponent(btnUbah).addComponent(btnHapus)
                            .addComponent(btnAktif).addComponent(btnRefresh))
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 163,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnFormSewa).addComponent(btnKeluar))
                    .addContainerGap(20, Short.MAX_VALUE)));

    setSize(new java.awt.Dimension(686, 467));
    setLocationRelativeTo(null);
}

From source file:biometricgui.MainWindow.java

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

    jFileChooser1 = new javax.swing.JFileChooser();
    buttonGroup2 = new javax.swing.ButtonGroup();
    jSlider1 = new javax.swing.JSlider();
    jPanel7 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    jLabel1 = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    jPanel8 = new javax.swing.JPanel();
    jRadioButton1 = new javax.swing.JRadioButton();
    jRadioButton2 = new javax.swing.JRadioButton();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jButton5 = new javax.swing.JButton();
    jButton6 = new javax.swing.JButton();
    jPanel9 = new javax.swing.JPanel();
    jLabel4 = new javax.swing.JLabel();
    jPanel10 = new javax.swing.JPanel();
    jPanel11 = new javax.swing.JPanel();
    jPanel12 = new javax.swing.JPanel();
    jPanel13 = new javax.swing.JPanel();

    jFileChooser1.setDialogTitle("This is my open dialog");

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Opensource Biometric Research Platform");
    setBackground(new java.awt.Color(255, 204, 204));
    setBounds(new java.awt.Rectangle(500, 500, 500, 500));
    setMaximumSize(new java.awt.Dimension(700, 700));
    setPreferredSize(new java.awt.Dimension(735, 679));

    jPanel7.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

    jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);

    jTextArea1.setColumns(20);
    jTextArea1.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
    jTextArea1.setRows(5);
    jTextArea1.setText("ECG, EMG, EEG,\nGSR and Eye \nTracking Successful!");
    jScrollPane1.setViewportView(jTextArea1);

    jLabel1.setBackground(new java.awt.Color(0, 0, 0));
    jLabel1.setForeground(new java.awt.Color(255, 51, 51));
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel1.setText("Messages");

    javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
    jPanel7.setLayout(jPanel7Layout);
    jPanel7Layout
            .setHorizontalGroup(
                    jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel7Layout.createSequentialGroup().addContainerGap()
                                    .addGroup(jPanel7Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    203, Short.MAX_VALUE)
                                            .addComponent(jLabel1))
                                    .addGap(23, 23, 23)));
    jPanel7Layout.setVerticalGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup().addComponent(jLabel1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1).addGap(66, 66, 66)));

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

    jLabel2.setText("Eye Tracking");

    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(66, 66, 66).addComponent(jLabel2,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(65, 65, 65)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(73, 73, 73).addComponent(jLabel2,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(77, 77, 77)));

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

    buttonGroup2.add(jRadioButton1);
    jRadioButton1.setText("Live");
    jRadioButton1.setActionCommand("Load Live");
    jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButton1ActionPerformed(evt);
        }
    });

    buttonGroup2.add(jRadioButton2);
    jRadioButton2.setText("Browse Computer");
    jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButton2ActionPerformed(evt);
        }
    });

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

    jButton2.setText("User Video");
    jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jButton2MouseClicked(evt);
        }
    });
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });

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

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

    jButton5.setText("EMG");
    jButton5.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton5ActionPerformed(evt);
        }
    });

    jButton6.setText("GSR");
    jButton6.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton6ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
    jPanel8.setLayout(jPanel8Layout);
    jPanel8Layout.setHorizontalGroup(jPanel8Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup().addContainerGap().addGroup(jPanel8Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                            .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(18, 18, 18).addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.CENTER, jPanel8Layout.createSequentialGroup()
                            .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(18, 18, 18).addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.CENTER, jPanel8Layout.createSequentialGroup()
                            .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(18, 18, 18).addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(
                            jPanel8Layout.createSequentialGroup()
                                    .addGroup(jPanel8Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jRadioButton2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jRadioButton1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addGap(97, 97, 97)))));
    jPanel8Layout.setVerticalGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup().addContainerGap()
                    .addComponent(jRadioButton2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jRadioButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton3, 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(10, 10, 10)
                    .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));

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

    jLabel4.setText("Camera");

    javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
    jPanel9.setLayout(jPanel9Layout);
    jPanel9Layout.setHorizontalGroup(jPanel9Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup().addGap(83, 83, 83).addComponent(jLabel4,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(76, 76, 76)));
    jPanel9Layout.setVerticalGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup().addGap(73, 73, 73).addComponent(jLabel4,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(77, 77, 77)));

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

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

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

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

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

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

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

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

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addGap(35, 35, 35).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jSlider1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup().addGroup(
                                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGap(42, 42, 42)));

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

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap(17, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)
                    .addGroup(
                            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(
                                                    jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addGap(25, 25, 25)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jPanel11,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE)
                                                    .addComponent(jPanel13,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE)))
                                    .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(27, 27, 27).addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(9, 9, 9)));

    getAccessibleContext().setAccessibleDescription("");

    pack();
}

From source file:ru.spbspu.viewer.DataView.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 DataView Editor./*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() {
    java.awt.GridBagConstraints gridBagConstraints;

    jToolBar1 = new javax.swing.JToolBar();
    fileChooser = new javax.swing.JFileChooser();
    fftOrEnSpectrum = new javax.swing.ButtonGroup();
    scaling = new javax.swing.ButtonGroup();
    transformation = new javax.swing.ButtonGroup();
    v = new javax.swing.ButtonGroup();
    jFileChooser1 = new javax.swing.JFileChooser();
    refresh = new javax.swing.JButton();
    load = new javax.swing.JButton();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    controlPanel = new javax.swing.JPanel();
    frame = new javax.swing.JLabel();
    frameWidthInSecondsTextField = new javax.swing.JTextField();
    spinnerFrameWidth = new javax.swing.JSpinner();
    jLabel3 = new javax.swing.JLabel();
    spinnerDiscretization = new javax.swing.JSpinner();
    chosenFileTextField = new javax.swing.JTextField();
    autoscale = new javax.swing.JRadioButton();
    meanValue = new javax.swing.JRadioButton();
    maxValue = new javax.swing.JRadioButton();
    spectrogramPanel = new javax.swing.JPanel();
    window = new javax.swing.JLabel();
    spinnerWindowWidth = new javax.swing.JSpinner();
    spinnerLimitFreq = new javax.swing.JSpinner();
    jLabel5 = new javax.swing.JLabel();
    sliderSpectrogram = new javax.swing.JSlider();
    jLabel1 = new javax.swing.JLabel();
    fourier = new javax.swing.JRadioButton();
    wavelet = new javax.swing.JRadioButton();
    windowFunction = new javax.swing.JComboBox<>();
    llabelWindowFunction = new javax.swing.JLabel();
    testPanel = new javax.swing.JPanel();
    FourierTest = new javax.swing.JButton();
    WaveletTest = new javax.swing.JButton();
    jButton1 = new javax.swing.JButton();
    LPF = new javax.swing.JCheckBox();
    cropBeginningLabel = new javax.swing.JLabel();
    cropBeginningTextField = new javax.swing.JTextField();
    testDataPanel = new javax.swing.JPanel();
    ampl1Input = new javax.swing.JTextField();
    ampl2Input = new javax.swing.JTextField();
    ampl3Input = new javax.swing.JTextField();
    ampl1Label = new javax.swing.JLabel();
    ampl2Label = new javax.swing.JLabel();
    ampl3Label = new javax.swing.JLabel();
    freq1Label = new javax.swing.JLabel();
    freq2Label = new javax.swing.JLabel();
    freq3Label = new javax.swing.JLabel();
    freq1Input = new javax.swing.JTextField();
    freq2Input = new javax.swing.JTextField();
    freq3Input = new javax.swing.JTextField();
    discrLabel = new javax.swing.JLabel();
    discrInput = new javax.swing.JTextField();
    lengthInput = new javax.swing.JTextField();
    lengthLabel = new javax.swing.JLabel();
    middleWindow = new javax.swing.JPanel();
    showEnergySpectrum = new javax.swing.JRadioButton();
    vAcceleration = new javax.swing.JRadioButton();
    vDisplacement = new javax.swing.JRadioButton();
    jPanel4 = new javax.swing.JPanel();
    fileLengthSec = new javax.swing.JLabel();
    stop = new javax.swing.JButton();
    play = new javax.swing.JButton();
    positionInFileSec = new javax.swing.JLabel();
    fileLengthSecTextFiled = new javax.swing.JTextField();
    positionInFileSecTextField = new javax.swing.JTextField();
    seekSlider = new javax.swing.JSlider();
    jTabbedPane2 = new javax.swing.JTabbedPane();
    jPanel3 = new javax.swing.JPanel();
    jSplitPane1 = new javax.swing.JSplitPane();
    jPanel1 = new javax.swing.JPanel();
    jSplitPane3 = new javax.swing.JSplitPane();
    contrastSpectrogram = new javax.swing.JPanel();
    energy = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    spectrogram = new javax.swing.JPanel();
    labelForFrameScale = new javax.swing.JLabel();
    labelForFrameSpectr = new javax.swing.JLabel();
    cursor = new javax.swing.JProgressBar();
    jPanel6 = new javax.swing.JPanel();
    jSplitPane2 = new javax.swing.JSplitPane();
    fullEnergy = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    fullSpectrogram = new javax.swing.JPanel();
    labelForFullSpectr = new javax.swing.JLabel();
    labelForFullScale = new javax.swing.JLabel();
    jMenuBar1 = new javax.swing.JMenuBar();
    fileMenu = new javax.swing.JMenu();
    openItem = new javax.swing.JMenuItem();
    sliderMenu = new javax.swing.JMenu();
    forward = new javax.swing.JMenuItem();
    backward = new javax.swing.JMenuItem();
    refreshItem = new javax.swing.JMenuItem();
    playItem = new javax.swing.JMenuItem();
    stopItem = new javax.swing.JMenuItem();

    jToolBar1.setRollover(true);

    fileChooser.setDialogTitle(" ");

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setLocationByPlatform(true);
    addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            formKeyPressed(evt);
        }

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

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

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

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

    frame.setText("?  ?");

    frameWidthInSecondsTextField.setEnabled(false);
    frameWidthInSecondsTextField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            frameWidthInSecondsTextFieldActionPerformed(evt);
        }
    });

    spinnerFrameWidth.setModel(new javax.swing.SpinnerNumberModel(8192, 256, 262144, 512));
    spinnerFrameWidth.setEnabled(false);
    spinnerFrameWidth.setOpaque(false);
    spinnerFrameWidth.setRequestFocusEnabled(false);
    spinnerFrameWidth.setValue(32768);
    spinnerFrameWidth.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            spinnerFrameWidthStateChanged(evt);
        }
    });

    jLabel3.setLabelFor(spinnerDiscretization);
    jLabel3.setText("? ?, ");

    spinnerDiscretization.setModel(new javax.swing.SpinnerNumberModel(5000, 1, 50000, 1000));
    spinnerDiscretization.setName(""); // NOI18N

    chosenFileTextField.setEnabled(false);
    chosenFileTextField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            chosenFileTextFieldActionPerformed(evt);
        }
    });

    scaling.add(autoscale);
    autoscale.setSelected(true);
    autoscale.setText("??  ");
    autoscale.setActionCommand("auto");
    autoscale.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            autoscaleActionPerformed(evt);
        }
    });

    scaling.add(meanValue);
    meanValue.setText("?  ?");
    meanValue.setActionCommand("mean");
    meanValue.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            meanValueActionPerformed(evt);
        }
    });

    scaling.add(maxValue);
    maxValue.setText("?  ?");
    maxValue.setActionCommand("max");
    maxValue.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            maxValueActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout controlPanelLayout = new javax.swing.GroupLayout(controlPanel);
    controlPanel.setLayout(controlPanelLayout);
    controlPanelLayout.setHorizontalGroup(controlPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(controlPanelLayout.createSequentialGroup().addContainerGap().addGroup(controlPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(controlPanelLayout.createSequentialGroup().addGroup(controlPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(frame)
                            .addGroup(controlPanelLayout.createSequentialGroup()
                                    .addComponent(spinnerFrameWidth, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(frameWidthInSecondsTextField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 79,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(44, 44, 44)
                            .addGroup(controlPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel3).addComponent(spinnerDiscretization,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(10, 101, Short.MAX_VALUE))
                    .addGroup(controlPanelLayout.createSequentialGroup().addComponent(chosenFileTextField)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                    .addGroup(controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(meanValue).addComponent(autoscale).addComponent(maxValue))
                    .addGap(0, 224, Short.MAX_VALUE)));
    controlPanelLayout.setVerticalGroup(controlPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(controlPanelLayout.createSequentialGroup().addGap(2, 2, 2)
                    .addGroup(controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(frame).addComponent(autoscale))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(spinnerFrameWidth, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(spinnerDiscretization, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(frameWidthInSecondsTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(meanValue))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(controlPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(maxValue).addComponent(chosenFileTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jTabbedPane1.addTab("?? ", controlPanel);

    window.setLabelFor(spinnerWindowWidth);
    window.setText("");

    spinnerWindowWidth.setModel(new javax.swing.SpinnerNumberModel(128, 4, 8192, 128));
    spinnerWindowWidth.setEnabled(false);
    spinnerWindowWidth.setValue(256);

    spinnerLimitFreq.setModel(
            new SpinnerNumberModel(getSpinnerFreqLimit(), new Integer(5), new Integer(50000), new Integer(50)));
    spinnerLimitFreq.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            spinnerLimitFreqStateChanged(evt);
        }
    });

    jLabel5.setLabelFor(spinnerLimitFreq);
    jLabel5.setText("? ?");

    sliderSpectrogram.setValue(100);
    sliderSpectrogram.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            sliderSpectrogramStateChanged(evt);
        }
    });
    sliderSpectrogram.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            sliderSpectrogramFocusGained(evt);
        }
    });

    jLabel1.setLabelFor(sliderSpectrogram);
    jLabel1.setText("??");
    jLabel1.setToolTipText("");
    jLabel1.setName(""); // NOI18N

    transformation.add(fourier);
    fourier.setSelected(true);
    fourier.setText(" ");
    fourier.setActionCommand("fourier");

    transformation.add(wavelet);
    wavelet.setText(" ");
    wavelet.setActionCommand("wavelet");
    wavelet.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            waveletStateChanged(evt);
        }
    });

    windowFunction.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Hann", "Hamming" }));

    llabelWindowFunction.setLabelFor(windowFunction);
    llabelWindowFunction.setText("? ");

    javax.swing.GroupLayout spectrogramPanelLayout = new javax.swing.GroupLayout(spectrogramPanel);
    spectrogramPanel.setLayout(spectrogramPanelLayout);
    spectrogramPanelLayout.setHorizontalGroup(spectrogramPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(spectrogramPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(spectrogramPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(spectrogramPanelLayout.createSequentialGroup()
                                    .addGroup(spectrogramPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(spinnerLimitFreq,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 110,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel5))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(spectrogramPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(spinnerWindowWidth,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 120,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(window))
                                    .addGap(26, 26, 26)
                                    .addGroup(spectrogramPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(wavelet).addComponent(fourier))
                                    .addGap(43, 43, 43)
                                    .addGroup(spectrogramPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(llabelWindowFunction,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(windowFunction, 0,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(spectrogramPanelLayout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(sliderSpectrogram, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(430, Short.MAX_VALUE)));
    spectrogramPanelLayout.setVerticalGroup(spectrogramPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(spectrogramPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(spectrogramPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(spectrogramPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(spectrogramPanelLayout.createSequentialGroup()
                                            .addGroup(spectrogramPanelLayout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addGroup(spectrogramPanelLayout.createSequentialGroup()
                                                            .addComponent(window).addGap(5, 5, 5))
                                                    .addGroup(spectrogramPanelLayout.createSequentialGroup()
                                                            .addComponent(llabelWindowFunction).addPreferredGap(
                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                                            .addGroup(spectrogramPanelLayout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addComponent(spinnerWindowWidth,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGroup(spectrogramPanelLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.BASELINE)
                                                            .addComponent(wavelet).addComponent(windowFunction,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                                    .addGroup(spectrogramPanelLayout.createSequentialGroup()
                                            .addComponent(jLabel5).addGap(5, 5, 5).addComponent(
                                                    spinnerLimitFreq, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(fourier))
                    .addGap(18, 18, 18)
                    .addGroup(spectrogramPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(spectrogramPanelLayout.createSequentialGroup().addComponent(jLabel1)
                                    .addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(sliderSpectrogram, javax.swing.GroupLayout.PREFERRED_SIZE, 0,
                                    Short.MAX_VALUE))
                    .addContainerGap()));

    jTabbedPane1.addTab("?? ?", spectrogramPanel);

    FourierTest.setText("Fourire Test");
    FourierTest.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            FourierTestActionPerformed(evt);
        }
    });

    WaveletTest.setText("Wavelet Test");
    WaveletTest.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            WaveletTestActionPerformed(evt);
        }
    });

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

    LPF.setText(" ?");

    cropBeginningLabel.setText(" :");

    cropBeginningTextField.setText("jTextField1");

    javax.swing.GroupLayout testPanelLayout = new javax.swing.GroupLayout(testPanel);
    testPanel.setLayout(testPanelLayout);
    testPanelLayout.setHorizontalGroup(testPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(testPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(testPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(FourierTest).addComponent(WaveletTest))
                    .addGap(31, 31, 31)
                    .addGroup(testPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(testPanelLayout.createSequentialGroup().addGap(133, 133, 133)
                                    .addComponent(cropBeginningLabel).addGap(3, 3, 3).addComponent(
                                            cropBeginningTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(testPanelLayout.createSequentialGroup().addComponent(jButton1)
                                    .addGap(65, 65, 65).addComponent(LPF)))
                    .addContainerGap(609, Short.MAX_VALUE)));
    testPanelLayout.setVerticalGroup(testPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(testPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(testPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(FourierTest).addComponent(jButton1).addComponent(LPF))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(testPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(WaveletTest).addComponent(cropBeginningLabel)
                            .addComponent(cropBeginningTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(21, Short.MAX_VALUE)));

    jTabbedPane1.addTab("?", testPanel);

    ampl1Input.setText("10");

    ampl2Input.setText("20");

    ampl3Input.setText("30");

    ampl1Label.setText("?.1");

    ampl2Label.setText("?.2");

    ampl3Label.setText("?.3");

    freq1Label.setText("?.1");

    freq2Label.setText("?.2");

    freq3Label.setText("?.3");

    freq1Input.setText("100");

    freq2Input.setText("200");

    freq3Input.setText("300");

    discrLabel.setText("?.");

    discrInput.setText("5000");

    lengthInput.setText("131072");

    lengthLabel.setText("");

    javax.swing.GroupLayout testDataPanelLayout = new javax.swing.GroupLayout(testDataPanel);
    testDataPanel.setLayout(testDataPanelLayout);
    testDataPanelLayout.setHorizontalGroup(testDataPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(testDataPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(testDataPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ampl1Label).addComponent(ampl2Label).addComponent(ampl3Label))
                    .addGap(34, 34, 34)
                    .addGroup(testDataPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ampl1Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ampl2Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ampl3Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(26, 26, 26)
                    .addGroup(testDataPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(testDataPanelLayout.createSequentialGroup().addComponent(freq3Label)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(freq3Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(testDataPanelLayout.createSequentialGroup().addGroup(testDataPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(testDataPanelLayout.createSequentialGroup()
                                            .addComponent(freq1Label)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(freq1Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(36, 36, 36).addComponent(discrLabel))
                                    .addGroup(testDataPanelLayout.createSequentialGroup()
                                            .addComponent(freq2Label)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(freq2Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(lengthLabel)))
                                    .addGap(18, 18, 18)
                                    .addGroup(testDataPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lengthInput, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(discrInput, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap(704, Short.MAX_VALUE)));
    testDataPanelLayout.setVerticalGroup(testDataPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(testDataPanelLayout.createSequentialGroup().addGap(6, 6, 6).addGroup(testDataPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ampl1Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(ampl1Label).addComponent(freq1Label)
                    .addComponent(freq1Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(discrLabel).addComponent(discrInput, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            testDataPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(ampl2Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(ampl2Label).addComponent(freq2Label)
                                    .addComponent(freq2Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(lengthInput, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(lengthLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            testDataPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(ampl3Input, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(ampl3Label).addComponent(freq3Label).addComponent(freq3Input,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jTabbedPane1.addTab("?", testDataPanel);

    v.add(showEnergySpectrum);
    showEnergySpectrum.setText("?");
    showEnergySpectrum.setActionCommand("energy");
    showEnergySpectrum.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            showEnergySpectrumStateChanged(evt);
        }
    });

    v.add(vAcceleration);
    vAcceleration.setText("?");
    vAcceleration.setActionCommand("accel");

    v.add(vDisplacement);
    vDisplacement.setSelected(true);
    vDisplacement.setText("?");
    vDisplacement.setActionCommand("displ");
    vDisplacement.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            vDisplacementStateChanged(evt);
        }
    });

    javax.swing.GroupLayout middleWindowLayout = new javax.swing.GroupLayout(middleWindow);
    middleWindow.setLayout(middleWindowLayout);
    middleWindowLayout.setHorizontalGroup(
            middleWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(middleWindowLayout.createSequentialGroup().addContainerGap()
                            .addComponent(showEnergySpectrum)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(vDisplacement)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(vAcceleration).addContainerGap(697, Short.MAX_VALUE)));
    middleWindowLayout.setVerticalGroup(middleWindowLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(middleWindowLayout.createSequentialGroup().addContainerGap()
                    .addGroup(middleWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(vDisplacement).addComponent(showEnergySpectrum)
                            .addComponent(vAcceleration))
                    .addContainerGap(67, Short.MAX_VALUE)));

    jTabbedPane1.addTab(".", middleWindow);

    jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    fileLengthSec.setLabelFor(fileLengthSecTextFiled);
    fileLengthSec.setText(" , ?");
    jPanel4.add(fileLengthSec, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 10, -1, -1));

    stop.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ru/spbspu/viewer/stop.png"))); // NOI18N
    stop.setEnabled(false);
    stop.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            stopActionPerformed(evt);
        }
    });
    jPanel4.add(stop, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 29, 32));

    play.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ru/spbspu/viewer/playPause.png"))); // NOI18N
    play.setEnabled(false);
    play.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            playActionPerformed(evt);
        }
    });
    jPanel4.add(play, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, 29, 32));

    positionInFileSec.setLabelFor(positionInFileSecTextField);
    positionInFileSec.setText("?  , ?");
    jPanel4.add(positionInFileSec, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 70, -1, -1));

    fileLengthSecTextFiled.setEnabled(false);
    jPanel4.add(fileLengthSecTextFiled, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 30, 90, -1));

    positionInFileSecTextField.setFont(new java.awt.Font("MS Reference Sans Serif", 0, 14)); // NOI18N
    positionInFileSecTextField.setCaretColor(new java.awt.Color(240, 240, 240));
    positionInFileSecTextField.setDisabledTextColor(new java.awt.Color(255, 153, 51));
    positionInFileSecTextField.setDoubleBuffered(true);
    positionInFileSecTextField.setEnabled(false);
    positionInFileSecTextField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            positionInFileSecTextFieldActionPerformed(evt);
        }
    });
    jPanel4.add(positionInFileSecTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 90, 90, -1));

    seekSlider.setPaintLabels(true);
    seekSlider.setValue(0);
    seekSlider.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    seekSlider.setEnabled(false);
    seekSlider.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            seekSliderStateChanged(evt);
        }
    });
    seekSlider.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyPressed(java.awt.event.KeyEvent evt) {
            seekSliderKeyPressed(evt);
        }
    });

    jSplitPane1.setDividerLocation(150);
    jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    jSplitPane1.setPreferredSize(new java.awt.Dimension(809, 150));

    jSplitPane3.setDividerLocation(75);
    jSplitPane3.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

    contrastSpectrogram.setBackground(new java.awt.Color(204, 255, 204));
    contrastSpectrogram.setLayout(new java.awt.BorderLayout());
    jSplitPane3.setLeftComponent(contrastSpectrogram);

    energy.setBackground(new java.awt.Color(204, 255, 204));
    energy.setLayout(new java.awt.BorderLayout());
    jSplitPane3.setBottomComponent(energy);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jSplitPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 1503, Short.MAX_VALUE)
                    .addGap(0, 0, 0)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSplitPane3, javax.swing.GroupLayout.Alignment.TRAILING,
                    javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE));

    jSplitPane1.setTopComponent(jPanel1);

    spectrogram.setBackground(new java.awt.Color(204, 255, 204));
    spectrogram.setEnabled(false);
    spectrogram.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            spectrogramMouseClicked(evt);
        }
    });
    spectrogram.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            spectrogramPropertyChange(evt);
        }
    });
    spectrogram.setLayout(new java.awt.GridBagLayout());

    labelForFrameScale.setMaximumSize(new java.awt.Dimension(40, 14));
    labelForFrameScale.setMinimumSize(new java.awt.Dimension(40, 14));
    labelForFrameScale.setPreferredSize(new java.awt.Dimension(65, 14));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
    spectrogram.add(labelForFrameScale, gridBagConstraints);

    labelForFrameSpectr.setEnabled(false);
    labelForFrameSpectr.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            labelForFrameSpectrMouseClicked(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    spectrogram.add(labelForFrameSpectr, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    spectrogram.add(cursor, gridBagConstraints);

    jScrollPane1.setViewportView(spectrogram);

    jSplitPane1.setBottomComponent(jScrollPane1);

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout
            .setHorizontalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1503, Short.MAX_VALUE));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 354, Short.MAX_VALUE));

    jTabbedPane2.addTab("", jPanel3);

    jSplitPane2.setDividerLocation(200);
    jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

    fullEnergy.setLayout(new java.awt.BorderLayout());
    jSplitPane2.setLeftComponent(fullEnergy);

    fullSpectrogram.setLayout(new java.awt.BorderLayout());

    labelForFullSpectr.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            labelForFullSpectrMouseClicked(evt);
        }
    });
    fullSpectrogram.add(labelForFullSpectr, java.awt.BorderLayout.CENTER);

    labelForFullScale.setMaximumSize(new java.awt.Dimension(35, 14));
    labelForFullScale.setMinimumSize(new java.awt.Dimension(35, 14));
    labelForFullScale.setPreferredSize(new java.awt.Dimension(65, 14));
    fullSpectrogram.add(labelForFullScale, java.awt.BorderLayout.LINE_START);

    jScrollPane2.setViewportView(fullSpectrogram);

    jSplitPane2.setRightComponent(jScrollPane2);

    javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout.setHorizontalGroup(jPanel6Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 1503, Short.MAX_VALUE)
            .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSplitPane2)));
    jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 354, Short.MAX_VALUE).addGroup(jPanel6Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jSplitPane2)));

    jTabbedPane2.addTab("? ?", jPanel6);

    fileMenu.setText("");

    openItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O,
            java.awt.event.InputEvent.CTRL_MASK));
    openItem.setText("");
    openItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            openItemActionPerformed(evt);
        }
    });
    fileMenu.add(openItem);

    jMenuBar1.add(fileMenu);

    sliderMenu.setText("");
    sliderMenu.setEnabled(false);

    forward.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_RIGHT,
            java.awt.event.InputEvent.SHIFT_MASK));
    forward.setText("  ");
    forward.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            forwardActionPerformed(evt);
        }
    });
    sliderMenu.add(forward);

    backward.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_LEFT,
            java.awt.event.InputEvent.SHIFT_MASK));
    backward.setText("?  ");
    backward.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            backwardActionPerformed(evt);
        }
    });
    sliderMenu.add(backward);

    refreshItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, 0));
    refreshItem.setText("");
    refreshItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            refreshItemActionPerformed(evt);
        }
    });
    sliderMenu.add(refreshItem);

    playItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SPACE, 0));
    playItem.setText("");
    playItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            playItemActionPerformed(evt);
        }
    });
    sliderMenu.add(playItem);

    stopItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, 0));
    stopItem.setText("");
    stopItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            stopItemActionPerformed(evt);
        }
    });
    sliderMenu.add(stopItem);

    jMenuBar1.add(sliderMenu);

    setJMenuBar(jMenuBar1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(load, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(refresh, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 219,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0,
                                    Short.MAX_VALUE)
                            .addGap(80, 80, 80))
                    .addComponent(jTabbedPane2).addComponent(seekSlider, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));

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

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addGap(31, 31, 31).addComponent(load)
                                    .addGap(18, 18, 18).addComponent(refresh))
                            .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 130,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 140,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jTabbedPane2)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(seekSlider, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

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

    pack();
}

From source file:com.mirth.connect.client.ui.editors.MapperPanel.java

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

    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    regularExpressionsScrollPane = new javax.swing.JScrollPane();
    regularExpressionsTable = new com.mirth.connect.client.ui.components.MirthTable();
    newButton = new javax.swing.JButton();
    deleteButton = new javax.swing.JButton();
    jLabel4 = new javax.swing.JLabel();
    variableTextField = new javax.swing.JTextField();
    mappingTextField = new javax.swing.JTextField();
    defaultValueTextField = new javax.swing.JTextField();
    addTo = new com.mirth.connect.client.ui.components.MirthComboBox();
    jLabel5 = new javax.swing.JLabel();

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

    jLabel1.setText("Variable:");

    jLabel2.setText("Mapping:");

    jLabel3.setText("Default Value:");

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

    }, new String[] { "Property", "Value" }));
    regularExpressionsScrollPane.setViewportView(regularExpressionsTable);

    newButton.setText("New");
    newButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            newButtonActionPerformed(evt);
        }
    });

    deleteButton.setText("Delete");
    deleteButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            deleteButtonActionPerformed(evt);
        }
    });

    jLabel4.setText("String Replacement:");

    addTo.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

    jLabel5.setText("Add to:");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout
                                    .createSequentialGroup().addGap(39, 39, 39).addGroup(
                                            layout.createParallelGroup(
                                                    javax.swing.GroupLayout.Alignment.TRAILING).addComponent(
                                                            jLabel3)
                                                    .addComponent(jLabel2).addComponent(jLabel1))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(
                                            javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout
                                                    .createSequentialGroup().addComponent(
                                                            regularExpressionsScrollPane,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE, 308,
                                                            Short.MAX_VALUE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(newButton)
                                                            .addComponent(deleteButton)))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout
                                                    .createSequentialGroup()
                                                    .addComponent(variableTextField,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE, 183,
                                                            Short.MAX_VALUE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jLabel5)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(addTo, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            150, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(mappingTextField,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 377, Short.MAX_VALUE)
                                            .addComponent(defaultValueTextField,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 377,
                                                    Short.MAX_VALUE)))
                            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel4)))
                    .addContainerGap()));

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

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1)
                    .addComponent(variableTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5).addComponent(addTo, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2).addComponent(mappingTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(defaultValueTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                    layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel4).addComponent(newButton))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(deleteButton))
                            .addComponent(regularExpressionsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    219, Short.MAX_VALUE))
                    .addContainerGap()));
}

From source file:org.geotoolkit.gui.swing.propertyedit.styleproperty.JAnalizePanel.java

/** This method is called from within the constructor to
 * initialize the form./*from   w  w  w  .  j a  va  2  s. 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() {

    jPanel2 = new javax.swing.JPanel();
    guiLblCount = new javax.swing.JLabel();
    guiLblMinimum = new javax.swing.JLabel();
    guiLblMaximum = new javax.swing.JLabel();
    guiLblSum = new javax.swing.JLabel();
    guiCount = new javax.swing.JLabel();
    guiMinimum = new javax.swing.JLabel();
    guiMaximum = new javax.swing.JLabel();
    guiSum = new javax.swing.JLabel();
    jSeparator2 = new javax.swing.JSeparator();
    guiLblMean = new javax.swing.JLabel();
    guiLblMedian = new javax.swing.JLabel();
    guiMean = new javax.swing.JLabel();
    guiMedian = new javax.swing.JLabel();
    jSeparator3 = new javax.swing.JSeparator();
    guiLblMethod = new javax.swing.JLabel();
    guiLblClasses = new javax.swing.JLabel();
    guiMethod = new javax.swing.JComboBox();
    guiClasses = new javax.swing.JSpinner();
    jSplitPane1 = new javax.swing.JSplitPane();
    jPanel1 = new javax.swing.JPanel();
    jPanel3 = new javax.swing.JPanel();
    guiLblDivision = new javax.swing.JLabel();
    guiDivision = new javax.swing.JSpinner();
    guiChart = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    guiTable = new org.jdesktop.swingx.JXTable();

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

    guiLblCount.setText(MessageBundle.format("count")); // NOI18N

    guiLblMinimum.setText(MessageBundle.format("minimum")); // NOI18N

    guiLblMaximum.setText(MessageBundle.format("maximum")); // NOI18N

    guiLblSum.setText(MessageBundle.format("sum")); // NOI18N

    guiCount.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    guiCount.setText("0");
    guiCount.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

    guiMinimum.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    guiMinimum.setText("0");
    guiMinimum.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

    guiMaximum.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    guiMaximum.setText("0");
    guiMaximum.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

    guiSum.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    guiSum.setText("0");
    guiSum.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

    jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);

    guiLblMean.setText(MessageBundle.format("mean")); // NOI18N

    guiLblMedian.setText(MessageBundle.format("median")); // NOI18N

    guiMean.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    guiMean.setText("0");

    guiMedian.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    guiMedian.setText("0");

    jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);

    guiLblMethod.setText(MessageBundle.format("method")); // NOI18N

    guiLblClasses.setText(MessageBundle.format("classes")); // NOI18N

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

    guiClasses.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(5), Integer.valueOf(1), null,
            Integer.valueOf(1)));
    guiClasses.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            guiClassesStateChanged(evt);
        }
    });

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(guiLblMethod)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(guiMethod, javax.swing.GroupLayout.PREFERRED_SIZE, 130,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(guiLblClasses)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(guiClasses, javax.swing.GroupLayout.PREFERRED_SIZE, 129,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 6,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(guiLblCount)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(guiCount))
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(guiLblMean)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(guiMean))
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(guiLblMedian)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(guiMedian)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 6,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(guiLblMinimum)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(guiMinimum))
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(guiLblMaximum)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(guiMaximum))
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(guiLblSum)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(guiSum)))
                    .addContainerGap(103, Short.MAX_VALUE)));

    jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { guiClasses, guiMethod });

    jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { guiLblClasses, guiLblMethod });

    jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { guiLblCount, guiLblMean, guiLblMedian });

    jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { guiLblMaximum, guiLblMinimum, guiLblSum });

    jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { guiMaximum, guiMinimum, guiSum });

    jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { guiCount, guiMean, guiMedian });

    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(guiLblMethod).addComponent(guiMethod,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(guiLblClasses).addComponent(guiClasses,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(guiLblCount).addComponent(guiCount))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(guiLblMean).addComponent(guiMean))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(guiLblMedian).addComponent(guiMedian)))
                            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(guiLblMinimum).addComponent(guiMinimum))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(guiLblMaximum).addComponent(guiMaximum))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(guiLblSum).addComponent(guiSum))))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)
            .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE));

    jSplitPane1.setBorder(null);
    jSplitPane1.setDividerLocation(225);
    jSplitPane1.setDividerSize(3);

    jPanel1.setLayout(new java.awt.BorderLayout());

    guiLblDivision.setText(MessageBundle.format("division")); // NOI18N

    guiDivision.setModel(new javax.swing.SpinnerNumberModel(50, 1, 100, 1));
    guiDivision.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            guiDivisionStateChanged(evt);
        }
    });

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    jPanel3Layout.createSequentialGroup().addContainerGap().addComponent(guiLblDivision)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(guiDivision, javax.swing.GroupLayout.PREFERRED_SIZE, 84,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(138, Short.MAX_VALUE)));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(guiLblDivision).addComponent(guiDivision,
                            javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    jPanel1.add(jPanel3, java.awt.BorderLayout.NORTH);

    guiChart.setLayout(new java.awt.BorderLayout());
    jPanel1.add(guiChart, java.awt.BorderLayout.CENTER);

    jSplitPane1.setRightComponent(jPanel1);

    guiTable.setBorder(null);
    guiTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] {

    }));
    jScrollPane1.setViewportView(guiTable);

    jSplitPane1.setLeftComponent(jScrollPane1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 238, Short.MAX_VALUE)));
}

From source file:neembuu.uploader.NeembuuUploader.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./*  www . j  a va2s . c o m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jLayeredPane1 = new javax.swing.JLayeredPane();
    sideOverlaidPanel = new javax.swing.JPanel();
    getLogButton = new javax.swing.JButton(getLogButtonIcon);
    forumButton = new javax.swing.JButton();
    donateButton = new javax.swing.JButton();
    fbbutton = new javax.swing.JButton();
    tabbedPane = new javax.swing.JTabbedPane();
    neembuuUploaderTab = new javax.swing.JPanel();
    mainControlsPanel = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    inputFileTextField = new javax.swing.JTextField();
    selectFileButton = new javax.swing.JButton(selectFileButtonIcon);
    addToQueueButton = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();
    selectHostsButton = new javax.swing.JButton();
    selectedHostsLabel = new javax.swing.JLabel();
    selectFolderButton = new javax.swing.JButton(selectFolderButtonIcon);
    jPanel3 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    nuTableModel = NUTableModel.getInstance();
    neembuuUploaderTable = new javax.swing.JTable(nuTableModel);
    moveToTopButton = new javax.swing.JLabel();
    moveToBottomButton = new javax.swing.JLabel();
    moveUpButton = new javax.swing.JLabel();
    moveDownButton = new javax.swing.JLabel();
    startQueueButton = new javax.swing.JButton();
    stopFurtherButton = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    jLabel3 = new javax.swing.JLabel();
    maxuploadspinner = new javax.swing.JSpinner();
    lowerNotificationPanel = new javax.swing.JPanel();
    notificationButton = new javax.swing.JButton();
    uploadHistoryTab = new javax.swing.JPanel();
    accountsTab = new javax.swing.JPanel();
    settingsTab = new javax.swing.JPanel();
    aboutTab = new javax.swing.JPanel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Neembuu Uploader");
    setIconImage(Toolkit.getDefaultToolkit()
            .getImage((getClass().getResource("/neembuuuploader/resources/Icon.png"))));
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);
        }

        public void windowIconified(java.awt.event.WindowEvent evt) {
            formWindowIconified(evt);
        }
    });

    sideOverlaidPanel.setMaximumSize(new java.awt.Dimension(400, 32767));
    sideOverlaidPanel.setMinimumSize(new java.awt.Dimension(204, 32));
    sideOverlaidPanel.setPreferredSize(new java.awt.Dimension(204, 36));

    getLogButton.setMaximumSize(new java.awt.Dimension(24, 24));
    getLogButton.setMinimumSize(new java.awt.Dimension(24, 24));
    getLogButton.setPreferredSize(new java.awt.Dimension(24, 24));
    getLogButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            getLogButtonActionPerformed(evt);
        }
    });

    forumButton.setText("Forum");
    forumButton.setMaximumSize(new java.awt.Dimension(69, 32));
    forumButton.setPreferredSize(new java.awt.Dimension(69, 30));
    forumButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            forumButtonActionPerformed(evt);
        }
    });

    donateButton.setText("Donate");
    donateButton.setMaximumSize(new java.awt.Dimension(73, 32));
    donateButton.setPreferredSize(new java.awt.Dimension(73, 30));
    donateButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            donateButtonActionPerformed(evt);
        }
    });

    fbbutton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/neembuuuploader/resources/fb3.png"))); // NOI18N
    fbbutton.setBorder(null);
    fbbutton.setBorderPainted(false);
    fbbutton.setContentAreaFilled(false);
    fbbutton.setMaximumSize(new java.awt.Dimension(25, 32));
    fbbutton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            fbbuttonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout sideOverlaidPanelLayout = new javax.swing.GroupLayout(sideOverlaidPanel);
    sideOverlaidPanel.setLayout(sideOverlaidPanelLayout);
    sideOverlaidPanelLayout.setHorizontalGroup(sideOverlaidPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(sideOverlaidPanelLayout.createSequentialGroup().addContainerGap()
                    .addComponent(getLogButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(forumButton, javax.swing.GroupLayout.DEFAULT_SIZE, 97, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(donateButton, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(fbbutton, javax.swing.GroupLayout.DEFAULT_SIZE, 57, Short.MAX_VALUE)
                    .addGap(5, 5, 5)));
    sideOverlaidPanelLayout.setVerticalGroup(sideOverlaidPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(sideOverlaidPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(forumButton, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(donateButton, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
            .addComponent(fbbutton, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
                    javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(getLogButton, javax.swing.GroupLayout.Alignment.TRAILING,
                    javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.PREFERRED_SIZE));

    neembuuUploaderTab.setLayout(new java.awt.BorderLayout());

    mainControlsPanel.setPreferredSize(new java.awt.Dimension(713, 600));

    jPanel2.setBorder(javax.swing.BorderFactory
            .createTitledBorder("Select File(s) to upload or Drag and drop files over this window:"));

    inputFileTextField.setEditable(false);
    inputFileTextField.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            inputFileTextFieldMouseClicked(evt);
        }
    });

    selectFileButton.setMaximumSize(new java.awt.Dimension(25, 32));
    selectFileButton.setMinimumSize(new java.awt.Dimension(25, 32));
    selectFileButton.setPreferredSize(new java.awt.Dimension(25, 32));
    selectFileButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            selectFileButtonActionPerformed(evt);
        }
    });

    addToQueueButton.setText("Add to Queue");
    addToQueueButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addToQueueButtonActionPerformed(evt);
        }
    });

    jLabel2.setText("Selected Host(s):");

    selectHostsButton.setText("Select Hosts");
    selectHostsButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            selectHostsButtonActionPerformed(evt);
        }
    });

    selectedHostsLabel.setText("<html><i>None.. :(</i></html>");

    selectFolderButton.setMaximumSize(new java.awt.Dimension(25, 32));
    selectFolderButton.setMinimumSize(new java.awt.Dimension(25, 32));
    selectFolderButton.setPreferredSize(new java.awt.Dimension(25, 32));
    selectFolderButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            selectFolderButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel2Layout.createSequentialGroup().addComponent(inputFileTextField)
                                    .addGap(18, 18, 18)
                                    .addComponent(selectFileButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(selectFolderButton,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel2Layout.createSequentialGroup().addComponent(jLabel2).addGap(18, 18, 18)
                                    .addComponent(selectedHostsLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 376,
                                            Short.MAX_VALUE)
                                    .addGap(18, 18, 18).addComponent(selectHostsButton).addGap(18, 18, 18)
                                    .addComponent(addToQueueButton)))
                    .addContainerGap()));

    jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { addToQueueButton, selectHostsButton });

    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(selectFileButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(selectFolderButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(inputFileTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(addToQueueButton).addComponent(selectHostsButton))
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel2).addComponent(selectedHostsLabel,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(18, Short.MAX_VALUE)));

    jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { addToQueueButton,
            inputFileTextField, jLabel2, selectFileButton, selectHostsButton, selectedHostsLabel });

    jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Upload Queue:"));

    //Set up ProgressBar as renderer for progress column
    ProgressRenderer renderer = new ProgressRenderer(0, 100);
    renderer.setStringPainted(true); //Show Progress text
    UploadStatusRenderer uploadStatusRenderer = new UploadStatusRenderer();
    neembuuUploaderTable.setDefaultRenderer(JProgressBar.class, renderer);
    neembuuUploaderTable.setDefaultRenderer(UploadStatus.class, uploadStatusRenderer);
    //Set table's row height large enough to fit JProgressBar.
    neembuuUploaderTable.setRowHeight((int) renderer.getPreferredSize().getHeight());

    UploaderHostNameRenderer uploaderHostNameRenderer = new UploaderHostNameRenderer();
    neembuuUploaderTable.setDefaultRenderer(Uploader.class, uploaderHostNameRenderer);
    neembuuUploaderTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    neembuuUploaderTable.getTableHeader().setReorderingAllowed(false);
    neembuuUploaderTable.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            neembuuUploaderTableMouseClicked(evt);
        }

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

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            neembuuUploaderTableMouseReleased(evt);
        }
    });
    neembuuUploaderTable.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            neembuuUploaderTableKeyTyped(evt);
        }
    });
    jScrollPane1.setViewportView(neembuuUploaderTable);
    neembuuUploaderTable.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);

    moveToTopButton
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/neembuuuploader/resources/top24.png"))); // NOI18N
    moveToTopButton.setToolTipText("Move selected row(s) to Top of Queue");
    moveToTopButton.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            moveToTopButtonMouseClicked(evt);
        }

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

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

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

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            moveToTopButtonMouseReleased(evt);
        }
    });

    moveToBottomButton.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/neembuuuploader/resources/bottom24.png"))); // NOI18N
    moveToBottomButton.setToolTipText("Move selected row(s) to Bottom of Queue");
    moveToBottomButton.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            moveToBottomButtonMouseClicked(evt);
        }

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

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

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

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            moveToBottomButtonMouseReleased(evt);
        }
    });

    moveUpButton
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/neembuuuploader/resources/up24.png"))); // NOI18N
    moveUpButton.setToolTipText("Move selected row(s) Up in Queue");
    moveUpButton.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            moveUpButtonMouseClicked(evt);
        }

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

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

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

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            moveUpButtonMouseReleased(evt);
        }
    });

    moveDownButton.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/neembuuuploader/resources/down24.png"))); // NOI18N
    moveDownButton.setToolTipText("Move selected row(s) Down in Queue");
    moveDownButton.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            moveDownButtonMouseClicked(evt);
        }

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

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

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

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            moveDownButtonMouseReleased(evt);
        }
    });

    startQueueButton.setText("Start Queue");
    startQueueButton.setToolTipText("Start queued uploads if any");
    startQueueButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            startQueueButtonActionPerformed(evt);
        }
    });

    stopFurtherButton.setText("Stop Further");
    stopFurtherButton.setToolTipText("Stop when the current upload is finished");
    stopFurtherButton.setEnabled(false);
    stopFurtherButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            stopFurtherButtonActionPerformed(evt);
        }
    });

    jLabel3.setText("Max. no. of simultaneous uploads:");

    maxuploadspinner.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(2), Integer.valueOf(1), null,
            Integer.valueOf(1)));
    maxuploadspinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            maxuploadspinnerStateChanged(evt);
        }
    });

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(jLabel3)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(maxuploadspinner, javax.swing.GroupLayout.PREFERRED_SIZE, 39,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(maxuploadspinner).addComponent(jLabel3,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addGap(3, 3, 3)));

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addGroup(jPanel3Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jScrollPane1)
                    .addGroup(jPanel3Layout.createSequentialGroup().addComponent(moveToTopButton)
                            .addGap(18, 18, 18).addComponent(moveUpButton).addGap(18, 18, 18)
                            .addComponent(moveDownButton).addGap(18, 18, 18).addComponent(moveToBottomButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(startQueueButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(stopFurtherButton)))
                    .addContainerGap()));

    jPanel3Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { moveDownButton, moveToBottomButton, moveToTopButton, moveUpButton });

    jPanel3Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { startQueueButton, stopFurtherButton });

    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 325, Short.MAX_VALUE)
                    .addGap(0, 0, 0).addGroup(
                            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(moveToTopButton, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(moveUpButton, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(moveDownButton, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(moveToBottomButton, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(jPanel3Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(stopFurtherButton).addComponent(startQueueButton))
                                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));

    jPanel3Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { moveDownButton,
            moveToBottomButton, moveToTopButton, moveUpButton, startQueueButton, stopFurtherButton });

    javax.swing.GroupLayout mainControlsPanelLayout = new javax.swing.GroupLayout(mainControlsPanel);
    mainControlsPanel.setLayout(mainControlsPanelLayout);
    mainControlsPanelLayout.setHorizontalGroup(mainControlsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainControlsPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(mainControlsPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));
    mainControlsPanelLayout.setVerticalGroup(mainControlsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainControlsPanelLayout.createSequentialGroup().addContainerGap()
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(10, 10, 10)));

    neembuuUploaderTab.add(mainControlsPanel, java.awt.BorderLayout.CENTER);

    lowerNotificationPanel.setPreferredSize(new java.awt.Dimension(754, 100));
    lowerNotificationPanel.setRequestFocusEnabled(false);

    notificationButton.setContentAreaFilled(false);

    javax.swing.GroupLayout lowerNotificationPanelLayout = new javax.swing.GroupLayout(lowerNotificationPanel);
    lowerNotificationPanel.setLayout(lowerNotificationPanelLayout);
    lowerNotificationPanelLayout.setHorizontalGroup(
            lowerNotificationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGap(0, 761, Short.MAX_VALUE)
                    .addGroup(lowerNotificationPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(lowerNotificationPanelLayout.createSequentialGroup().addGap(0, 0, 0)
                                    .addComponent(notificationButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGap(0, 0, 0))));
    lowerNotificationPanelLayout.setVerticalGroup(
            lowerNotificationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGap(0, 100, Short.MAX_VALUE)
                    .addGroup(lowerNotificationPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(lowerNotificationPanelLayout.createSequentialGroup().addGap(0, 0, 0)
                                    .addComponent(notificationButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGap(0, 0, 0))));

    neembuuUploaderTab.add(lowerNotificationPanel, java.awt.BorderLayout.SOUTH);

    tabbedPane.addTab("NeembuuUploader", neembuuUploaderTab);

    uploadHistoryTab.setLayout(new java.awt.BorderLayout());
    tabbedPane.addTab("Upload History", uploadHistoryTab);

    accountsTab.setLayout(new java.awt.BorderLayout());
    tabbedPane.addTab("Accounts", accountsTab);

    settingsTab.setLayout(new java.awt.BorderLayout());
    tabbedPane.addTab("Settings", settingsTab);

    aboutTab.setLayout(new java.awt.BorderLayout());
    tabbedPane.addTab("About", aboutTab);

    javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1);
    jLayeredPane1.setLayout(jLayeredPane1Layout);
    jLayeredPane1Layout.setHorizontalGroup(jLayeredPane1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPane1Layout.createSequentialGroup().addContainerGap().addComponent(tabbedPane)
                    .addContainerGap())
            .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPane1Layout.createSequentialGroup().addContainerGap(470, Short.MAX_VALUE)
                            .addComponent(sideOverlaidPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 308,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap())));
    jLayeredPane1Layout
            .setVerticalGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPane1Layout.createSequentialGroup().addGap(8, 8, 8)
                            .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 641,
                                    Short.MAX_VALUE)
                            .addContainerGap())
                    .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jLayeredPane1Layout.createSequentialGroup().addGap(0, 0, 0)
                                    .addComponent(sideOverlaidPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap(626, Short.MAX_VALUE))));
    jLayeredPane1.setLayer(sideOverlaidPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane1.setLayer(tabbedPane, javax.swing.JLayeredPane.DEFAULT_LAYER);

    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, 0).addComponent(jLayeredPane1).addGap(0, 0, 0)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            layout.createSequentialGroup().addGap(0, 0, 0).addComponent(jLayeredPane1).addGap(0, 0, 0)));

    pack();
}

From source file:com.mirth.connect.client.ui.LoginPanel.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 2s .c o m*/
 */
// <editor-fold defaultstate="collapsed" desc=" Generated Code
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    loginMain = new javax.swing.JPanel();
    closeButton = new javax.swing.JButton();
    loginButton = new javax.swing.JButton();
    jSeparator1 = new javax.swing.JSeparator();
    serverName = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    mirthHeadingPanel2 = new com.mirth.connect.client.ui.MirthHeadingPanel();
    jLabel2 = new javax.swing.JLabel();
    username = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    password = new javax.swing.JPasswordField();
    mirthCorpImage = new javax.swing.JLabel();
    errorPane = new javax.swing.JScrollPane();
    errorTextArea = new javax.swing.JTextArea();
    loggingIn = new javax.swing.JPanel();
    mirthHeadingPanel1 = new com.mirth.connect.client.ui.MirthHeadingPanel();
    jLabel5 = new javax.swing.JLabel();
    loginProgress = new javax.swing.JProgressBar();
    status = new javax.swing.JLabel();
    jSeparator2 = new javax.swing.JSeparator();
    mirthCorpImage1 = new javax.swing.JLabel();
    placeholderButton = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Mirth Connect - Login");
    setResizable(false);

    loginMain.setBackground(new java.awt.Color(255, 255, 255));
    loginMain.setName(""); // NOI18N

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

    loginButton.setText("Login");
    loginButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            loginButtonActionPerformed(evt);
        }
    });

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

    jLabel1.setText("Server:");

    jLabel3.setText("Username:");

    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
    jLabel2.setForeground(new java.awt.Color(255, 255, 255));
    jLabel2.setText("Mirth Connect Login");

    javax.swing.GroupLayout mirthHeadingPanel2Layout = new javax.swing.GroupLayout(mirthHeadingPanel2);
    mirthHeadingPanel2.setLayout(mirthHeadingPanel2Layout);
    mirthHeadingPanel2Layout.setHorizontalGroup(
            mirthHeadingPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mirthHeadingPanel2Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE)
                            .addContainerGap()));
    mirthHeadingPanel2Layout.setVerticalGroup(
            mirthHeadingPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mirthHeadingPanel2Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)
                            .addContainerGap()));

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

    jLabel6.setText("Password:");

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

    mirthCorpImage.setText(" ");

    errorPane.setBorder(null);
    errorPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    errorPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);

    errorTextArea.setColumns(20);
    errorTextArea.setEditable(false);
    errorTextArea.setFont(new java.awt.Font("Tahoma", 0, 11));
    errorTextArea.setLineWrap(true);
    errorTextArea.setText(
            "There was an error connecting to the server at the specified address. Please verify that the server is up and running.");
    errorTextArea.setWrapStyleWord(true);
    errorTextArea.setEnabled(false);
    errorPane.setViewportView(errorTextArea);

    javax.swing.GroupLayout loginMainLayout = new javax.swing.GroupLayout(loginMain);
    loginMain.setLayout(loginMainLayout);
    loginMainLayout
            .setHorizontalGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(loginMainLayout
                            .createSequentialGroup().addContainerGap()
                            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 358,
                                    Short.MAX_VALUE)
                            .addContainerGap())
                    .addComponent(mirthHeadingPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 378,
                            Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            loginMainLayout.createSequentialGroup().addContainerGap()
                                    .addComponent(mirthCorpImage)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 235,
                                            Short.MAX_VALUE)
                                    .addComponent(loginButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(closeButton).addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            loginMainLayout.createSequentialGroup().addGap(51, 51, 51)
                                    .addGroup(loginMainLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(loginMainLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    false)
                                            .addComponent(serverName, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(password, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(username, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(51, 51, 51))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            loginMainLayout.createSequentialGroup().addContainerGap(57, Short.MAX_VALUE)
                                    .addComponent(errorPane, javax.swing.GroupLayout.PREFERRED_SIZE, 264,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(57, 57, 57)));

    loginMainLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { closeButton, loginButton });

    loginMainLayout.setVerticalGroup(loginMainLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, loginMainLayout.createSequentialGroup()
                    .addComponent(mirthHeadingPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 49,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(22, 22, 22)
                    .addGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(serverName,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(username,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(errorPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(loginMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(closeButton).addComponent(loginButton).addComponent(mirthCorpImage))
                    .addContainerGap()));

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

    jLabel5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
    jLabel5.setForeground(new java.awt.Color(255, 255, 255));
    jLabel5.setText("Mirth Connect Login");

    javax.swing.GroupLayout mirthHeadingPanel1Layout = new javax.swing.GroupLayout(mirthHeadingPanel1);
    mirthHeadingPanel1.setLayout(mirthHeadingPanel1Layout);
    mirthHeadingPanel1Layout.setHorizontalGroup(
            mirthHeadingPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mirthHeadingPanel1Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 326,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(42, Short.MAX_VALUE)));
    mirthHeadingPanel1Layout.setVerticalGroup(
            mirthHeadingPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(mirthHeadingPanel1Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)
                            .addContainerGap()));

    loginProgress.setDoubleBuffered(true);

    status.setText("Please wait: Logging in...");

    mirthCorpImage1.setText(" ");

    placeholderButton.setText("Placeholder");

    javax.swing.GroupLayout loggingInLayout = new javax.swing.GroupLayout(loggingIn);
    loggingIn.setLayout(loggingInLayout);
    loggingInLayout.setHorizontalGroup(loggingInLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(mirthHeadingPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    loggingInLayout.createSequentialGroup().addContainerGap()
                            .addComponent(loginProgress, javax.swing.GroupLayout.DEFAULT_SIZE, 358,
                                    Short.MAX_VALUE)
                            .addContainerGap())
            .addGroup(loggingInLayout.createSequentialGroup().addContainerGap().addComponent(status)
                    .addContainerGap(247, Short.MAX_VALUE))
            .addGroup(loggingInLayout.createSequentialGroup().addContainerGap().addComponent(mirthCorpImage1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 268, Short.MAX_VALUE)
                    .addComponent(placeholderButton).addContainerGap())
            .addGroup(loggingInLayout.createSequentialGroup().addContainerGap()
                    .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE)
                    .addContainerGap()));
    loggingInLayout.setVerticalGroup(loggingInLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(loggingInLayout.createSequentialGroup()
                    .addComponent(mirthHeadingPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 49,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(45, 45, 45).addComponent(status)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(loginProgress, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 82, Short.MAX_VALUE)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(loggingInLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(mirthCorpImage1).addComponent(placeholderButton))
                    .addContainerGap()));

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

    pack();
}