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:ejemplo.grafica.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. ja  v  a2 s.c  om
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jComboBox1 = new javax.swing.JComboBox();
    jTextField4 = new javax.swing.JTextField();
    jButton1 = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    txtTipo = new javax.swing.JTextField();
    txtPeso = new javax.swing.JTextField();
    txtNivel = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    txtMaxPeso = new javax.swing.JTextField();
    txtMinPeso = new javax.swing.JTextField();
    txtMinNivel = new javax.swing.JTextField();
    txtMaxNivel = new javax.swing.JTextField();
    txtMinTipo = new javax.swing.JTextField();
    txtMaxTipo = new javax.swing.JTextField();
    jPanel1 = new javax.swing.JPanel();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    jTabbedPane2 = new javax.swing.JTabbedPane();
    jScrollPane1 = new javax.swing.JScrollPane();
    textAreaEntradas = new javax.swing.JTextArea();
    jScrollPane2 = new javax.swing.JScrollPane();
    jTextArea2 = new javax.swing.JTextArea();
    jScrollPane4 = new javax.swing.JScrollPane();
    jPanel4 = new javax.swing.JPanel();
    panelNivel = new javax.swing.JPanel();
    panelNivelAgua = new javax.swing.JPanel();
    panelTipo = new javax.swing.JPanel();
    panelPeso = new javax.swing.JPanel();
    panelDetergente = new javax.swing.JPanel();
    panelTipoLavado = new javax.swing.JPanel();
    panelTiempoLavado = new javax.swing.JPanel();
    panelNivelAgua1 = new javax.swing.JPanel();
    progressBar = new javax.swing.JProgressBar();
    jPanel5 = new javax.swing.JPanel();
    jTabbedPane5 = new javax.swing.JTabbedPane();
    jLabel7 = new javax.swing.JLabel();
    txtMaximaAgua = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    txtNivelAgua = new javax.swing.JTextField();
    jLabel9 = new javax.swing.JLabel();
    txtMaximoDetergente = new javax.swing.JTextField();
    jLabel10 = new javax.swing.JLabel();
    txtCantidadDetergente = new javax.swing.JTextField();
    jLabel11 = new javax.swing.JLabel();
    txtMaximoTiempo = new javax.swing.JTextField();
    jLabel12 = new javax.swing.JLabel();
    txtTipoLavado = new javax.swing.JTextField();
    pb = new javax.swing.JProgressBar();

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

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jTextField4.setText("jTextField1");

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

    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Variables de Entradas"));

    txtTipo.setText("0");
    txtTipo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtTipoActionPerformed(evt);
        }
    });

    txtPeso.setText("0");
    txtPeso.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtPesoActionPerformed(evt);
        }
    });

    txtNivel.setText("0");

    jLabel1.setText("Peso de Ropa");

    jLabel2.setText("Nivel Suciedad");

    jLabel3.setText("Tipo de Tela");

    jLabel4.setText("Universo");

    jLabel5.setText("Min");

    jLabel6.setText("Max");

    txtMaxPeso.setText("0");
    txtMaxPeso.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtMaxPesoActionPerformed(evt);
        }
    });

    txtMinPeso.setText("0");
    txtMinPeso.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtMinPesoActionPerformed(evt);
        }
    });

    txtMinNivel.setText("0");
    txtMinNivel.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtMinNivelActionPerformed(evt);
        }
    });

    txtMaxNivel.setText("0");
    txtMaxNivel.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtMaxNivelActionPerformed(evt);
        }
    });

    txtMinTipo.setText("0");
    txtMinTipo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtMinTipoActionPerformed(evt);
        }
    });

    txtMaxTipo.setText("0");
    txtMaxTipo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtMaxTipoActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addGroup(
                                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel2).addComponent(jLabel3).addComponent(jLabel1))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    false)
                                            .addComponent(txtNivel, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txtPeso, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txtTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 47,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addComponent(txtMinTipo,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 40,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(txtMaxTipo,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 40,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addComponent(txtMinNivel,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 40,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(txtMaxNivel,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 40,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel2Layout.createSequentialGroup().addGap(46, 46, 46)
                                                    .addComponent(txtMaxPeso,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 40,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(txtMinPeso, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    40, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(0, 16, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout
                                    .createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    false)
                                            .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addGroup(jPanel2Layout.createSequentialGroup()
                                                    .addComponent(jLabel5,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 37,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jLabel6)))
                                    .addGap(22, 22, 22)))));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addComponent(jLabel4).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5).addComponent(jLabel6))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtPeso, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtMaxPeso, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtMinPeso, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txtMaxNivel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtMinNivel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txtNivel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel2)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txtMaxTipo, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtMinTipo, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txtTipo, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel3)))
                    .addContainerGap()));

    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Grados de Pert. Var. Entradas"));

    textAreaEntradas.setColumns(20);
    textAreaEntradas.setRows(5);
    jScrollPane1.setViewportView(textAreaEntradas);

    jTabbedPane2.addTab("Entradas", jScrollPane1);

    jTextArea2.setColumns(20);
    jTextArea2.setRows(5);
    jTextArea2.setText("hahahahaha\n");
    jScrollPane2.setViewportView(jTextArea2);

    jTabbedPane2.addTab("Salidas", jScrollPane2);

    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(31, 31, 31)
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap()
                    .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 301, Short.MAX_VALUE)
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 237,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(29, 29, 29)
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

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

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

    javax.swing.GroupLayout panelNivelLayout = new javax.swing.GroupLayout(panelNivel);
    panelNivel.setLayout(panelNivelLayout);
    panelNivelLayout.setHorizontalGroup(panelNivelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 281, Short.MAX_VALUE));
    panelNivelLayout.setVerticalGroup(panelNivelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 193, Short.MAX_VALUE));

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

    javax.swing.GroupLayout panelNivelAguaLayout = new javax.swing.GroupLayout(panelNivelAgua);
    panelNivelAgua.setLayout(panelNivelAguaLayout);
    panelNivelAguaLayout.setHorizontalGroup(panelNivelAguaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 279, Short.MAX_VALUE));
    panelNivelAguaLayout.setVerticalGroup(panelNivelAguaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 193, Short.MAX_VALUE));

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

    javax.swing.GroupLayout panelTipoLayout = new javax.swing.GroupLayout(panelTipo);
    panelTipo.setLayout(panelTipoLayout);
    panelTipoLayout.setHorizontalGroup(panelTipoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 279, Short.MAX_VALUE));
    panelTipoLayout.setVerticalGroup(panelTipoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 193, Short.MAX_VALUE));

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

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

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

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

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

    javax.swing.GroupLayout panelTipoLavadoLayout = new javax.swing.GroupLayout(panelTipoLavado);
    panelTipoLavado.setLayout(panelTipoLavadoLayout);
    panelTipoLavadoLayout.setHorizontalGroup(panelTipoLavadoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 281, Short.MAX_VALUE));
    panelTipoLavadoLayout.setVerticalGroup(panelTipoLavadoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 193, Short.MAX_VALUE));

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

    javax.swing.GroupLayout panelTiempoLavadoLayout = new javax.swing.GroupLayout(panelTiempoLavado);
    panelTiempoLavado.setLayout(panelTiempoLavadoLayout);
    panelTiempoLavadoLayout.setHorizontalGroup(panelTiempoLavadoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 279, Short.MAX_VALUE));
    panelTiempoLavadoLayout.setVerticalGroup(panelTiempoLavadoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 193, Short.MAX_VALUE));

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

    javax.swing.GroupLayout panelNivelAgua1Layout = new javax.swing.GroupLayout(panelNivelAgua1);
    panelNivelAgua1.setLayout(panelNivelAgua1Layout);
    panelNivelAgua1Layout.setHorizontalGroup(panelNivelAgua1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 279, Short.MAX_VALUE));
    panelNivelAgua1Layout.setVerticalGroup(panelNivelAgua1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 193, Short.MAX_VALUE));

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(jPanel4Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup().addGap(18, 18, 18)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    jPanel4Layout.createSequentialGroup()
                                            .addComponent(panelPeso, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(panelNivel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(panelTipo, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(panelNivelAgua, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                    .addComponent(panelDetergente, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(panelTipoLavado, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(panelTiempoLavado, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(panelNivelAgua1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGap(94, 94, 94)));
    jPanel4Layout
            .setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup().addGap(16, 16, 16)
                            .addGroup(jPanel4Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(panelNivelAgua, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(panelNivel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(panelTipo, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(panelPeso, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(16, 16, 16)
                            .addGroup(jPanel4Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(panelNivelAgua1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(panelTipoLavado, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(panelTiempoLavado, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(panelDetergente, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(346, 346, 346)));

    jPanel4Layout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { panelNivel, panelNivelAgua, panelTipo });

    jScrollPane4.setViewportView(jPanel4);

    progressBar.setOrientation(1);
    progressBar.setStringPainted(true);

    jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder("Variables de Salidas"));

    jLabel7.setText("Nivel Maximo de Agua en Lts");

    txtMaximaAgua.setText("0");
    txtMaximaAgua.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtMaximaAguaActionPerformed(evt);
        }
    });

    jLabel8.setText("Nivel Del Agua En Lts ");

    txtNivelAgua.setText("0");
    txtNivelAgua.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtNivelAguaActionPerformed(evt);
        }
    });

    jLabel9.setText("Nivel Maximo de Detergente en Gr");

    txtMaximoDetergente.setText("0");
    txtMaximoDetergente.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtMaximoDetergenteActionPerformed(evt);
        }
    });

    jLabel10.setText("Nivel De Detergente en Gr. ");

    txtCantidadDetergente.setText("0");
    txtCantidadDetergente.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtCantidadDetergenteActionPerformed(evt);
        }
    });

    jLabel11.setText("Tiempo de Lavado en Minutos");

    txtMaximoTiempo.setText("0");
    txtMaximoTiempo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtMaximoTiempoActionPerformed(evt);
        }
    });

    jLabel12.setText("Tipo Lavado");

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

    javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
    jPanel5.setLayout(jPanel5Layout);
    jPanel5Layout.setHorizontalGroup(jPanel5Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup().addGroup(jPanel5Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup().addGap(31, 31, 31).addComponent(
                            jTabbedPane5, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap().addGroup(jPanel5Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel5Layout.createSequentialGroup().addComponent(jLabel8)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(txtNivelAgua, javax.swing.GroupLayout.PREFERRED_SIZE, 69,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                    jPanel5Layout.createSequentialGroup().addComponent(jLabel7)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(txtMaximaAgua, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    69, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel5Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addComponent(jLabel9).addGap(18, 18, 18).addComponent(txtMaximoDetergente,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 69,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel5Layout.createSequentialGroup().addComponent(jLabel11)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(txtMaximoTiempo, javax.swing.GroupLayout.PREFERRED_SIZE, 69,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel5Layout.createSequentialGroup()
                                    .addGroup(jPanel5Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel10).addComponent(jLabel12))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(jPanel5Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(txtTipoLavado).addComponent(txtCantidadDetergente,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 69,
                                                    Short.MAX_VALUE))))))
                    .addContainerGap()));
    jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7).addComponent(txtMaximaAgua,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9).addComponent(txtMaximoDetergente,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel11).addComponent(txtMaximoTiempo,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8).addComponent(txtNivelAgua,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10).addComponent(txtCantidadDetergente,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel12)
                            .addComponent(txtTipoLavado, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(239, 239, 239)
                    .addComponent(jTabbedPane5, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pb.setOrientation(1);

    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.TRAILING)
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup().addGap(93, 93, 93).addComponent(jButton1)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, 139,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(pb, javax.swing.GroupLayout.PREFERRED_SIZE, 88,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 1191,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(14, Short.MAX_VALUE))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout
                    .createSequentialGroup().addGap(116, 116, 116)
                    .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(1015, Short.MAX_VALUE))));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGap(7, 7, 7)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 277,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .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(jButton1))
                                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 277,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(progressBar,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 278,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup().addGap(148, 148, 148).addComponent(pb,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 130,
                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 414,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(21, Short.MAX_VALUE))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGap(85, 85, 85)
                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 0,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(640, Short.MAX_VALUE))));

    pack();
}

From source file:com.farouk.projectapp.FirstGUI.java

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

    jTabbedPane1 = new javax.swing.JTabbedPane();
    jPanel5 = new javax.swing.JPanel();
    jPanel6 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    DefaultTableModel a = new DefaultTableModel();
    jTable2 = new javax.swing.JTable() {
        public boolean isCellEditable(int d, int c) {
            return false;
        }

        @Override
        public Component prepareRenderer(TableCellRenderer renderer, int row, int col) {
            Component comp = super.prepareRenderer(renderer, row, col);
            String value = getModel().getValueAt(row, 0).toString();
            int a = SQLConnect.ifReported(userID, value);
            if (a == 1) {
                comp.setBackground(Color.red);
            } else {
                comp.setBackground(Color.white);
                comp.setForeground(Color.black);
            }

            return comp;
        }
    };
    jButton5 = new javax.swing.JButton();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jSeparator2 = new javax.swing.JSeparator();
    jButton10 = new javax.swing.JButton();
    jLabel10 = new javax.swing.JLabel();
    jPanel15 = new javax.swing.JPanel();
    jPanel16 = new javax.swing.JPanel();
    jTextField6 = new javax.swing.JTextField();
    jTextField7 = new javax.swing.JTextField();
    jLabel14 = new javax.swing.JLabel();
    jButton13 = new javax.swing.JButton();
    jButton14 = new javax.swing.JButton();
    jButton7 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jPanel10 = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    jEditorPane1 = new javax.swing.JEditorPane();
    jButton15 = new javax.swing.JButton();
    jButton19 = new javax.swing.JButton();
    jTextField4 = new javax.swing.JTextField();
    jPanel1 = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    jTextField1 = new javax.swing.JTextField();
    jPanel3 = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    jPanel4 = new javax.swing.JPanel();
    jScrollPane5 = new javax.swing.JScrollPane();
    jTable3 = new javax.swing.JTable() {
        public boolean isCellEditable(int d, int c) {
            return false;
        }
    };
    jButton6 = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();
    jSeparator1 = new javax.swing.JSeparator();
    jPanel8 = new javax.swing.JPanel();
    jScrollPane3 = new javax.swing.JScrollPane();
    DefaultListModel modelCompaniesName = new DefaultListModel();
    try {
        for (String p : SQLConnect.getAllCompaniesNames()) {
            modelCompaniesName.addElement(p);
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
    jList1 = new javax.swing.JList();
    jLabel3 = new javax.swing.JLabel();
    jButton4 = new javax.swing.JButton();
    jButton9 = new javax.swing.JButton();
    jLabel9 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    jButton8 = new javax.swing.JButton();
    jPanel7 = new javax.swing.JPanel();
    jTextField2 = new javax.swing.JTextField();
    jPasswordField1 = new javax.swing.JPasswordField();
    jButton11 = new javax.swing.JButton();
    jButton12 = new javax.swing.JButton();
    jPanel9 = new javax.swing.JPanel();
    jLabel11 = new javax.swing.JLabel();
    jButton17 = new javax.swing.JButton();
    jLabel12 = new javax.swing.JLabel();
    jButton18 = new javax.swing.JButton();
    jTextField3 = new javax.swing.JTextField();
    jLabel15 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    jMenuItem1 = new javax.swing.JMenuItem();
    jMenu2 = new javax.swing.JMenu();
    jMenuItem2 = new javax.swing.JMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jTabbedPane1.setToolTipText("");
    jTabbedPane1.setMinimumSize(new java.awt.Dimension(150, 200));
    jTabbedPane1.setPreferredSize(new java.awt.Dimension(200, 200));

    jScrollPane1.setViewportView(jTable2);
    jTable2.setModel(a);
    try {
        UpdatejTable2();
    } catch (Exception e) {
        e.printStackTrace();
    }
    jTable2.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jTable2MouseClicked(evt);
        }
    });
    jTable2.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyReleased(java.awt.event.KeyEvent evt) {
            jTable2KeyReleased(evt);
        }
    });
    jScrollPane1.setViewportView(jTable2);

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

    jLabel4.setText("   Last Refreshed : ");

    jButton10.setText("Refresh Company");
    jButton10.setVisible(false);
    jButton10.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton10ActionPerformed(evt);
        }
    });

    jLabel10.setText("Total is : " + String.valueOf(total.doubleValue()) + "");

    jTextField6.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField6ActionPerformed(evt);
        }
    });
    jTextField6.setVisible(false);

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

    jLabel14.setText("N of Actions");

    javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
    jPanel16.setLayout(jPanel16Layout);
    jPanel16Layout.setHorizontalGroup(jPanel16Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel16Layout.createSequentialGroup()
                                    .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 42,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(34, 34, 34).addComponent(jTextField6,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 10,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabel14))
                    .addGap(0, 3, Short.MAX_VALUE)));
    jPanel16Layout.setVerticalGroup(jPanel16Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
                    .addComponent(jLabel14)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(13, 13, 13)));

    jButton13.setText("Buy");
    jButton13.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton13ActionPerformed(evt);
        }
    });

    jButton14.setText("Sell");
    jButton14.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton14ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
    jPanel15.setLayout(jPanel15Layout);
    jPanel15Layout
            .setHorizontalGroup(
                    jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel15Layout.createSequentialGroup().addComponent(jButton13)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton14).addGap(166, 166, 166))
                            .addGroup(jPanel15Layout.createSequentialGroup()
                                    .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel15Layout
            .setVerticalGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, 58,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel15Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jButton14).addComponent(jButton13))));

    jButton7.setText("Get News !");
    jButton7.setVisible(false);
    jButton7.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton7ActionPerformed(evt);
        }
    });

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

    jPanel10.setVisible(false);

    jScrollPane2.setViewportView(jEditorPane1);

    javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
    jPanel10.setLayout(jPanel10Layout);
    jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    jPanel10Layout.createSequentialGroup().addGap(39, 39, 39).addComponent(jScrollPane2,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE)));
    jPanel10Layout.setVerticalGroup(jPanel10Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jPanel10Layout
                    .createSequentialGroup().addContainerGap().addComponent(jScrollPane2).addContainerGap()));

    jButton15.setText("Automate");
    jButton15.setVisible(false);
    jButton15.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton15ActionPerformed(evt);
        }
    });

    jButton19.setText("Alert");
    jButton19.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton19ActionPerformed(evt);
        }
    });

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

    javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout.setHorizontalGroup(jPanel6Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup().addContainerGap().addGroup(jPanel6Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jScrollPane1)
                    .addGroup(jPanel6Layout.createSequentialGroup().addGroup(jPanel6Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, 131,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel6Layout.createSequentialGroup().addGroup(jPanel6Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jButton19, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton15, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton7, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel6Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jButton3).addComponent(jTextField4,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 68,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGroup(jPanel6Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel6Layout.createSequentialGroup()
                                            .addPreferredGap(
                                                    javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addGroup(jPanel6Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                            jPanel6Layout.createSequentialGroup()
                                                                    .addGroup(jPanel6Layout.createParallelGroup(
                                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                                            .addComponent(jLabel10)
                                                                            .addComponent(jButton10))
                                                                    .addPreferredGap(
                                                                            javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                                    .addGroup(jPanel6Layout.createParallelGroup(
                                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                                            .addComponent(jButton5)
                                                                            .addComponent(jLabel4)))
                                                    .addComponent(jLabel5,
                                                            javax.swing.GroupLayout.Alignment.TRAILING,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 157,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jPanel6Layout.createSequentialGroup().addGap(70, 70, 70)
                                            .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    419, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE)))))
                    .addContainerGap()));

    jPanel6Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jButton3, jTextField4 });

    jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup().addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 249,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel6Layout.createSequentialGroup().addComponent(jButton7)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel6Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jButton15).addComponent(jButton3))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel6Layout
                                            .createParallelGroup(
                                                    javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(jButton19)
                                            .addGroup(jPanel6Layout.createSequentialGroup().addGap(1, 1, 1)
                                                    .addComponent(jTextField4)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(9, 9, 9))
                            .addGroup(jPanel6Layout.createSequentialGroup()
                                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel6Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addGroup(jPanel6Layout.createSequentialGroup()
                                                    .addGroup(jPanel6Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.BASELINE)
                                                            .addComponent(jButton5).addComponent(jButton10))
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(jPanel6Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.BASELINE)
                                                            .addComponent(jLabel4).addComponent(jLabel10))
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(jLabel5,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 24,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(0, 0, Short.MAX_VALUE)))
                                    .addContainerGap()))));

    javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
    jPanel5.setLayout(jPanel5Layout);
    jPanel5Layout.setHorizontalGroup(jPanel5Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap().addComponent(jPanel6,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));
    jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap().addComponent(jPanel6,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));

    jTabbedPane1.addTab("    My Portfolio    ", jPanel5);

    jTextField1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    jTextField1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField1ActionPerformed(evt);
        }
    });

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

    jButton2.setText("Clear");
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(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().addGap(2, 2, 2)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 82,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18).addComponent(jButton2)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton2))
                    .addContainerGap()));

    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()
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 145,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(51, 51, 51)));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField1).addComponent(jPanel3,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addContainerGap()));

    jLabel1.setText("Name of Company to look for : ");

    jTable3.setModel(a);
    jScrollPane5.setViewportView(jTable3);
    jScrollPane5.setVisible(false);

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

    jLabel2.setText(null);
    jLabel2.setVisible(false);

    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).addComponent(jScrollPane5)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel4Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addGroup(jPanel4Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel2).addComponent(jButton6))))
                    .addContainerGap()));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    jPanel4Layout.createSequentialGroup().addGap(5, 5, 5).addComponent(jButton6)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 39,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(19, 19, 19)));

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(jPanel4,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup().addGap(82, 82, 82)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel1).addComponent(jSeparator1,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 598,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(0, 236, Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(36, 36, 36).addComponent(jLabel1)
                    .addGap(18, 18, 18)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 16,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(210, Short.MAX_VALUE)));

    jTabbedPane1.addTab("    Search    ", jPanel1);

    jList1.setModel(modelCompaniesName);
    jList1.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jList1MouseClicked(evt);
        }
    });
    jScrollPane3.setViewportView(jList1);

    jLabel3.setText("  List of Companies (NASDAQ)");

    javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
    jPanel8.setLayout(jPanel8Layout);
    jPanel8Layout
            .setHorizontalGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addGroup(jPanel8Layout.createSequentialGroup().addComponent(jLabel3).addGap(0, 50,
                            Short.MAX_VALUE)));
    jPanel8Layout.setVerticalGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    jPanel8Layout.createSequentialGroup().addGap(5, 5, 5).addComponent(jLabel3)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(
                                    jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 613, Short.MAX_VALUE)));

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

    jButton9.setVisible(false);
    jButton9.setText("Quit");
    jButton9.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton9ActionPerformed(evt);
        }
    });

    jLabel9.setText("All prices are in .");

    jLabel8.setVisible(false);

    jButton8.setText("Stop");
    jButton8.setVisible(false);

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

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

    jButton11.setText("Log in");
    jButton11.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton11ActionPerformed(evt);
        }
    });

    jButton12.setText("Create account");
    jButton12.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton12ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
    jPanel7.setLayout(jPanel7Layout);
    jPanel7Layout
            .setHorizontalGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 150,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 138,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jPanel7Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 97,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jButton12, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addContainerGap()));

    jPanel7Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jPasswordField1, jTextField2 });

    jPanel7Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jButton11, jButton12 });

    jPanel7Layout.setVerticalGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton11))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton12).addContainerGap()));

    jPanel7Layout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { jPasswordField1, jTextField2 });

    jLabel11.setFont(new java.awt.Font("Tahoma", 0, 17)); // NOI18N

    jButton17.setText("Log out");
    jButton17.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton17ActionPerformed(evt);
        }
    });

    jButton18.setText("Change Limit");
    jButton18.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton18ActionPerformed(evt);
        }
    });

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

    jPanel9.setVisible(false);

    javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
    jPanel9.setLayout(jPanel9Layout);
    jPanel9Layout.setHorizontalGroup(jPanel9Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                    .addContainerGap(18, Short.MAX_VALUE)
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel9Layout.createSequentialGroup()
                                    .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 39,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jButton18))
                            .addGroup(jPanel9Layout.createSequentialGroup()
                                    .addGroup(jPanel9Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    jPanel9Layout.createSequentialGroup().addComponent(jLabel11)
                                                            .addGap(30, 30, 30))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    jPanel9Layout.createSequentialGroup().addComponent(jLabel12)
                                                            .addGap(18, 18, 18)))
                                    .addComponent(jButton17)))
                    .addGap(36, 36, 36)));
    jPanel9Layout.setVerticalGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel9Layout.createSequentialGroup().addComponent(jLabel11)
                                    .addGap(18, 18, 18).addComponent(jLabel12))
                            .addComponent(jButton17))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(
                            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jButton18).addGroup(jPanel9Layout.createSequentialGroup()
                                            .addGap(1, 1, 1).addComponent(jTextField3)))
                    .addContainerGap()));

    jLabel6.setVisible(false);

    jMenu1.setText("File");

    jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q,
            java.awt.event.InputEvent.CTRL_MASK));
    jMenuItem1.setText("Quit");
    jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jMenuItem1ActionPerformed(evt);
        }
    });
    jMenu1.add(jMenuItem1);

    jMenuBar1.add(jMenu1);

    jMenu2.setText("Help");

    jMenuItem2.setText("About");
    jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jMenuItem2ActionPerformed(evt);
        }
    });
    jMenu2.add(jMenuItem2);

    jMenuBar1.add(jMenu2);

    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)
                    .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup().addComponent(jButton4)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton8)))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                            .addComponent(jLabel6)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLabel8).addGap(85, 85, 85).addComponent(jLabel7)
                                            .addGap(77, 77, 77).addComponent(jButton9))
                                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 931,
                                            Short.MAX_VALUE)
                                    .addGroup(layout.createSequentialGroup().addComponent(jLabel9)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(53, 53, 53).addComponent(jPanel7,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGap(18, 18, 18))
                            .addGroup(layout.createSequentialGroup().addComponent(jLabel15)
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    layout.createSequentialGroup()
                            .addComponent(jPanel8, 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.BASELINE)
                                    .addComponent(jButton9).addComponent(jButton4).addComponent(jLabel8)
                                    .addComponent(jButton8).addComponent(jLabel6).addComponent(jLabel7))
                            .addContainerGap())
            .addGroup(layout.createSequentialGroup().addGap(16, 16, 16).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addGap(68, 68, 68)
                                            .addComponent(jLabel9))
                                    .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 515,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel15)
                    .addGap(0, 0, Short.MAX_VALUE)));

    jTabbedPane1.getAccessibleContext().setAccessibleName("");

    pack();
}

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

private void initGUI() {
    try {//from  w ww  .ja  v  a  2 s .c  om
        {
            BorderLayout thisLayout = new BorderLayout();
            this.setLayout(thisLayout);
            this.setPreferredSize(new java.awt.Dimension(870, 609));
            {
                jTabbedPane1 = new JTabbedPane();
                this.add(jTabbedPane1, BorderLayout.CENTER);
                jTabbedPane1.setTabPlacement(JTabbedPane.LEFT);
                jTabbedPane1.setPreferredSize(new java.awt.Dimension(661, 419));
                {
                    jMemoryPanel = new JPanel();
                    GroupLayout jMemoryPanelLayout = new GroupLayout((JComponent) jMemoryPanel);
                    jMemoryPanel.setLayout(jMemoryPanelLayout);
                    jTabbedPane1.addTab("Memory", null, jMemoryPanel, null);
                    jTabbedPane1.addTab("Profiling", null, getJMemoryProfilingPanel(), null);
                    jTabbedPane1.addTab("Jmp", null, getJmpPanel(), null);
                    jTabbedPane1.addTab("Call graph", null, getJTabbedPane3(), null);
                    jTabbedPane1.addTab("Interrupt", null, getJPanel11(), null);
                    jMemoryPanelLayout.setVerticalGroup(jMemoryPanelLayout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(jMemoryPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                                    .addComponent(getJFromComboBox(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE)
                                    .addComponent(getJLabel4x(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addComponent(getJLabel6(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addComponent(getJToComboBox(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE)
                                    .addComponent(getJLabel5x(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addComponent(getJBlockSizeComboBox(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE)
                                    .addComponent(getJLabel3(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addComponent(getJSearchTextField(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(getJTabbedPane2(), 0, 224, Short.MAX_VALUE)
                            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jMemoryPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                                    .addComponent(getJLabel1(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addComponent(getJLabel2(), GroupLayout.Alignment.BASELINE,
                                            GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jMemoryPanelLayout.createParallelGroup()
                                    .addComponent(getJHostestAddressScrollPane(), GroupLayout.Alignment.LEADING,
                                            GroupLayout.PREFERRED_SIZE, 110, GroupLayout.PREFERRED_SIZE)
                                    .addGroup(GroupLayout.Alignment.LEADING, jMemoryPanelLayout
                                            .createSequentialGroup()
                                            .addComponent(getJLabel4(), GroupLayout.PREFERRED_SIZE,
                                                    GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(getJLabel5(), GroupLayout.PREFERRED_SIZE,
                                                    GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                                            .addGap(74)))
                            .addComponent(getJPanel1(), GroupLayout.PREFERRED_SIZE, 28,
                                    GroupLayout.PREFERRED_SIZE)
                            .addContainerGap());
                    jMemoryPanelLayout.linkSize(SwingConstants.VERTICAL,
                            new Component[] { getJSearchTextField(), getJFromComboBox(), getJToComboBox(),
                                    getJBlockSizeComboBox() });
                    jMemoryPanelLayout
                            .setHorizontalGroup(jMemoryPanelLayout.createSequentialGroup().addContainerGap()
                                    .addGroup(
                                            jMemoryPanelLayout.createParallelGroup().addGroup(jMemoryPanelLayout
                                                    .createSequentialGroup().addGroup(jMemoryPanelLayout
                                                            .createParallelGroup().addGroup(
                                                                    GroupLayout.Alignment.LEADING,
                                                                    jMemoryPanelLayout.createSequentialGroup()
                                                                            .addComponent(getJLabel3(),
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    70,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addComponent(getJSearchTextField(),
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    151,
                                                                                    GroupLayout.PREFERRED_SIZE))
                                                            .addGroup(GroupLayout.Alignment.LEADING,
                                                                    jMemoryPanelLayout.createSequentialGroup()
                                                                            .addComponent(getJLabel2(),
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    96,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addGap(125))
                                                            .addGroup(
                                                                    GroupLayout.Alignment.LEADING,
                                                                    jMemoryPanelLayout
                                                                            .createSequentialGroup()
                                                                            .addComponent(
                                                                                    getJPanel1(),
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    182,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addGap(39))
                                                            .addGroup(jMemoryPanelLayout.createSequentialGroup()
                                                                    .addPreferredGap(getJLabel2(), getJLabel4(),
                                                                            LayoutStyle.ComponentPlacement.INDENT)
                                                                    .addGroup(jMemoryPanelLayout
                                                                            .createParallelGroup()
                                                                            .addComponent(getJLabel4(),
                                                                                    GroupLayout.Alignment.LEADING,
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    160,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addComponent(
                                                                                    getJLabel5(),
                                                                                    GroupLayout.Alignment.LEADING,
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    160,
                                                                                    GroupLayout.PREFERRED_SIZE))
                                                                    .addGap(49)))
                                                    .addGroup(jMemoryPanelLayout.createParallelGroup()
                                                            .addComponent(getJHostestAddressScrollPane(),
                                                                    GroupLayout.Alignment.LEADING, 0, 498,
                                                                    Short.MAX_VALUE)
                                                            .addGroup(GroupLayout.Alignment.LEADING,
                                                                    jMemoryPanelLayout.createSequentialGroup()
                                                                            .addGroup(jMemoryPanelLayout
                                                                                    .createParallelGroup()
                                                                                    .addGroup(
                                                                                            GroupLayout.Alignment.LEADING,
                                                                                            jMemoryPanelLayout
                                                                                                    .createSequentialGroup()
                                                                                                    .addPreferredGap(
                                                                                                            getJLabel1(),
                                                                                                            getJLabel4x(),
                                                                                                            LayoutStyle.ComponentPlacement.INDENT)
                                                                                                    .addComponent(
                                                                                                            getJLabel4x(),
                                                                                                            GroupLayout.PREFERRED_SIZE,
                                                                                                            GroupLayout.PREFERRED_SIZE,
                                                                                                            GroupLayout.PREFERRED_SIZE)
                                                                                                    .addPreferredGap(
                                                                                                            LayoutStyle.ComponentPlacement.RELATED)
                                                                                                    .addComponent(
                                                                                                            getJFromComboBox(),
                                                                                                            GroupLayout.PREFERRED_SIZE,
                                                                                                            139,
                                                                                                            GroupLayout.PREFERRED_SIZE))
                                                                                    .addGroup(
                                                                                            GroupLayout.Alignment.LEADING,
                                                                                            jMemoryPanelLayout
                                                                                                    .createSequentialGroup()
                                                                                                    .addComponent(
                                                                                                            getJLabel1(),
                                                                                                            GroupLayout.PREFERRED_SIZE,
                                                                                                            112,
                                                                                                            GroupLayout.PREFERRED_SIZE)
                                                                                                    .addGap(80)))
                                                                            .addComponent(
                                                                                    getJLabel6(),
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    21,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addComponent(getJToComboBox(),
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    120,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addPreferredGap(
                                                                                    LayoutStyle.ComponentPlacement.RELATED,
                                                                                    0,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addComponent(getJLabel5x(),
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    69,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addComponent(
                                                                                    getJBlockSizeComboBox(),
                                                                                    GroupLayout.PREFERRED_SIZE,
                                                                                    75,
                                                                                    GroupLayout.PREFERRED_SIZE)
                                                                            .addGap(0, 9, Short.MAX_VALUE))))
                                                    .addComponent(getJTabbedPane2(),
                                                            GroupLayout.Alignment.LEADING, 0, 719,
                                                            Short.MAX_VALUE))
                                    .addContainerGap());
                    jMemoryPanelLayout.linkSize(SwingConstants.HORIZONTAL,
                            new Component[] { getJFromComboBox(), getJToComboBox() });
                }
            }
        }
    } catch (Exception e) {
        e.printStackTrace();
    }

    // ToolTipManager.sharedInstance().setInitialDelay(0);
}

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

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

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

    setClosable(true);//  www.  ja  v a 2 s .  c  om
    setForeground(java.awt.Color.white);
    setIconifiable(true);
    setTitle("Agregar Empleado");
    setMaximumSize(new java.awt.Dimension(570, 438));
    setMinimumSize(new java.awt.Dimension(570, 438));
    setPreferredSize(new java.awt.Dimension(570, 438));
    setRequestFocusEnabled(false);

    panel_titulo.setBackground(new java.awt.Color(119, 41, 83));
    panel_titulo.setPreferredSize(new java.awt.Dimension(534, 47));

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

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

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

    panel_contenido.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(119, 41, 83)));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    panel_contenidoLayout.setVerticalGroup(panel_contenidoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panel_contenidoLayout.createSequentialGroup().addContainerGap()
                    .addGroup(panel_contenidoLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelCedula).addComponent(labelNivel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(panel_contenidoLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(cedula).addComponent(labelNivel1,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(panel_contenidoLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(labelNombre).addComponent(labelApellido))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(panel_contenidoLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(apellido, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(labelDireccion)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(direccion, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(panel_contenidoLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panel_contenidoLayout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(panel_contenidoLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(labelEmail).addComponent(labelTelefono))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(panel_contenidoLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(telefono, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(email, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addContainerGap(66, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel_contenidoLayout
                                    .createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(panel_contenidoLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(guardar).addComponent(cancelar))
                                    .addContainerGap()))));

    panelPie.setBackground(new java.awt.Color(119, 41, 83));
    panelPie.setPreferredSize(new java.awt.Dimension(534, 47));

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

    javax.swing.GroupLayout panelPieLayout = new javax.swing.GroupLayout(panelPie);
    panelPie.setLayout(panelPieLayout);
    panelPieLayout
            .setHorizontalGroup(panelPieLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelError, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    panelPieLayout
            .setVerticalGroup(panelPieLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelError, javax.swing.GroupLayout.DEFAULT_SIZE, 47, Short.MAX_VALUE));

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

    pack();
}

From source file:SuitaDetails.java

private void initGlobal() {
    suiteoptions = new JPanel();
    suiteoptions.setBackground(Color.WHITE);
    JLabel suite = new JLabel("Suite name: ");
    tsuite = new JTextField();
    ep = new JLabel("Run on SUT:");
    combo = new JList();
    suitelib = new JButton("Libraries");
    panicdetect = new JCheckBox("Panic Detect");
    panicdetect.setBackground(Color.WHITE);

    JScrollPane scroll = new JScrollPane();
    scroll.setViewportView(combo);/*w  w w  .  jav a  2  s  .  c  om*/
    GroupLayout layout = new GroupLayout(suiteoptions);
    suiteoptions.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(panicdetect)
                    .addComponent(suitelib, GroupLayout.PREFERRED_SIZE, 85,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(ep).addComponent(suite))
                    .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(tsuite)
                            .addComponent(scroll, GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout
                    .createSequentialGroup().addContainerGap()
                    .addGroup(layout
                            .createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(suite)
                            .addComponent(tsuite, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                                    GroupLayout.PREFERRED_SIZE))
                    .addGap(10, 10, 10)
                    .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(scroll, GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)
                                    .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(panicdetect)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(suitelib))
                            .addComponent(ep))
                    .addContainerGap()));
    tcdelay = new JLabel("TC delay");
    savedb = new JCheckBox("DB autosave");
    ttcdelay = new JTextField();
    JButton globallib = new JButton("Libraries");
    savedb.setBackground(Color.WHITE);
    stoponfail = new JCheckBox("Stop on fail");
    stoponfail.setBackground(Color.WHITE);
    JLabel prescript = new JLabel();
    JLabel postscript = new JLabel();
    prestoponfail = new JCheckBox("Stop on fail");
    prestoponfail.setBackground(Color.WHITE);
    tprescript = new JTextField();
    tpostscript = new JTextField();
    browse1 = new JButton("...");
    browse2 = new JButton("...");
    prescript.setText("Pre execution script:");
    postscript.setText("Post execution script:");

    globallib.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent ev) {
            showLib();
        }
    });

    suitelib.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent ev) {
            showSuiteLib();
        }
    });

    browse1.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            Container c;
            if (RunnerRepository.container != null)
                c = RunnerRepository.container.getParent();
            else
                c = RunnerRepository.window;
            try {
                new MySftpBrowser(RunnerRepository.host, RunnerRepository.user, RunnerRepository.password,
                        tprescript, c, false);
            } catch (Exception e) {
                System.out.println("There was a problem in opening sftp browser!");
                e.printStackTrace();
            }
        }
    });

    browse2.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            Container c;
            if (RunnerRepository.container != null)
                c = RunnerRepository.container.getParent();
            else
                c = RunnerRepository.window;
            try {
                new MySftpBrowser(RunnerRepository.host, RunnerRepository.user, RunnerRepository.password,
                        tpostscript, c, false);
            } catch (Exception e) {
                System.out.println("There was a problem in opening sftp browser!");
                e.printStackTrace();
            }
        }
    });

    panicdetect.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            parent.setPanicdetect(panicdetect.isSelected());
        }
    });

    layout = new GroupLayout(global);
    global.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout
            .createSequentialGroup()
            .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout
                    .createSequentialGroup().addContainerGap()
                    .addComponent(stoponfail, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(savedb, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(tcdelay)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ttcdelay, GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE).addGap(12, 12, 12)
                    .addComponent(globallib))
                    .addGroup(layout.createSequentialGroup().addGap(10, 10, 10)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addComponent(prescript).addGap(20,
                                            20, 20))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                            layout.createSequentialGroup().addComponent(postscript).addGap(18,
                                                    18, 18)))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(tpostscript).addComponent(tprescript))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addComponent(browse1)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(prestoponfail))
                                    .addComponent(browse2))))
            .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout
            .createSequentialGroup().addGap(12, 12, 12)
            .addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
                    .addComponent(stoponfail, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)
                    .addComponent(savedb, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addComponent(tcdelay)
                    .addComponent(ttcdelay, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addComponent(globallib))
            .addGap(11, 11, 11)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(prescript)
                    .addComponent(tprescript, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(browse1).addComponent(prestoponfail))
            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tpostscript, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(browse2).addComponent(postscript))
            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    layout.linkSize(SwingConstants.VERTICAL, new Component[] { browse1, tprescript });

    layout.linkSize(SwingConstants.VERTICAL, new Component[] { browse2, tpostscript });
}

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

    _FileChooser_IoFile = new javax.swing.JFileChooser();
    _ComboBox_DisplayPanel = new javax.swing.JComboBox();
    _ScrollPane_VariableNames = new javax.swing.JScrollPane();
    _List_WidgetVars = new javax.swing.JList();
    _Label_VarNames = new javax.swing.JLabel();
    _Button_LoadXls = new javax.swing.JButton();
    _Label_Loaded = new javax.swing.JLabel();
    _Panel_WidgetParams = new javax.swing.JPanel();
    _Label_WidgetParams = new javax.swing.JLabel();
    _Label_WigetParam_yPos = new javax.swing.JLabel();
    _FTF_WigetParam_xPos = new javax.swing.JFormattedTextField();
    _FTF_WigetParam_yPos = new javax.swing.JFormattedTextField();
    _Label_WigetParam_xPos = new javax.swing.JLabel();
    _FTF_WigetParam_xPosPer = new javax.swing.JFormattedTextField();
    _Label_WigetParam_xPos1 = new javax.swing.JLabel();
    _Label_WigetParam_yPos1 = new javax.swing.JLabel();
    _FTF_WigetParam_yPosPer = new javax.swing.JFormattedTextField();
    _Button_GenerateWidgetLink = new javax.swing.JButton();
    _ScrollPane_Log = new javax.swing.JScrollPane();
    _TextArea_Log = new javax.swing.JTextArea();
    _ScrollPane_WidgetSettings = new javax.swing.JScrollPane();
    _Panel_WidgetSettings = new javax.swing.JPanel();
    _Button_LoadDefaults = new javax.swing.JButton();
    _Button_LoadDefaults1 = new javax.swing.JButton();
    _ScrollPane_WidgetNames = new javax.swing.JScrollPane();
    _List_WidgetCodeList = new javax.swing.JList();
    _Label_Widget = new javax.swing.JLabel();
    _Button_widgetPositions = new javax.swing.JButton();
    _ComboBox_Subgroup = new javax.swing.JComboBox();
    _ScrollPane_MasterMap = new javax.swing.JScrollPane();
    _List_MasterMapVariables = new javax.swing.JList();
    _Label_VarsOnPanel = new javax.swing.JLabel();
    _Button_ClearSelection = new javax.swing.JButton();
    _Button_CreateImports = new javax.swing.JButton();
    _Button_ClearLinks = new javax.swing.JButton();
    _ScrollPane_Tree = new javax.swing.JScrollPane();
    _JTree_WidgetLinks = new javax.swing.JTree();
    _Panel_LinkPanel = new javax.swing.JPanel();
    _Button_GenerateLinks = new javax.swing.JButton();
    _ComboBox_Panels = new javax.swing.JComboBox();
    _FTF_PanelID = new javax.swing.JFormattedTextField();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    _TF_PanelName = new javax.swing.JTextField();
    _Button_Save = new javax.swing.JButton();
    _FTF_XPOS = new javax.swing.JFormattedTextField();
    jLabel5 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    _FTF_YPOS = new javax.swing.JFormattedTextField();
    _Button_ClearCurrent = new javax.swing.JButton();
    _Button_ClearAll = new javax.swing.JButton();
    _Button_AddCurrent = new javax.swing.JButton();
    _Button_AddAll = new javax.swing.JButton();

    _FileChooser_IoFile.setApproveButtonText("Open");
    _FileChooser_IoFile.setApproveButtonToolTipText("Open a xls file");
    _FileChooser_IoFile.setCurrentDirectory(
            new java.io.File("C:\\Users\\EricGummerson\\Documents\\Background Creator Files"));
    _FileChooser_IoFile.setDialogTitle("Open a XLS File");
    _FileChooser_IoFile.setFileFilter(new javax.swing.filechooser.FileNameExtensionFilter("XLS files", "xls"));

    setMinimumSize(new java.awt.Dimension(1031, 680));
    setPreferredSize(new java.awt.Dimension(1031, 680));

    _ComboBox_DisplayPanel.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _ComboBox_DisplayPanel.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Main" }));
    _ComboBox_DisplayPanel.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _ComboBox_DisplayPanelActionPerformed(evt);
        }
    });

    _List_WidgetVars.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _List_WidgetVars.setModel(listModelWidgetsVars);
    _List_WidgetVars.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    _List_WidgetVars.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            _List_WidgetVarsValueChanged(evt);
        }
    });
    _ScrollPane_VariableNames.setViewportView(_List_WidgetVars);

    _Label_VarNames.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    _Label_VarNames.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    _Label_VarNames.setText("Widget Vars");

    _Button_LoadXls.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_LoadXls.setText("Load Export File (.xls)");
    _Button_LoadXls.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_LoadXlsActionPerformed(evt);
        }
    });

    _Label_Loaded.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Label_Loaded.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    _Label_Loaded.setText("XLS File Not loaded");

    _Label_WidgetParams.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    _Label_WidgetParams.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    _Label_WidgetParams.setText("Widget Parameters");

    _Label_WigetParam_yPos.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    _Label_WigetParam_yPos.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    _Label_WigetParam_yPos.setText("Positon Y");

    _FTF_WigetParam_xPos.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
    _FTF_WigetParam_xPos.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    _FTF_WigetParam_xPos.setText("10");

    _FTF_WigetParam_yPos.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
    _FTF_WigetParam_yPos.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    _FTF_WigetParam_yPos.setText("10");

    _Label_WigetParam_xPos.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    _Label_WigetParam_xPos.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    _Label_WigetParam_xPos.setText("Positon X");

    _FTF_WigetParam_xPosPer.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
    _FTF_WigetParam_xPosPer.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    _FTF_WigetParam_xPosPer.setText("0");

    _Label_WigetParam_xPos1.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    _Label_WigetParam_xPos1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    _Label_WigetParam_xPos1.setText("Percentage X");

    _Label_WigetParam_yPos1.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    _Label_WigetParam_yPos1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    _Label_WigetParam_yPos1.setText("Percentage Y");

    _FTF_WigetParam_yPosPer.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
    _FTF_WigetParam_yPosPer.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    _FTF_WigetParam_yPosPer.setText("0");

    _Button_GenerateWidgetLink.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    _Button_GenerateWidgetLink.setText("Generate");
    _Button_GenerateWidgetLink.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_GenerateWidgetLinkActionPerformed(evt);
        }
    });

    _TextArea_Log.setEditable(false);
    _TextArea_Log.setColumns(20);
    _TextArea_Log.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    _TextArea_Log.setLineWrap(true);
    _TextArea_Log.setRows(5);
    _ScrollPane_Log.setViewportView(_TextArea_Log);

    _ScrollPane_WidgetSettings.setPreferredSize(new java.awt.Dimension(232, 265));

    javax.swing.GroupLayout _Panel_WidgetSettingsLayout = new javax.swing.GroupLayout(_Panel_WidgetSettings);
    _Panel_WidgetSettings.setLayout(_Panel_WidgetSettingsLayout);
    _Panel_WidgetSettingsLayout.setHorizontalGroup(_Panel_WidgetSettingsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 493, Short.MAX_VALUE));
    _Panel_WidgetSettingsLayout.setVerticalGroup(_Panel_WidgetSettingsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 362, Short.MAX_VALUE));

    _ScrollPane_WidgetSettings.setViewportView(_Panel_WidgetSettings);

    _Button_LoadDefaults.setFont(new java.awt.Font("Arial", 0, 8)); // NOI18N
    _Button_LoadDefaults.setText("Load Defaults");
    _Button_LoadDefaults.setToolTipText("Loads the default widget panel links from the /Home/ Directory");
    _Button_LoadDefaults.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_LoadDefaultsActionPerformed(evt);
        }
    });

    _Button_LoadDefaults1.setFont(new java.awt.Font("Arial", 0, 8)); // NOI18N
    _Button_LoadDefaults1.setText("Save Defaults");
    _Button_LoadDefaults1.setToolTipText("Save the current set of widget links to the /Home/ directory");
    _Button_LoadDefaults1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_LoadDefaults1ActionPerformed(evt);
        }
    });

    _List_WidgetCodeList.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _List_WidgetCodeList.setModel(listModelCodeWidgets);
    _List_WidgetCodeList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    _List_WidgetCodeList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            _List_WidgetCodeListValueChanged(evt);
        }
    });
    _ScrollPane_WidgetNames.setViewportView(_List_WidgetCodeList);

    _Label_Widget.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    _Label_Widget.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    _Label_Widget.setText("Widget Code");

    javax.swing.GroupLayout _Panel_WidgetParamsLayout = new javax.swing.GroupLayout(_Panel_WidgetParams);
    _Panel_WidgetParams.setLayout(_Panel_WidgetParamsLayout);
    _Panel_WidgetParamsLayout.setHorizontalGroup(_Panel_WidgetParamsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, _Panel_WidgetParamsLayout
                    .createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(_Panel_WidgetParamsLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(_ScrollPane_WidgetSettings,
                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                            .addComponent(_ScrollPane_WidgetNames, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                            .addComponent(_Label_Widget, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(_Label_WidgetParams, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(_Panel_WidgetParamsLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(_Panel_WidgetParamsLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                            _Panel_WidgetParamsLayout.createSequentialGroup()
                                                    .addComponent(_Button_GenerateWidgetLink,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 124,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(_Panel_WidgetParamsLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(_Button_LoadDefaults,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 105,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(_Button_LoadDefaults1,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 106,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                            _Panel_WidgetParamsLayout.createSequentialGroup()
                                                    .addGroup(_Panel_WidgetParamsLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(_Label_WigetParam_yPos,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 109,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(_Label_WigetParam_xPos,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 109,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addGap(18, 18, 18)
                                                    .addGroup(_Panel_WidgetParamsLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(_FTF_WigetParam_xPos)
                                                            .addComponent(_FTF_WigetParam_yPos,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 100,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                            _Panel_WidgetParamsLayout.createSequentialGroup()
                                                    .addGroup(_Panel_WidgetParamsLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(_Label_WigetParam_xPos1,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 109,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(_Label_WigetParam_yPos1,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 109,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addGap(18, 18, 18)
                                                    .addGroup(_Panel_WidgetParamsLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(_FTF_WigetParam_yPosPer,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 100,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(_FTF_WigetParam_xPosPer,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 109,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addComponent(_ScrollPane_Log, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 236,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap()));

    _Panel_WidgetParamsLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { _FTF_WigetParam_xPos, _FTF_WigetParam_yPos, _FTF_WigetParam_yPosPer,
                    _Label_WigetParam_xPos, _Label_WigetParam_xPos1, _Label_WigetParam_yPos,
                    _Label_WigetParam_yPos1 });

    _Panel_WidgetParamsLayout.setVerticalGroup(_Panel_WidgetParamsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(_Panel_WidgetParamsLayout.createSequentialGroup().addContainerGap()
                    .addGroup(_Panel_WidgetParamsLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(_Panel_WidgetParamsLayout.createSequentialGroup()
                                    .addComponent(_Label_Widget, javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(_ScrollPane_WidgetNames))
                            .addGroup(_Panel_WidgetParamsLayout.createSequentialGroup()
                                    .addGroup(_Panel_WidgetParamsLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(_FTF_WigetParam_xPos,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(_Panel_WidgetParamsLayout.createSequentialGroup()
                                                    .addComponent(_Label_WigetParam_xPos,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(1, 1, 1)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(_Panel_WidgetParamsLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(_FTF_WigetParam_yPos,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(_Label_WigetParam_yPos,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(_Panel_WidgetParamsLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(_Label_WigetParam_xPos1,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(_FTF_WigetParam_xPosPer,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(_Panel_WidgetParamsLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(_FTF_WigetParam_yPosPer,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(_Label_WigetParam_yPos1,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(_Panel_WidgetParamsLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addGroup(_Panel_WidgetParamsLayout.createSequentialGroup()
                                                    .addComponent(_Button_LoadDefaults,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 31,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(_Button_LoadDefaults1,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(_Button_GenerateWidgetLink,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 68,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(_Panel_WidgetParamsLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(_Panel_WidgetParamsLayout.createSequentialGroup()
                                    .addComponent(_Label_WidgetParams, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            27, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(_ScrollPane_WidgetSettings,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                            .addComponent(_ScrollPane_Log, javax.swing.GroupLayout.PREFERRED_SIZE, 225,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    _Panel_WidgetParamsLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { _Button_LoadDefaults, _Button_LoadDefaults1 });

    _Panel_WidgetParamsLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { _FTF_WigetParam_xPos, _FTF_WigetParam_xPosPer, _FTF_WigetParam_yPos,
                    _FTF_WigetParam_yPosPer, _Label_WigetParam_xPos, _Label_WigetParam_xPos1,
                    _Label_WigetParam_yPos, _Label_WigetParam_yPos1 });

    _Button_widgetPositions.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_widgetPositions.setText("Get Positions");
    _Button_widgetPositions.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_widgetPositionsActionPerformed(evt);
        }
    });

    _ComboBox_Subgroup.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _ComboBox_Subgroup.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Store" }));
    _ComboBox_Subgroup.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _ComboBox_SubgroupActionPerformed(evt);
        }
    });

    _List_MasterMapVariables.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _List_MasterMapVariables.setModel(listModelMasterMap);
    _ScrollPane_MasterMap.setViewportView(_List_MasterMapVariables);

    _Label_VarsOnPanel.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
    _Label_VarsOnPanel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    _Label_VarsOnPanel.setText("Variables on Panel");

    _Button_ClearSelection.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_ClearSelection.setText("Clear Selection");
    _Button_ClearSelection.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_ClearSelectionActionPerformed(evt);
        }
    });

    _Button_CreateImports.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_CreateImports.setText("Create Imports");
    _Button_CreateImports.setEnabled(false);
    _Button_CreateImports.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_CreateImportsActionPerformed(evt);
        }
    });

    _Button_ClearLinks.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_ClearLinks.setText("Delete All Widgets");
    _Button_ClearLinks.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_ClearLinksActionPerformed(evt);
        }
    });

    _JTree_WidgetLinks.setModel(treeModel);
    _JTree_WidgetLinks.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
        public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {
            _JTree_WidgetLinksValueChanged(evt);
        }
    });
    _ScrollPane_Tree.setViewportView(_JTree_WidgetLinks);

    _Button_GenerateLinks.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_GenerateLinks.setText("Create Links");
    _Button_GenerateLinks.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_GenerateLinksActionPerformed(evt);
        }
    });

    _ComboBox_Panels.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _ComboBox_Panels.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Main" }));
    _ComboBox_Panels.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _ComboBox_PanelsActionPerformed(evt);
        }
    });

    _FTF_PanelID.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
    _FTF_PanelID.setHorizontalAlignment(javax.swing.JTextField.CENTER);

    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel2.setText("Panel Names");

    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel3.setText("Panel ID");

    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel4.setText("Panel Name");

    _TF_PanelName.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _TF_PanelName.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    _TF_PanelName.setText("Main");

    _Button_Save.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_Save.setText("Save & Next");
    _Button_Save.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_SaveActionPerformed(evt);
        }
    });

    _FTF_XPOS.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
    _FTF_XPOS.setHorizontalAlignment(javax.swing.JTextField.CENTER);

    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel5.setText("X Position");

    jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel7.setText("Y Position");

    _FTF_YPOS.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
    _FTF_YPOS.setHorizontalAlignment(javax.swing.JTextField.CENTER);

    javax.swing.GroupLayout _Panel_LinkPanelLayout = new javax.swing.GroupLayout(_Panel_LinkPanel);
    _Panel_LinkPanel.setLayout(_Panel_LinkPanelLayout);
    _Panel_LinkPanelLayout.setHorizontalGroup(_Panel_LinkPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(_Panel_LinkPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(_Panel_LinkPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 152,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(_ComboBox_Panels, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(_Panel_LinkPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(_Panel_LinkPanelLayout.createSequentialGroup()
                                    .addGroup(_Panel_LinkPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 64,
                                                    Short.MAX_VALUE)
                                            .addComponent(_FTF_PanelID))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(_Panel_LinkPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(_TF_PanelName)
                                            .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 113,
                                                    Short.MAX_VALUE)))
                            .addComponent(_Button_Save, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(_Panel_LinkPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(_Panel_LinkPanelLayout.createSequentialGroup()
                                    .addGroup(_Panel_LinkPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 51,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(_FTF_XPOS, javax.swing.GroupLayout.PREFERRED_SIZE, 51,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(_Panel_LinkPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(_FTF_YPOS, javax.swing.GroupLayout.PREFERRED_SIZE, 59,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 59,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(_Button_GenerateLinks, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    _Panel_LinkPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { _FTF_XPOS, _FTF_YPOS });

    _Panel_LinkPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jLabel5, jLabel7 });

    _Panel_LinkPanelLayout.setVerticalGroup(_Panel_LinkPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(_Panel_LinkPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(_Panel_LinkPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(_Panel_LinkPanelLayout.createSequentialGroup()
                                    .addGroup(_Panel_LinkPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(7, 7, 7)
                                    .addGroup(_Panel_LinkPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(_ComboBox_Panels,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 44, Short.MAX_VALUE)
                                            .addComponent(_FTF_PanelID).addComponent(_TF_PanelName)))
                            .addGroup(_Panel_LinkPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(_Panel_LinkPanelLayout.createSequentialGroup().addGap(32, 32, 32)
                                    .addGroup(_Panel_LinkPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(_FTF_YPOS, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(_FTF_XPOS, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(_Panel_LinkPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(_Button_Save, javax.swing.GroupLayout.DEFAULT_SIZE, 31,
                                    Short.MAX_VALUE)
                            .addComponent(_Button_GenerateLinks, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    _Panel_LinkPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { jLabel2, jLabel3, jLabel4, jLabel5, jLabel7 });

    _Button_ClearCurrent.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_ClearCurrent.setText("Clear Main Panel");
    _Button_ClearCurrent.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_ClearCurrentActionPerformed(evt);
        }
    });

    _Button_ClearAll.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_ClearAll.setText("Clear All Panels");
    _Button_ClearAll.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_ClearAllActionPerformed(evt);
        }
    });

    _Button_AddCurrent.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_AddCurrent.setText("Add Widgets Main Panel");
    _Button_AddCurrent.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_AddCurrentActionPerformed(evt);
        }
    });

    _Button_AddAll.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    _Button_AddAll.setText("Add Widgets All");
    _Button_AddAll.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            _Button_AddAllActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(_Panel_WidgetParams, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addComponent(_Label_VarNames, javax.swing.GroupLayout.PREFERRED_SIZE, 203,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(_Button_ClearSelection,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 126,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(_ComboBox_Subgroup, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            127, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(_ScrollPane_VariableNames,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 465,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(_Button_ClearCurrent, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(_Button_ClearAll, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(_Button_AddCurrent, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(_Button_AddAll, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addGap(28, 28, 28)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(layout.createSequentialGroup()
                                                    .addComponent(_Button_CreateImports,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 138,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(_Button_ClearLinks,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 138,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(layout.createSequentialGroup().addGap(60, 60, 60)
                                                    .addGroup(layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(_Label_Loaded,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 169,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(_Button_LoadXls,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 169,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                                    .addGap(29, 29, 29))
                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(_ComboBox_DisplayPanel,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 128,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(_Button_widgetPositions,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 163,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(_Label_VarsOnPanel,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 180,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(_ScrollPane_Tree).addComponent(_ScrollPane_MasterMap)
                            .addComponent(_Panel_LinkPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(27, 27, 27)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup().addGap(11, 11, 11)
                            .addComponent(_Label_VarNames, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(5, 5, 5).addComponent(_ScrollPane_VariableNames,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 134,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addComponent(_Label_VarsOnPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            25, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(7, 7, 7))
                            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(_Button_ClearSelection, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            29, Short.MAX_VALUE)
                                    .addComponent(_Button_widgetPositions, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                            .addComponent(_ScrollPane_MasterMap, javax.swing.GroupLayout.PREFERRED_SIZE, 134,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(6, 6, 6)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(_ComboBox_DisplayPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(_ComboBox_Subgroup, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(_ScrollPane_Tree, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(_Panel_LinkPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(_Button_ClearCurrent,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)
                                            .addComponent(_Button_LoadXls, 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.BASELINE)
                                            .addComponent(_Button_ClearAll).addComponent(_Label_Loaded,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(layout.createSequentialGroup()
                                                    .addComponent(_Button_AddCurrent,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 21,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE)
                                                    .addComponent(_Button_AddAll).addGap(55, 55, 55))
                                            .addGroup(layout.createSequentialGroup()
                                                    .addGroup(layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.BASELINE)
                                                            .addComponent(_Button_CreateImports,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 39,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(_Button_ClearLinks,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 39,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addGap(0, 0, Short.MAX_VALUE))))
                            .addComponent(_Panel_WidgetParams, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));

    layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { _Button_AddAll,
            _Button_AddCurrent, _Button_ClearAll, _Button_ClearCurrent });

}

From source file:it.isislab.dmason.util.SystemManagement.Master.thrower.DMasonMaster.java

private void initComponents() {
    menuBar1 = new JMenuBar();
    jMenuFile = new JMenu();
    //menuItemOpen = new JMenuItem();
    menuItemExit = new JMenuItem();
    jMenuAbout = new JMenu();
    menuItemInfo = new JMenuItem();
    menuItemHelp = new JMenuItem();
    panelMain = new JPanel();
    jPanelContainerConnection = new JPanel();
    jPanelConnection = new JPanel();
    jLabelAddress = new JLabel();
    textFieldAddress = new JTextField();
    jLabelPort = new JLabel();
    textFieldPort = new JTextField();
    refreshServerLabel = new JLabel();
    buttonRefreshServerLabel = new JButton();
    jPanelContainerSettings = new JPanel();
    jPanelSetDistribution = new JPanel();
    jPanelSettings = new JPanel();
    jLabelHorizontal = new JLabel();
    jLabelSquare = new JLabel();
    jLabelMaxDistance = new JLabel();
    jLabelWidth = new JLabel();
    jLabelInsertSteps = new JLabel();
    textFieldMaxDistance = new JTextField();
    textFieldWidth = new JTextField();
    jLabelHeight = new JLabel();
    textFieldHeight = new JTextField();
    jLabelAgents = new JLabel();
    textFieldAgents = new JTextField();
    textFieldColumns = new JTextField();
    textFieldRows = new JTextField();
    textFieldSteps = new JTextField();
    jLabelChooseSimulation = new JLabel();
    jComboBoxChooseSimulation = new JComboBox();
    jComboBoxNumRegionXPeer = new JComboBox();
    jPanelContainerTabbedPane = new JPanel();
    tabbedPane2 = new JTabbedPane();
    jPanelDefault = new JPanel();
    jPanelSimulation = new ModelPanel(tabbedPane2);
    labelSimulationConfigSet = new JLabel();
    labelRegionsResume = new JLabel();
    labelNumOfPeerResume = new JLabel();
    labelRegForPeerResume = new JLabel();
    labelWriteReg = new JLabel();
    labelWriteNumOfPeer = new JLabel();
    labelWriteRegForPeer = new JLabel();
    labelWidthRegion = new JLabel();
    labelheightRegion = new JLabel();
    labelDistrMode = new JLabel();
    labelWriteRegWidth = new JLabel();
    labelWriteRegHeight = new JLabel();
    labelWriteDistrMode = new JLabel();
    graphicONcheckBox2 = new JCheckBox();
    jPanelSetButton = new JPanel();
    buttonSetConfigDefault = new JButton();
    jPanelAdvanced = new JPanel();
    jPanelAdvancedMain = new JPanel();
    peerInfoStatus = new JDesktopPane();
    internalFrame1 = new JInternalFrame();
    architectureLabel = new JTextArea();
    architectureLabel.setBackground(Color.BLACK);
    architectureLabel.setForeground(Color.GREEN);
    architectureLabel.setEditable(false);
    advancedConfirmBut = new JLabel();
    graphicONcheckBox = new JCheckBox();
    jCheckBoxLoadBalancing = new JCheckBox("Load Balancing", false);
    jCheckBoxLoadBalancing.setEnabled(true);
    jCheckBoxLoadBalancing.setSelected(false);

    jCheckBoxMPI = new JCheckBox("Enable MPI", false);
    jCheckBoxMPI.setEnabled(true);/*from  w  ww .  j a v  a  2s .  c  o  m*/
    jCheckBoxMPI.setSelected(false);

    scrollPaneTree = new JScrollPane();
    tree1 = new JTree();
    buttonSetConfigAdvanced = new JButton();
    jLabelPlayButton = new JLabel();
    jLabelPauseButton = new JLabel();
    jPanelNumStep = new JPanel();
    jLabelStep = new JLabel();
    jLabelStep.setHorizontalAlignment(SwingConstants.LEFT);
    jLabelStopButton = new JLabel();
    scrollPane1 = new JScrollPane();
    peerInfoStatus1 = new JDesktopPane();
    root = new DefaultMutableTreeNode("Simulation");
    ButtonGroup b = new ButtonGroup();
    ip = textFieldAddress.getText();
    port = textFieldPort.getText();
    menuBar1 = new JMenuBar();
    jMenuFile = new JMenu();
    menuItemExit = new JMenuItem();
    menuNewSim = new JMenuItem();
    jMenuAbout = new JMenu();
    menuItemInfo = new JMenuItem();
    menuItemHelp = new JMenuItem();
    scrollPane3 = new JScrollPane();
    scrollPane4 = new JScrollPane();
    notifyArea = new JTextArea();
    panelConsole = new JPanel();
    buttonSetConfigDefault2 = new JButton();
    jPanelSetButton2 = new JPanel();
    graphicONcheckBox = new JCheckBox();
    graphicONcheckBox.setEnabled(false);
    graphicONcheckBox.addChangeListener(new ChangeListener() {

        @Override
        public void stateChanged(ChangeEvent e) {
            withGui = graphicONcheckBox.isSelected();
        }
    });

    jLabelChooseSimulation = new JLabel();
    jComboBoxChooseSimulation = new JComboBox();

    loadSimulation();

    selectedSimulation = ((SimComboEntry) jComboBoxChooseSimulation.getSelectedItem()).fullSimName;
    jPanelSimulation.updateHTML(selectedSimulation);
    jComboBoxChooseSimulation.addItemListener(new ItemListener() {

        @Override
        public void itemStateChanged(ItemEvent e) {
            // Prevent executing listener's actions two times
            if (e.getStateChange() != ItemEvent.SELECTED)
                return;
            selectedSimulation = ((SimComboEntry) jComboBoxChooseSimulation.getSelectedItem()).fullSimName;
            jPanelSimulation.updateHTML(selectedSimulation);
            isThin = isThinSimulation(selectedSimulation);
            jCheckBoxLoadBalancing.setSelected(false);
            jCheckBoxLoadBalancing.setEnabled(!isThin);
            initializeDefaultLabel();
        }
    });

    /*for(int i=2;i<100;i++)
       jComboRegions.addItem(i);*/

    buttonRefreshServerLabel.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent arg0) {
            connect();
        }
    });

    refreshServerLabel.addMouseListener(new MouseListener() {

        @Override
        public void mouseReleased(MouseEvent arg0) {
            if (starter.isConnected())
                starter.execute("restart");
            else
                JOptionPane.showMessageDialog(null, "Not connected to the Server!");
        }

        @Override
        public void mousePressed(MouseEvent arg0) {
        }

        @Override
        public void mouseExited(MouseEvent arg0) {
        }

        @Override
        public void mouseEntered(MouseEvent arg0) {
        }

        @Override
        public void mouseClicked(MouseEvent arg0) {
        }
    });

    jCheckBoxLoadBalancing.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent arg0) {
            if (!isHorizontal) {
                if (jCheckBoxLoadBalancing.isSelected())
                    labelWriteDistrMode.setText("SQUARE BALANCED MODE");
                else
                    labelWriteDistrMode.setText("SQUARE MODE");
            }

            if (isHorizontal) {
                if (jCheckBoxLoadBalancing.isSelected())
                    labelWriteDistrMode.setText("HORIZONTAL BALANCED MODE");
                else
                    labelWriteDistrMode.setText("HORIZONTAL MODE");
            }

        }
    });

    buttonSetConfigDefault2.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            if (initializeDefaultLabel())
                submitCustomizeMode();
            else
                JOptionPane.showMessageDialog(null, "To start a simulation must fill in all fields...!");
        }
    });

    buttonSetConfigDefault.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            if (initializeDefaultLabel())
                submitDefaultMode();
            else
                JOptionPane.showMessageDialog(null, "To start a simulation must fill in all fields...!");
        }
    });

    advancedConfirmBut.addMouseListener(new MouseListener() {

        @Override
        public void mouseReleased(MouseEvent arg0) {
            confirm();
            res -= (Integer) jComboBoxNumRegionXPeer.getSelectedItem();

            withGui = graphicONcheckBox.isSelected();

            jComboBoxNumRegionXPeer.removeAllItems();
            graphicONcheckBox.setSelected(false);
            for (int i = 1; i <= res; i++)
                jComboBoxNumRegionXPeer.addItem(i);

            JOptionPane.showMessageDialog(null, "Region assigned !");

        }

        @Override
        public void mousePressed(MouseEvent arg0) {
        }

        @Override
        public void mouseExited(MouseEvent arg0) {
        }

        @Override
        public void mouseEntered(MouseEvent arg0) {
        }

        @Override
        public void mouseClicked(MouseEvent arg0) {
        }
    });

    //======== this ========

    Container contentPane = getContentPane();

    //======== menuBar1 ========
    {
        {
            jMenuFile.setText("    File    ");

            menuNewSim.setText("New    ");
            menuNewSim.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent e) {
                    me.dispose();
                    me = null;
                    DMasonMaster p = new DMasonMaster();
                    p.setVisible(true);
                }
            });

            jMenuFile.add(menuNewSim);

            //---- menuItemExit ----
            menuItemExit.setText("Exit");
            menuItemExit.addActionListener(new ActionListener() {

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

            jMenuFile.add(menuItemExit);
        }
        menuBar1.add(jMenuFile);
        menuBar1.add(getJMenuSystem());

        //======== jMenuAbout ========
        {
            jMenuAbout.setText(" ?  ");

            //---- menuItemInfo ----
            menuItemInfo.setText("Info");
            menuItemInfo.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent e) {
                    JOptionPane.showMessageDialog(null, Release.PRODUCT_RELEASE, "Info", 1);

                }
            });

            jMenuAbout.add(menuItemInfo);

            //---- menuItenHelp ----
            menuItemHelp.setText("Help");
            menuItemHelp.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent arg0) {
                    try {
                        java.net.URI uri = new java.net.URI(
                                "http://isis.dia.unisa.it/projects/it.isislab.dmason/");
                        try {
                            java.awt.Desktop.getDesktop().browse(uri);
                        } catch (IOException e) {
                            e.printStackTrace();
                        }
                    } catch (URISyntaxException e) {
                        e.printStackTrace();
                    }

                }
            });

            jMenuAbout.add(menuItemHelp);

        }
        menuBar1.add(jMenuAbout);
    }

    setJMenuBar(menuBar1);

    //======== panelMain ========
    {

        //======== jPanelContainerConnection ========
        {

            //======== jPanelConnection ========
            {
                jPanelConnection.setBorder(new TitledBorder("Connection"));
                jPanelConnection.setPreferredSize(new Dimension(215, 125));

                //---- jLabelAddress ----
                jLabelAddress.setText("IP Address :");

                //---- textFieldAddress ----
                textFieldAddress.setText("127.0.0.1");

                //---- jLabelPort ----
                jLabelPort.setText("Port :");

                //---- textFieldPort ----
                textFieldPort.setText("61616");

                //---- refreshServerLabel ----

                refreshServerLabel.setIcon(new ImageIcon("resources/image/refresh.png"));

                //---- buttonRefreshServerLabel ----
                buttonRefreshServerLabel.setText("OK");

                JLabel lblStatus = new JLabel("Communication Server status :");

                lblStatusIcon = new JLabel("");
                lblStatusIcon.setIcon(new ImageIcon("resources/image/status-down.png"));

                buttonActiveMQRestart = new JButton("");
                buttonActiveMQRestart.setEnabled(false);
                buttonActiveMQRestart.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent arg0) {

                        notifyArea.append("ActiveMQ restarting...\n");
                        if (csManager.restartActiveMQ())
                            notifyArea.append("ActiveMQ restarted!\n");

                        checkCommunicationServerStatus();

                    }
                });
                buttonActiveMQRestart.setMinimumSize(new Dimension(24, 24));
                buttonActiveMQRestart.setMaximumSize(new Dimension(24, 24));
                buttonActiveMQRestart.setPreferredSize(new Dimension(24, 24));
                buttonActiveMQRestart.setIcon(new ImageIcon("resources/image/LH2 - Restart.png"));

                buttonActiveMQStart = new JButton("");
                buttonActiveMQStart.setEnabled(false);
                buttonActiveMQStart.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent arg0) {
                        notifyArea.append("ActiveMQ starting...\n");
                        if (csManager.startActiveMQ())
                            notifyArea.append("ActiveMQ started!\n");

                        checkCommunicationServerStatus();
                    }
                });
                buttonActiveMQStart.setPreferredSize(new Dimension(24, 24));
                buttonActiveMQStart.setMinimumSize(new Dimension(24, 24));
                buttonActiveMQStart.setMaximumSize(new Dimension(24, 24));
                buttonActiveMQStart.setIcon(new ImageIcon("resources/image/LH2 - Shutdown.png"));

                buttonActiveMQStop = new JButton("");
                buttonActiveMQStop.setEnabled(false);
                buttonActiveMQStop.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent arg0) {
                        notifyArea.append("ActiveMQ stopping...\n");
                        if (csManager.stopActiveMQ())
                            notifyArea.append("ActiveMQ stopped!\n");

                        checkCommunicationServerStatus();
                    }
                });
                buttonActiveMQStop.setPreferredSize(new Dimension(24, 24));
                buttonActiveMQStop.setMinimumSize(new Dimension(24, 24));
                buttonActiveMQStop.setMaximumSize(new Dimension(24, 24));
                buttonActiveMQStop.setIcon(new ImageIcon("resources/image/LH2 - Stop.png"));

                btnCheckPeers = new JButton("Check Peers");
                btnCheckPeers.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        try {
                            checkPeers();
                        } catch (Exception e1) {
                            // TODO Auto-generated catch block
                            e1.printStackTrace();
                        }
                    }
                });

                GroupLayout jPanelConnectionLayout = new GroupLayout(jPanelConnection);
                jPanelConnectionLayout.setHorizontalGroup(jPanelConnectionLayout
                        .createParallelGroup(Alignment.LEADING)
                        .addGroup(jPanelConnectionLayout.createSequentialGroup().addGroup(jPanelConnectionLayout
                                .createParallelGroup(Alignment.LEADING)
                                .addGroup(jPanelConnectionLayout.createSequentialGroup()
                                        .addGroup(jPanelConnectionLayout.createParallelGroup(Alignment.TRAILING)
                                                .addComponent(refreshServerLabel)
                                                .addGroup(jPanelConnectionLayout.createSequentialGroup()
                                                        .addComponent(buttonActiveMQStart,
                                                                GroupLayout.PREFERRED_SIZE,
                                                                GroupLayout.DEFAULT_SIZE,
                                                                GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(ComponentPlacement.RELATED)
                                                        .addComponent(buttonActiveMQRestart,
                                                                GroupLayout.PREFERRED_SIZE,
                                                                GroupLayout.DEFAULT_SIZE,
                                                                GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(ComponentPlacement.RELATED)
                                                        .addComponent(buttonActiveMQStop,
                                                                GroupLayout.PREFERRED_SIZE,
                                                                GroupLayout.DEFAULT_SIZE,
                                                                GroupLayout.PREFERRED_SIZE)
                                                        .addGap(111).addComponent(jLabelAddress).addGap(18)
                                                        .addComponent(textFieldAddress,
                                                                GroupLayout.PREFERRED_SIZE, 91,
                                                                GroupLayout.PREFERRED_SIZE)
                                                        .addGap(18).addComponent(jLabelPort).addGap(18)
                                                        .addComponent(textFieldPort, GroupLayout.PREFERRED_SIZE,
                                                                85, GroupLayout.PREFERRED_SIZE)
                                                        .addGap(46).addComponent(buttonRefreshServerLabel)))
                                        .addGap(51).addComponent(btnCheckPeers))
                                .addGroup(jPanelConnectionLayout.createSequentialGroup().addComponent(lblStatus)
                                        .addPreferredGap(ComponentPlacement.RELATED)
                                        .addComponent(lblStatusIcon)))
                                .addContainerGap(71, Short.MAX_VALUE)));
                jPanelConnectionLayout.setVerticalGroup(jPanelConnectionLayout
                        .createParallelGroup(Alignment.TRAILING)
                        .addGroup(jPanelConnectionLayout.createSequentialGroup().addGroup(jPanelConnectionLayout
                                .createParallelGroup(Alignment.LEADING)
                                .addGroup(jPanelConnectionLayout.createSequentialGroup()
                                        .addGroup(jPanelConnectionLayout.createParallelGroup(Alignment.LEADING)
                                                .addComponent(lblStatus).addComponent(lblStatusIcon))
                                        .addPreferredGap(ComponentPlacement.RELATED)
                                        .addGroup(jPanelConnectionLayout.createParallelGroup(Alignment.LEADING)
                                                .addComponent(buttonActiveMQRestart, GroupLayout.PREFERRED_SIZE,
                                                        GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                                .addComponent(buttonActiveMQStart, GroupLayout.PREFERRED_SIZE,
                                                        GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                                .addComponent(buttonActiveMQStop, GroupLayout.PREFERRED_SIZE,
                                                        GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(ComponentPlacement.RELATED, 1, Short.MAX_VALUE))
                                .addGroup(jPanelConnectionLayout.createSequentialGroup()
                                        .addContainerGap(18, Short.MAX_VALUE).addComponent(refreshServerLabel)
                                        .addPreferredGap(ComponentPlacement.RELATED)
                                        .addGroup(jPanelConnectionLayout.createParallelGroup(Alignment.BASELINE)
                                                .addComponent(buttonRefreshServerLabel).addComponent(jLabelPort)
                                                .addComponent(textFieldPort, GroupLayout.PREFERRED_SIZE, 22,
                                                        GroupLayout.PREFERRED_SIZE)
                                                .addComponent(jLabelAddress)
                                                .addComponent(textFieldAddress, GroupLayout.PREFERRED_SIZE, 22,
                                                        GroupLayout.PREFERRED_SIZE)
                                                .addComponent(btnCheckPeers))))
                                .addGap(10)));
                jPanelConnectionLayout.linkSize(SwingConstants.HORIZONTAL,
                        new Component[] { buttonActiveMQRestart, buttonActiveMQStart, buttonActiveMQStop });
                jPanelConnection.setLayout(jPanelConnectionLayout);
            }

            GroupLayout jPanelContainerConnectionLayout = new GroupLayout(jPanelContainerConnection);
            jPanelContainerConnection.setLayout(jPanelContainerConnectionLayout);
            jPanelContainerConnectionLayout
                    .setHorizontalGroup(jPanelContainerConnectionLayout.createParallelGroup()
                            .addGroup(jPanelContainerConnectionLayout
                                    .createSequentialGroup().addContainerGap().addComponent(jPanelConnection,
                                            GroupLayout.PREFERRED_SIZE, 829, GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap(153, Short.MAX_VALUE)));
            jPanelContainerConnectionLayout.setVerticalGroup(
                    jPanelContainerConnectionLayout.createParallelGroup().addComponent(jPanelConnection,
                            GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE));
        }

        //======== jPanelContainerSettings ========
        {

            GroupLayout jPanelContainerSettingsLayout = new GroupLayout(jPanelContainerSettings);
            jPanelContainerSettings.setLayout(jPanelContainerSettingsLayout);
            jPanelContainerSettingsLayout.setHorizontalGroup(
                    jPanelContainerSettingsLayout.createParallelGroup().addGap(0, 1, Short.MAX_VALUE));
            jPanelContainerSettingsLayout.setVerticalGroup(
                    jPanelContainerSettingsLayout.createParallelGroup().addGap(0, 481, Short.MAX_VALUE));
        }

        //======== jPanelSetDistribution ========
        {
            jPanelSetDistribution.setBorder(new TitledBorder("Settings"));

            //======== jPanelSettings ========
            {

                //jLabelHorizontal.setIcon(new ImageIcon("it.isislab.dmason/resources/image/hori.png")));

                //---- jLabelSquare ----
                //jLabelSquare.setIcon(new ImageIcon("it.isislab.dmason/resources/image/square.png")));

                //---- jLabelMaxDistance ----
                jLabelMaxDistance.setText("MAX_DISTANCE :");

                //---- jLabelWidth ----
                jLabelWidth.setText("WIDTH :");

                //---- jLabelInsertSteps ----
                jLabelInsertSteps.setText("STEPS :");

                //---- textFieldMaxDistance ----
                textFieldMaxDistance.setText("1");

                //---- textFieldWidth ----
                textFieldWidth.setText("200");

                //---- jLabelHeight ----
                jLabelHeight.setText("HEIGHT :");

                //---- textFieldHeight ----
                textFieldHeight.setText("200");

                //---- jLabelAgents ----
                jLabelAgents.setText("AGENTS :");

                //---- textFieldAgents ----
                textFieldAgents.setText("15");

                //---- textFieldSteps
                textFieldSteps.setText("100");

                MouseListener textFieldMouseListener = new MouseListener() {

                    @Override
                    public void mouseReleased(MouseEvent e) {
                        // TODO Auto-generated method stub

                    }

                    @Override
                    public void mousePressed(MouseEvent e) {
                        // TODO Auto-generated method stub

                    }

                    @Override
                    public void mouseExited(MouseEvent e) {
                        initializeDefaultLabel();
                    }

                    @Override
                    public void mouseEntered(MouseEvent e) {
                        // TODO Auto-generated method stub

                    }

                    @Override
                    public void mouseClicked(MouseEvent e) {
                        // TODO Auto-generated method stub

                    }
                };

                textFieldAgents.addMouseListener(textFieldMouseListener);
                textFieldAgents.addKeyListener(new KeyListener() {

                    @Override
                    public void keyTyped(KeyEvent e) {
                        char v = e.getKeyChar();
                        if (!(Character.isDigit(v)) || v == KeyEvent.VK_BACK_SPACE) {
                            e.consume();
                        }
                        if (textFieldAgents.getText().length() > 0)
                            initializeDefaultLabel();
                    }

                    @Override
                    public void keyReleased(KeyEvent e) {
                        //initializeDefaultLabel();
                    }

                    @Override
                    public void keyPressed(KeyEvent e) {
                    }
                });

                textFieldColumns.addMouseListener(textFieldMouseListener);
                textFieldColumns.addKeyListener(new KeyListener() {

                    @Override
                    public void keyTyped(KeyEvent e) {
                        // TODO Auto-generated method stub
                        char v = e.getKeyChar();
                        if (!(Character.isDigit(v)) || v == KeyEvent.VK_BACK_SPACE) {
                            e.consume();
                        }
                        if (textFieldColumns.getText().length() > 0)
                            initializeDefaultLabel();
                    }

                    @Override
                    public void keyReleased(KeyEvent e) {
                        // TODO Auto-generated method stub

                    }

                    @Override
                    public void keyPressed(KeyEvent e) {
                        // TODO Auto-generated method stub
                    }
                });

                textFieldMaxDistance.addMouseListener(textFieldMouseListener);
                textFieldMaxDistance.addKeyListener(new KeyListener() {

                    @Override
                    public void keyTyped(KeyEvent e) {
                        char v = e.getKeyChar();
                        if (!(Character.isDigit(v)) || v == KeyEvent.VK_BACK_SPACE) {
                            e.consume();
                        }
                        if (textFieldMaxDistance.getText().length() > 0)
                            initializeDefaultLabel();
                    }

                    @Override
                    public void keyReleased(KeyEvent e) {
                        //initializeDefaultLabel();
                    }

                    @Override
                    public void keyPressed(KeyEvent e) {
                    }
                });

                textFieldWidth.addMouseListener(textFieldMouseListener);
                textFieldWidth.addKeyListener(new KeyListener() {

                    @Override
                    public void keyTyped(KeyEvent e) {
                        char v = e.getKeyChar();
                        if (!(Character.isDigit(v)) || v == KeyEvent.VK_BACK_SPACE) {
                            e.consume();
                        }
                        if (textFieldWidth.getText().length() > 0)
                            initializeDefaultLabel();
                    }

                    @Override
                    public void keyReleased(KeyEvent e) {
                        //initializeDefaultLabel();
                    }

                    @Override
                    public void keyPressed(KeyEvent e) {
                    }
                });

                textFieldRows.addMouseListener(textFieldMouseListener);
                textFieldRows.addKeyListener(new KeyListener() {

                    @Override
                    public void keyTyped(KeyEvent e) {
                        char v = e.getKeyChar();
                        if (!(Character.isDigit(v)) || v == KeyEvent.VK_BACK_SPACE) {
                            e.consume();
                        }
                        if (textFieldRows.getText().length() > 0)
                            initializeDefaultLabel();
                    }

                    @Override
                    public void keyReleased(KeyEvent e) {

                    }

                    @Override
                    public void keyPressed(KeyEvent e) {
                    }
                });

                textFieldHeight.addMouseListener(textFieldMouseListener);
                textFieldHeight.addKeyListener(new KeyListener() {

                    @Override
                    public void keyTyped(KeyEvent e) {
                        char v = e.getKeyChar();
                        if (!(Character.isDigit(v)) || v == KeyEvent.VK_BACK_SPACE) {
                            e.consume();
                        }
                        if (textFieldHeight.getText().length() > 0)
                            initializeDefaultLabel();
                    }

                    @Override
                    public void keyReleased(KeyEvent arg0) {
                        //initializeDefaultLabel();
                    }

                    @Override
                    public void keyPressed(KeyEvent arg0) {
                    }
                });

                textFieldSteps.addMouseListener(textFieldMouseListener);
                textFieldSteps.addKeyListener(new KeyListener() {

                    @Override
                    public void keyTyped(KeyEvent e) {
                        char v = e.getKeyChar();
                        if (!(Character.isDigit(v)) || v == KeyEvent.VK_BACK_SPACE) {
                            e.consume();
                        }
                        if (textFieldSteps.getText().length() > 0)
                            initializeDefaultLabel();
                    }

                    @Override
                    public void keyReleased(KeyEvent e) {
                        // TODO Auto-generated method stub

                    }

                    @Override
                    public void keyPressed(KeyEvent e) {
                        // TODO Auto-generated method stub

                    }
                });

                //---- jLabelChooseSimulation ----
                jLabelChooseSimulation.setText("Choose your simulation:");

                //---- jComboBoxChooseSimulation ----
                jComboBoxChooseSimulation.setMaximumRowCount(10);

                JLabel lblRows = new JLabel("ROWS :");

                JLabel lblColumns = new JLabel("COLUMNS :");

                textFieldRows.setText("1");
                textFieldRows.setEnabled(false);
                textFieldRows.setColumns(10);

                rows = Integer.parseInt(textFieldRows.getText());

                textFieldColumns.setText("2");
                textFieldColumns.setEnabled(false);
                textFieldColumns.setColumns(10);
                columns = Integer.parseInt(textFieldColumns.getText());

                textFieldSteps.setText("100");
                textFieldSteps.setEnabled(false);
                textFieldSteps.setColumns(10);
                steps = 100;

                GroupLayout jPanelSettingsLayout = new GroupLayout(jPanelSettings);
                jPanelSettingsLayout.setHorizontalGroup(jPanelSettingsLayout
                        .createParallelGroup(Alignment.LEADING)
                        .addGroup(jPanelSettingsLayout.createSequentialGroup().addGap(17)
                                .addGroup(jPanelSettingsLayout.createParallelGroup(Alignment.LEADING)
                                        .addComponent(jLabelChooseSimulation, GroupLayout.PREFERRED_SIZE, 245,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addGroup(jPanelSettingsLayout.createSequentialGroup().addGap(119)
                                                .addComponent(jLabelHorizontal))
                                        .addComponent(jComboBoxChooseSimulation, GroupLayout.PREFERRED_SIZE,
                                                214, GroupLayout.PREFERRED_SIZE)
                                        .addGroup(jPanelSettingsLayout.createSequentialGroup()
                                                .addGroup(jPanelSettingsLayout
                                                        .createParallelGroup(Alignment.TRAILING)
                                                        .addGroup(Alignment.LEADING, jPanelSettingsLayout
                                                                .createSequentialGroup()
                                                                .addGroup(jPanelSettingsLayout
                                                                        .createParallelGroup(Alignment.LEADING)
                                                                        .addComponent(lblRows,
                                                                                GroupLayout.PREFERRED_SIZE, 59,
                                                                                GroupLayout.PREFERRED_SIZE)
                                                                        .addComponent(lblColumns))
                                                                .addGap(60)
                                                                .addGroup(jPanelSettingsLayout
                                                                        .createParallelGroup(Alignment.LEADING)
                                                                        .addComponent(jLabelSquare)
                                                                        .addComponent(textFieldColumns,
                                                                                GroupLayout.DEFAULT_SIZE, 94,
                                                                                Short.MAX_VALUE)
                                                                        .addComponent(textFieldRows,
                                                                                GroupLayout.DEFAULT_SIZE, 94,
                                                                                Short.MAX_VALUE)))
                                                        .addGroup(Alignment.LEADING, jPanelSettingsLayout
                                                                .createSequentialGroup()
                                                                .addGroup(jPanelSettingsLayout
                                                                        .createParallelGroup(Alignment.LEADING)
                                                                        .addComponent(jLabelMaxDistance)
                                                                        .addComponent(jLabelWidth)
                                                                        .addComponent(jLabelHeight)
                                                                        .addComponent(jLabelAgents)
                                                                        .addComponent(jLabelInsertSteps)
                                                                        .addGap(132))
                                                                .addGroup(jPanelSettingsLayout
                                                                        .createParallelGroup(Alignment.LEADING)
                                                                        .addComponent(textFieldAgents,
                                                                                GroupLayout.PREFERRED_SIZE, 94,
                                                                                GroupLayout.PREFERRED_SIZE)
                                                                        .addComponent(textFieldHeight,
                                                                                GroupLayout.PREFERRED_SIZE, 94,
                                                                                GroupLayout.PREFERRED_SIZE)
                                                                        .addComponent(textFieldWidth,
                                                                                GroupLayout.PREFERRED_SIZE, 94,
                                                                                GroupLayout.PREFERRED_SIZE)
                                                                        .addComponent(textFieldMaxDistance,
                                                                                GroupLayout.PREFERRED_SIZE, 94,
                                                                                GroupLayout.PREFERRED_SIZE)
                                                                        .addComponent(textFieldSteps,
                                                                                GroupLayout.PREFERRED_SIZE, 94,
                                                                                GroupLayout.PREFERRED_SIZE)
                                                                        .addGap(20))))

                                                .addGap(20)))));
                jPanelSettingsLayout.setVerticalGroup(jPanelSettingsLayout
                        .createParallelGroup(Alignment.LEADING)
                        .addGroup(jPanelSettingsLayout.createSequentialGroup().addContainerGap()
                                .addComponent(jLabelHorizontal).addGap(41)
                                .addGroup(jPanelSettingsLayout.createParallelGroup(Alignment.LEADING)
                                        .addComponent(jLabelSquare)
                                        .addGroup(jPanelSettingsLayout.createParallelGroup(Alignment.BASELINE)
                                                .addComponent(lblRows, GroupLayout.PREFERRED_SIZE, 22,
                                                        GroupLayout.PREFERRED_SIZE)
                                                .addComponent(textFieldRows, GroupLayout.PREFERRED_SIZE,
                                                        GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)
                                .addGroup(jPanelSettingsLayout.createParallelGroup(Alignment.BASELINE)
                                        .addComponent(textFieldColumns, GroupLayout.PREFERRED_SIZE,
                                                GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                        .addComponent(lblColumns))
                                .addGap(18)
                                .addGroup(jPanelSettingsLayout.createParallelGroup(Alignment.BASELINE)
                                        .addComponent(jLabelMaxDistance).addComponent(textFieldMaxDistance,
                                                GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(ComponentPlacement.RELATED)
                                .addGroup(jPanelSettingsLayout.createParallelGroup(Alignment.BASELINE)
                                        .addComponent(jLabelWidth, GroupLayout.PREFERRED_SIZE, 16,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addComponent(textFieldWidth, GroupLayout.PREFERRED_SIZE, 19,
                                                GroupLayout.PREFERRED_SIZE))
                                .addGap(10)
                                .addGroup(jPanelSettingsLayout.createParallelGroup(Alignment.BASELINE)
                                        .addComponent(jLabelHeight, GroupLayout.PREFERRED_SIZE, 16,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addComponent(textFieldHeight, GroupLayout.PREFERRED_SIZE, 19,
                                                GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(ComponentPlacement.RELATED)
                                .addGroup(jPanelSettingsLayout.createParallelGroup(Alignment.BASELINE)
                                        .addComponent(jLabelAgents).addComponent(textFieldAgents,
                                                GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(ComponentPlacement.RELATED)
                                //.addGap(10)
                                .addGroup(jPanelSettingsLayout.createParallelGroup(Alignment.BASELINE)
                                        .addComponent(jLabelInsertSteps, GroupLayout.PREFERRED_SIZE, 16,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addComponent(textFieldSteps, GroupLayout.PREFERRED_SIZE, 19,
                                                GroupLayout.PREFERRED_SIZE))
                                .addGap(35).addComponent(jLabelChooseSimulation)
                                .addPreferredGap(ComponentPlacement.UNRELATED)
                                .addComponent(jComboBoxChooseSimulation, GroupLayout.PREFERRED_SIZE,
                                        GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                .addGap(52)));
                jPanelSettings.setLayout(jPanelSettingsLayout);
            }

            //======== jPanelContainerTabbedPane ========
            {

                //======== tabbedPane2 ========
                {

                    //======== jPanelDefault ========
                    {
                        jPanelDefault.setBorder(new EtchedBorder());
                        jPanelDefault.setPreferredSize(new Dimension(350, 331));

                        //---- labelSimulationConfigSet ----
                        labelSimulationConfigSet.setText("Simulation Configuration Settings");
                        labelSimulationConfigSet.setFont(labelSimulationConfigSet.getFont().deriveFont(
                                labelSimulationConfigSet.getFont().getStyle() | Font.BOLD,
                                labelSimulationConfigSet.getFont().getSize() + 8f));

                        //---- labelRegionsResume ----
                        labelRegionsResume.setText("REGIONS :");

                        //---- labelNumOfPeerResume ----
                        labelNumOfPeerResume.setText("NUMBER OF PEERS :");

                        //---- labelRegForPeerResume ----
                        labelRegForPeerResume.setText("REGIONS FOR PEER :");

                        //---- labelWriteReg ----
                        labelWriteReg.setText("text");

                        //---- labelWriteNumOfPeer ----
                        labelWriteNumOfPeer.setText("text");

                        //---- labelWriteRegForPeer ----
                        labelWriteRegForPeer.setText("text");

                        //---- labelWidthRegion ----
                        labelWidthRegion.setText("REGION WIDTH :");

                        //---- labelheightRegion ----
                        labelheightRegion.setText("REGION HEIGHT :");

                        //---- labelDistrMode ----
                        labelDistrMode.setText("DISTRIBUTION MODE :");

                        //---- labelWriteRegWidth ----
                        labelWriteRegWidth.setText("text");

                        //---- labelWriteRegHeight ----
                        labelWriteRegHeight.setText("text");

                        //---- labelWriteDistrMode ----
                        labelWriteDistrMode.setText("text");

                        //---- graphicONcheckBox2 ----
                        graphicONcheckBox2.setText("Graphic ON");

                        //======== jPanelSetButton ========
                        {

                            //---- buttonSetConfigDefault ----
                            buttonSetConfigDefault.setText("Set");
                            {
                                jCheckBoxLoadBalancing.setText("Load Balancing");
                            }

                            GroupLayout jPanelSetButtonLayout = new GroupLayout(jPanelSetButton);
                            jPanelSetButton.setLayout(jPanelSetButtonLayout);
                            jPanelSetButtonLayout.setVerticalGroup(jPanelSetButtonLayout.createSequentialGroup()

                                    .addGroup(jPanelSetButtonLayout.createParallelGroup().addGroup(
                                            GroupLayout.Alignment.TRAILING,
                                            jPanelSetButtonLayout.createSequentialGroup().addComponent(
                                                    jCheckBoxMPI, GroupLayout.PREFERRED_SIZE, 20,
                                                    GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(jPanelSetButtonLayout.createParallelGroup()
                                            .addGroup(GroupLayout.Alignment.LEADING,
                                                    jPanelSetButtonLayout.createSequentialGroup().addComponent(
                                                            jCheckBoxLoadBalancing, GroupLayout.PREFERRED_SIZE,
                                                            20, GroupLayout.PREFERRED_SIZE))
                                            .addGroup(GroupLayout.Alignment.LEADING, jPanelSetButtonLayout
                                                    .createSequentialGroup()
                                                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 0,
                                                            Short.MAX_VALUE)
                                                    .addComponent(buttonSetConfigDefault,
                                                            GroupLayout.PREFERRED_SIZE,
                                                            GroupLayout.PREFERRED_SIZE,
                                                            GroupLayout.PREFERRED_SIZE)))

                                    .addContainerGap());

                            jPanelSetButtonLayout.setHorizontalGroup(jPanelSetButtonLayout
                                    .createSequentialGroup()
                                    .addComponent(jCheckBoxMPI, GroupLayout.PREFERRED_SIZE, 120,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap(0, 0)
                                    .addComponent(jCheckBoxLoadBalancing, GroupLayout.PREFERRED_SIZE, 114,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 150, Short.MAX_VALUE).addComponent(buttonSetConfigDefault,
                                            GroupLayout.PREFERRED_SIZE, 76, GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap(0, 0));

                            FlowLayout lsetbutt = new FlowLayout();
                            lsetbutt.addLayoutComponent("", jCheckBoxMPI);
                            lsetbutt.addLayoutComponent("", jCheckBoxLoadBalancing);
                            lsetbutt.addLayoutComponent("", buttonSetConfigDefault);
                            jPanelSetButton.setLayout(lsetbutt);

                        }

                        GroupLayout jPanelDefaultLayout = new GroupLayout(jPanelDefault);
                        jPanelDefaultLayout.setHorizontalGroup(jPanelDefaultLayout
                                .createParallelGroup(Alignment.LEADING)
                                .addGroup(jPanelDefaultLayout.createSequentialGroup().addContainerGap()
                                        .addGroup(jPanelDefaultLayout.createParallelGroup(Alignment.LEADING)
                                                .addComponent(labelSimulationConfigSet,
                                                        GroupLayout.DEFAULT_SIZE, 478, Short.MAX_VALUE)
                                                .addGroup(jPanelDefaultLayout.createSequentialGroup().addGap(6)
                                                        .addGroup(jPanelDefaultLayout
                                                                .createParallelGroup(Alignment.LEADING)
                                                                .addGroup(jPanelDefaultLayout
                                                                        .createSequentialGroup()
                                                                        .addGroup(jPanelDefaultLayout
                                                                                .createParallelGroup(
                                                                                        Alignment.LEADING)
                                                                                .addComponent(
                                                                                        labelNumOfPeerResume)
                                                                                .addComponent(
                                                                                        labelRegForPeerResume)
                                                                                .addComponent(labelWidthRegion)
                                                                                .addComponent(labelheightRegion)
                                                                                .addComponent(labelDistrMode)
                                                                                .addComponent(
                                                                                        labelRegionsResume))
                                                                        .addPreferredGap(
                                                                                ComponentPlacement.RELATED, 218,
                                                                                Short.MAX_VALUE)
                                                                        .addGroup(jPanelDefaultLayout
                                                                                .createParallelGroup(
                                                                                        Alignment.LEADING)
                                                                                .addComponent(
                                                                                        labelWriteNumOfPeer,
                                                                                        GroupLayout.PREFERRED_SIZE,
                                                                                        25,
                                                                                        GroupLayout.PREFERRED_SIZE)
                                                                                .addComponent(labelWriteReg)
                                                                                .addComponent(
                                                                                        labelWriteRegForPeer)
                                                                                .addComponent(
                                                                                        labelWriteRegWidth)
                                                                                .addComponent(
                                                                                        labelWriteRegHeight)
                                                                                .addComponent(
                                                                                        labelWriteDistrMode))
                                                                        .addGap(118))
                                                                .addComponent(graphicONcheckBox2))))
                                        .addGap(211))
                                .addGroup(jPanelDefaultLayout.createSequentialGroup()
                                        .addComponent(jPanelSetButton, GroupLayout.PREFERRED_SIZE,
                                                GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                        .addContainerGap(23, Short.MAX_VALUE)));
                        jPanelDefaultLayout.setVerticalGroup(jPanelDefaultLayout
                                .createParallelGroup(Alignment.LEADING)
                                .addGroup(jPanelDefaultLayout.createSequentialGroup().addContainerGap()
                                        .addComponent(labelSimulationConfigSet, GroupLayout.PREFERRED_SIZE, 31,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addGap(28)
                                        .addGroup(jPanelDefaultLayout.createParallelGroup(Alignment.TRAILING)
                                                .addGroup(jPanelDefaultLayout.createSequentialGroup()
                                                        .addComponent(labelRegionsResume)
                                                        .addPreferredGap(ComponentPlacement.RELATED)
                                                        .addComponent(labelNumOfPeerResume)
                                                        .addPreferredGap(ComponentPlacement.RELATED)
                                                        .addComponent(labelRegForPeerResume).addGap(6)
                                                        .addComponent(labelWidthRegion).addGap(6)
                                                        .addComponent(labelheightRegion)
                                                        .addPreferredGap(ComponentPlacement.RELATED)
                                                        .addComponent(labelDistrMode))
                                                .addGroup(jPanelDefaultLayout.createSequentialGroup()
                                                        .addComponent(labelWriteReg)
                                                        .addPreferredGap(ComponentPlacement.RELATED)
                                                        .addComponent(labelWriteNumOfPeer)
                                                        .addPreferredGap(ComponentPlacement.RELATED)
                                                        .addComponent(labelWriteRegForPeer).addGap(6)
                                                        .addComponent(labelWriteRegWidth).addGap(6)
                                                        .addComponent(labelWriteRegHeight)
                                                        .addPreferredGap(ComponentPlacement.RELATED)
                                                        .addComponent(labelWriteDistrMode,
                                                                GroupLayout.PREFERRED_SIZE, 16,
                                                                GroupLayout.PREFERRED_SIZE)
                                                        .addGap(8)))
                                        .addPreferredGap(ComponentPlacement.UNRELATED)
                                        .addComponent(graphicONcheckBox2)
                                        .addPreferredGap(ComponentPlacement.RELATED, 82, Short.MAX_VALUE)
                                        .addComponent(jPanelSetButton, GroupLayout.PREFERRED_SIZE,
                                                GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)));
                        jPanelDefault.setLayout(jPanelDefaultLayout);
                    }
                    tabbedPane2.addTab("Default", jPanelDefault);

                    //======== jPanelSimulation ========

                    tabbedPane2.addTab("Simulation", jPanelSimulation);
                    //======== End jPanelSimulation ========
                    //======== jPanelAdvanced ========
                    {
                        jPanelAdvanced.setBorder(new EtchedBorder());

                        //======== jPanelAdvancedMain ========
                        {

                            //======== scrollPaneTree ========
                            {

                                //---- tree1 ----
                                tree1.setModel(new DefaultTreeModel(root));
                                DefaultTreeCellRenderer render = new DefaultTreeCellRenderer();

                                render.setOpenIcon(new ImageIcon("resources/image/network.png"));

                                render.setLeafIcon(new ImageIcon("esource/image/computer.gif"));

                                render.setClosedIcon(new ImageIcon("resources/image/network.png"));
                                tree1.setCellRenderer(render);
                                tree1.setRowHeight(25);
                                scrollPaneTree.setViewportView(tree1);
                                tree1.addTreeSelectionListener(new TreeSelectionListener() {

                                    @Override
                                    public void valueChanged(TreeSelectionEvent arg0) {
                                        if (arg0.getPath().getLastPathComponent().equals(root)) {
                                            jComboBoxNumRegionXPeer.setEnabled(true);
                                            advancedConfirmBut.setEnabled(true);
                                            graphicONcheckBox.setEnabled(true);
                                            total = Integer.parseInt(textFieldRows.getText())
                                                    * Integer.parseInt(textFieldColumns.getText()); //(Integer)jComboRegions.getSelectedItem();
                                            res = total;
                                            jComboBoxNumRegionXPeer.removeAllItems();
                                            for (int i = 1; i < res; i++)
                                                jComboBoxNumRegionXPeer.addItem(i);
                                        } else
                                            clickTreeListener();
                                    }
                                });

                            }

                            //======== peerInfoStatus ========
                            {
                                peerInfoStatus.setBorder(new TitledBorder("Settings"));
                                peerInfoStatus.setBackground(Color.lightGray);

                                //======== peerInfoStatus1 ========
                                {
                                    peerInfoStatus1.setBackground(Color.lightGray);
                                    peerInfoStatus1.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
                                    peerInfoStatus1.setBorder(null);

                                    //======== internalFrame1 ========
                                    {
                                        internalFrame1.setVisible(true);
                                        Container internalFrame1ContentPane = internalFrame1.getContentPane();

                                        //======== scrollPane1 ========
                                        {

                                            //---- label8 ----
                                            architectureLabel.setText("Architecture Information");
                                            scrollPane1.setViewportView(architectureLabel);
                                        }

                                        GroupLayout internalFrame1ContentPaneLayout = new GroupLayout(
                                                internalFrame1ContentPane);
                                        internalFrame1ContentPane.setLayout(internalFrame1ContentPaneLayout);
                                        internalFrame1ContentPaneLayout.setHorizontalGroup(
                                                internalFrame1ContentPaneLayout.createParallelGroup()
                                                        .addGroup(internalFrame1ContentPaneLayout
                                                                .createSequentialGroup().addContainerGap()
                                                                .addComponent(scrollPane1,
                                                                        GroupLayout.DEFAULT_SIZE, 0,
                                                                        Short.MAX_VALUE)
                                                                .addContainerGap()));
                                        internalFrame1ContentPaneLayout.setVerticalGroup(
                                                internalFrame1ContentPaneLayout.createParallelGroup()
                                                        .addGroup(internalFrame1ContentPaneLayout
                                                                .createSequentialGroup().addContainerGap()
                                                                .addComponent(scrollPane1,
                                                                        GroupLayout.DEFAULT_SIZE, 0,
                                                                        Short.MAX_VALUE)
                                                                .addContainerGap()));
                                    }
                                    peerInfoStatus1.add(internalFrame1, JLayeredPane.DEFAULT_LAYER);
                                    internalFrame1.setBounds(15, 0, 365, 160);
                                }

                                //---- graphicONcheckBox ----
                                graphicONcheckBox.setText("Graphic ON");

                                //---- advancedConfirmBut ----
                                advancedConfirmBut.setIcon(new ImageIcon("resources/image/ok.png"));

                                GroupLayout peerInfoStatusLayout = new GroupLayout(peerInfoStatus);
                                peerInfoStatus.setLayout(peerInfoStatusLayout);
                                peerInfoStatusLayout.setHorizontalGroup(peerInfoStatusLayout
                                        .createParallelGroup()
                                        .addGroup(peerInfoStatusLayout.createSequentialGroup()
                                                .addGroup(peerInfoStatusLayout.createParallelGroup()
                                                        .addGroup(peerInfoStatusLayout.createSequentialGroup()
                                                                .addGap(26, 26, 26)
                                                                .addComponent(graphicONcheckBox)
                                                                .addGap(73, 73, 73)
                                                                .addComponent(jComboBoxNumRegionXPeer,
                                                                        GroupLayout.PREFERRED_SIZE,
                                                                        GroupLayout.DEFAULT_SIZE,
                                                                        GroupLayout.PREFERRED_SIZE)
                                                                .addGap(80, 80, 80)
                                                                .addComponent(advancedConfirmBut,
                                                                        GroupLayout.PREFERRED_SIZE, 33,
                                                                        GroupLayout.PREFERRED_SIZE))
                                                        .addGroup(peerInfoStatusLayout.createSequentialGroup()
                                                                .addContainerGap().addComponent(peerInfoStatus1,
                                                                        GroupLayout.DEFAULT_SIZE, 387,
                                                                        Short.MAX_VALUE)))
                                                .addContainerGap()));
                                peerInfoStatusLayout.setVerticalGroup(peerInfoStatusLayout.createParallelGroup()
                                        .addGroup(peerInfoStatusLayout.createSequentialGroup()
                                                .addComponent(peerInfoStatus1, GroupLayout.PREFERRED_SIZE, 175,
                                                        GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                                .addGroup(peerInfoStatusLayout
                                                        .createParallelGroup(GroupLayout.Alignment.TRAILING)
                                                        .addGroup(GroupLayout.Alignment.LEADING,
                                                                peerInfoStatusLayout
                                                                        .createParallelGroup(
                                                                                GroupLayout.Alignment.BASELINE)
                                                                        .addComponent(graphicONcheckBox)
                                                                        .addComponent(jComboBoxNumRegionXPeer,
                                                                                GroupLayout.PREFERRED_SIZE,
                                                                                GroupLayout.DEFAULT_SIZE,
                                                                                GroupLayout.PREFERRED_SIZE))
                                                        .addComponent(advancedConfirmBut,
                                                                GroupLayout.Alignment.LEADING,
                                                                GroupLayout.PREFERRED_SIZE, 28,
                                                                GroupLayout.PREFERRED_SIZE))
                                                .addContainerGap(16, Short.MAX_VALUE)));
                            }

                            GroupLayout jPanelAdvancedMainLayout = new GroupLayout(jPanelAdvancedMain);
                            jPanelAdvancedMain.setLayout(jPanelAdvancedMainLayout);
                            jPanelAdvancedMainLayout.setHorizontalGroup(jPanelAdvancedMainLayout
                                    .createParallelGroup()
                                    .addGroup(jPanelAdvancedMainLayout.createSequentialGroup().addContainerGap()
                                            .addComponent(scrollPaneTree, GroupLayout.PREFERRED_SIZE, 207,
                                                    GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                                            .addComponent(peerInfoStatus, GroupLayout.DEFAULT_SIZE,
                                                    GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addContainerGap()));
                            jPanelAdvancedMainLayout.setVerticalGroup(jPanelAdvancedMainLayout
                                    .createParallelGroup()
                                    .addGroup(GroupLayout.Alignment.TRAILING, jPanelAdvancedMainLayout
                                            .createSequentialGroup().addContainerGap()
                                            .addGroup(jPanelAdvancedMainLayout
                                                    .createParallelGroup(GroupLayout.Alignment.TRAILING)
                                                    .addComponent(peerInfoStatus, GroupLayout.Alignment.LEADING,
                                                            GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE)
                                                    .addComponent(scrollPaneTree, GroupLayout.Alignment.LEADING,
                                                            GroupLayout.DEFAULT_SIZE, 255, Short.MAX_VALUE))
                                            .addContainerGap()));
                        }

                        //======== jPanelSetButton2 ========
                        {

                            //---- buttonSetConfigDefault2 ----
                            buttonSetConfigDefault2.setText("Set");

                            GroupLayout jPanelSetButton2Layout = new GroupLayout(jPanelSetButton2);
                            jPanelSetButton2.setLayout(jPanelSetButton2Layout);
                            jPanelSetButton2Layout.setHorizontalGroup(jPanelSetButton2Layout
                                    .createParallelGroup().addGroup(GroupLayout.Alignment.TRAILING,
                                            jPanelSetButton2Layout.createSequentialGroup()
                                                    .addContainerGap(522, Short.MAX_VALUE)
                                                    .addComponent(buttonSetConfigDefault2,
                                                            GroupLayout.PREFERRED_SIZE, 76,
                                                            GroupLayout.PREFERRED_SIZE)
                                                    .addGap(72, 72, 72)));
                            jPanelSetButton2Layout.setVerticalGroup(jPanelSetButton2Layout.createParallelGroup()
                                    .addGroup(GroupLayout.Alignment.TRAILING,
                                            jPanelSetButton2Layout.createSequentialGroup()
                                                    .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                    .addComponent(buttonSetConfigDefault2).addContainerGap()));
                        }

                        GroupLayout jPanelAdvancedLayout = new GroupLayout(jPanelAdvanced);
                        jPanelAdvancedLayout.setHorizontalGroup(jPanelAdvancedLayout
                                .createParallelGroup(Alignment.LEADING)
                                .addGroup(jPanelAdvancedLayout.createSequentialGroup()
                                        .addGroup(jPanelAdvancedLayout.createParallelGroup(Alignment.LEADING)
                                                .addComponent(jPanelAdvancedMain, GroupLayout.DEFAULT_SIZE, 689,
                                                        Short.MAX_VALUE)
                                                .addComponent(jPanelSetButton2, GroupLayout.PREFERRED_SIZE, 681,
                                                        GroupLayout.PREFERRED_SIZE))
                                        .addContainerGap()));
                        jPanelAdvancedLayout.setVerticalGroup(jPanelAdvancedLayout
                                .createParallelGroup(Alignment.TRAILING)
                                .addGroup(jPanelAdvancedLayout.createSequentialGroup().addContainerGap()
                                        .addComponent(jPanelAdvancedMain, GroupLayout.PREFERRED_SIZE,
                                                GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                        .addGap(18).addComponent(jPanelSetButton2, GroupLayout.PREFERRED_SIZE,
                                                GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)));
                        jPanelAdvanced.setLayout(jPanelAdvancedLayout);
                    }
                    tabbedPane2.addTab("Advanced", jPanelAdvanced);

                }

                //======== panelConsole ========
                {

                    //======== scrollPane3 ========
                    {

                        //---- textField1 ----
                        notifyArea.setEditable(false);
                        DefaultCaret caret = (DefaultCaret) notifyArea.getCaret();
                        caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);
                        scrollPane3.setViewportView(notifyArea);
                    }

                    GroupLayout panelConsoleLayout = new GroupLayout(panelConsole);
                    panelConsole.setLayout(panelConsoleLayout);
                    panelConsoleLayout.setHorizontalGroup(panelConsoleLayout.createParallelGroup()
                            .addGroup(panelConsoleLayout.createParallelGroup()
                                    .addGroup(panelConsoleLayout.createSequentialGroup()
                                            .addGap(0, 0, Short.MAX_VALUE)
                                            .addComponent(scrollPane3, GroupLayout.PREFERRED_SIZE, 679,
                                                    GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE)))
                            .addGap(0, 679, Short.MAX_VALUE));
                    panelConsoleLayout.setVerticalGroup(panelConsoleLayout.createParallelGroup()
                            .addGroup(panelConsoleLayout.createParallelGroup()
                                    .addGroup(panelConsoleLayout.createSequentialGroup()
                                            .addGap(0, 0, Short.MAX_VALUE)
                                            .addComponent(scrollPane3, GroupLayout.PREFERRED_SIZE, 76,
                                                    GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE)))
                            .addGap(0, 76, Short.MAX_VALUE));
                }

                GroupLayout jPanelContainerTabbedPaneLayout = new GroupLayout(jPanelContainerTabbedPane);
                jPanelContainerTabbedPaneLayout.setHorizontalGroup(jPanelContainerTabbedPaneLayout
                        .createParallelGroup(Alignment.LEADING)
                        .addGroup(jPanelContainerTabbedPaneLayout.createSequentialGroup().addContainerGap()
                                .addGroup(jPanelContainerTabbedPaneLayout.createParallelGroup(Alignment.LEADING)
                                        .addComponent(tabbedPane2, GroupLayout.PREFERRED_SIZE, 686,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addComponent(panelConsole, GroupLayout.DEFAULT_SIZE, 708,
                                                Short.MAX_VALUE))
                                .addContainerGap()));
                jPanelContainerTabbedPaneLayout.setVerticalGroup(jPanelContainerTabbedPaneLayout
                        .createParallelGroup(Alignment.LEADING)
                        .addGroup(jPanelContainerTabbedPaneLayout.createSequentialGroup().addGap(3)
                                .addComponent(tabbedPane2, GroupLayout.PREFERRED_SIZE, 384,
                                        GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(ComponentPlacement.RELATED)
                                .addComponent(panelConsole, GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE)));
                jPanelContainerTabbedPane.setLayout(jPanelContainerTabbedPaneLayout);
            }
            {
                jPanelDeploying = new JPanel();
                tabbedPane2.addTab("Simulation Jar", null, jPanelDeploying, null);
                GroupLayout jPanelDeployingLayout = new GroupLayout(jPanelDeploying);
                jPanelDeploying.setLayout(jPanelDeployingLayout);
                {
                    jButtonLoadJar = new JButton();
                    jButtonLoadJar.setText("Load Jar");
                    jButtonLoadJar.addActionListener(new ActionListener() {
                        @Override
                        public void actionPerformed(ActionEvent evt) {

                            if (simulationFile != null) {

                                File dest = new File(FTP_HOME + dirSeparator + SIMULATION_DIR + dirSeparator
                                        + simulationFile.getName());
                                try {
                                    FileUtils.copyFile(simulationFile, dest);

                                    Digester dg = new Digester(DigestAlgorithm.MD5);

                                    InputStream in = new FileInputStream(dest);

                                    Properties prop = new Properties();

                                    try {

                                        prop.setProperty("MD5", dg.getDigest(in));

                                        String fileName = FilenameUtils
                                                .removeExtension(simulationFile.getName());
                                        //save properties to project root folder
                                        prop.store(new FileOutputStream(FTP_HOME + dirSeparator + SIMULATION_DIR
                                                + dirSeparator + fileName + ".hash"), null);

                                    } catch (IOException ex) {
                                        ex.printStackTrace();
                                    }

                                    System.out.println("MD5: " + dg.getDigest(in));

                                    loadSimulation();
                                } catch (IOException e) {
                                    // TODO Auto-generated catch block
                                    e.printStackTrace();
                                }
                            }
                        }
                    });

                }

                jPanelDeployingLayout.setVerticalGroup(jPanelDeployingLayout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addGroup(jPanelDeployingLayout.createParallelGroup().addGroup(
                                GroupLayout.Alignment.LEADING,
                                jPanelDeployingLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                                        .addComponent(jButtonLoadJar, GroupLayout.Alignment.BASELINE,
                                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addComponent(getJTextFieldPathSimJar(), GroupLayout.Alignment.BASELINE,
                                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                                GroupLayout.PREFERRED_SIZE))
                                .addComponent(getJButtonChoseSimJar(), GroupLayout.Alignment.LEADING,
                                        GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE,
                                        GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 286,
                                GroupLayout.PREFERRED_SIZE));
                jPanelDeployingLayout
                        .setHorizontalGroup(jPanelDeployingLayout.createSequentialGroup().addGap(22, 22, 22)
                                .addComponent(getJTextFieldPathSimJar(), GroupLayout.PREFERRED_SIZE, 202,
                                        GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(getJButtonChoseSimJar(), GroupLayout.PREFERRED_SIZE, 27,
                                        GroupLayout.PREFERRED_SIZE)
                                .addGap(24)
                                .addComponent(jButtonLoadJar, GroupLayout.PREFERRED_SIZE, 146,
                                        GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 155, Short.MAX_VALUE));
            }

            jPanelRunBatchTests = new JPanel();
            tabbedPane2.addTab("Run batch tests", null, jPanelRunBatchTests, null);

            JLabel lblSelectConfigurationFile = new JLabel("Select configuration file:");

            textFieldConfigFilePath = new JTextField();
            textFieldConfigFilePath.setColumns(10);

            JButton buttonChooseConfigFile = new JButton();
            buttonChooseConfigFile.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent arg0) {

                    configFile = showFileChooser();
                    if (configFile != null)
                        textFieldConfigFilePath.setText(configFile.getAbsolutePath());
                }
            });
            buttonChooseConfigFile.setIcon(new ImageIcon("it/isislab/dmason/resources/image/openFolder.png"));

            JButton buttonLoadConfig = new JButton("Start");
            buttonLoadConfig.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent e) {

                    try {
                        if (configFile.getName().contains(".xml")) {
                            ClassLoader.getSystemClassLoader();
                            //File xsd = new File(xsdFilename);
                            InputStream xsd = new FileInputStream("resources/batch/batchSchema.xsd");

                            if (xsd != null) {
                                if (validateXML(configFile, xsd)) {

                                    Batch batch = loadConfigFromXML(configFile);

                                    if (batch != null) {
                                        textAreaBatchInfo.append(configFile.getName() + " loaded.\n");
                                        if (batch.getNeededWorkers() > peers.size()
                                                || batch.getNeededWorkers() == 0)
                                            JOptionPane.showMessageDialog(DMasonMaster.this,
                                                    "There are not enough workers to start the simulation");
                                        else {
                                            textAreaBatchInfo
                                                    .append("Simulation: " + batch.getSimulationName() + "\n");
                                            textAreaBatchInfo.append(
                                                    "Needed Worker: " + batch.getNeededWorkers() + "\n");
                                            textAreaBatchInfo.append("Balance: " + batch.isBalanced() + "\n");

                                            Set<List<EntryParam<String, Object>>> testList = generateTestsFrom(
                                                    batch);

                                            textAreaBatchInfo
                                                    .append("--------------------------------------\n");
                                            textAreaBatchInfo
                                                    .append("Number of experiments: " + testList.size() + "\n");
                                            ConcurrentLinkedQueue<List<EntryParam<String, Object>>> testQueue = new ConcurrentLinkedQueue<List<EntryParam<String, Object>>>();

                                            for (List<EntryParam<String, Object>> test : testList)
                                                testQueue.offer(test);

                                            //System.out.println("Test queue: "+testQueue.size());

                                            try {

                                                List<List<EntryWorkerScore<Integer, String>>> workersPartition = Util
                                                        .chopped(scoreList, batch.getNeededWorkers());

                                                //System.out.println(workersPartition.toString());

                                                testCount.set(0);
                                                totalTests = testList.size();

                                                progressBarBatchTest.setValue(0);
                                                progressBarBatchTest.setString("0 %");
                                                progressBarBatchTest.setStringPainted(true);

                                                batchLogger = Logger
                                                        .getLogger(BatchExecutor.class.getCanonicalName());
                                                batchStartedTime = System.currentTimeMillis();

                                                textAreaBatchInfo.append("Batch started at: "
                                                        + Util.getCurrentDateTime(batchStartedTime) + "\n");
                                                textAreaBatchInfo
                                                        .append("--------------------------------------\n");
                                                batchLogger.debug("Started at: " + batchStartedTime);
                                                int i = 1;
                                                BatchExecutor batchExec;
                                                for (List<EntryWorkerScore<Integer, String>> workers : workersPartition) {
                                                    try {

                                                        batchExec = new BatchExecutor(batch.getSimulationName(),
                                                                batch.isBalanced(), testQueue, master,
                                                                connection, root.getChildCount(),
                                                                getFPTAddress(), workers, "Batch" + i, 1,
                                                                textAreaBatchInfo);

                                                        batchExec.getObservable()
                                                                .addObserver(DMasonMaster.this);
                                                        batchExec.start();

                                                        //Thread.sleep(2000);
                                                        //textAreaBatchInfo.append("Batch Executor "+i+" started\n");

                                                        i++;

                                                        //not paraller simulation, I use only one batch executor
                                                        if (!chckbxParallelBatch.isSelected())
                                                            break;
                                                    } catch (Exception e1) {
                                                        // TODO Auto-generated catch block
                                                        e1.printStackTrace();
                                                    }

                                                }

                                            } catch (Exception e3) {
                                                // TODO Auto-generated catch block
                                                e3.printStackTrace();
                                            }

                                        }

                                    } else
                                        JOptionPane.showMessageDialog(DMasonMaster.this,
                                                "Error when loading config file");
                                } else
                                    JOptionPane.showMessageDialog(DMasonMaster.this,
                                            "The configuration file is not a valid file");
                            } else
                                JOptionPane.showMessageDialog(DMasonMaster.this,
                                        xsdFilename + " not exists, can't validate configuration file.");
                        } else
                            JOptionPane.showMessageDialog(DMasonMaster.this,
                                    "The file " + configFile.getName() + "is not a configuration file.");
                    } catch (HeadlessException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                    } catch (IOException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                    }

                }

            });

            JPanel panel = new JPanel();
            panel.setBorder(
                    new TitledBorder(null, "Batch Status", TitledBorder.LEADING, TitledBorder.TOP, null, null));

            chckbxParallelBatch = new JCheckBox("Parallel Batch");

            GroupLayout gl_jPanelRunBatchTests = new GroupLayout(jPanelRunBatchTests);
            gl_jPanelRunBatchTests.setHorizontalGroup(gl_jPanelRunBatchTests
                    .createParallelGroup(Alignment.LEADING)
                    .addGroup(gl_jPanelRunBatchTests.createSequentialGroup().addContainerGap()
                            .addGroup(gl_jPanelRunBatchTests.createParallelGroup(Alignment.LEADING)
                                    .addGroup(gl_jPanelRunBatchTests.createSequentialGroup()
                                            .addComponent(lblSelectConfigurationFile,
                                                    GroupLayout.PREFERRED_SIZE, 139, GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(ComponentPlacement.RELATED)
                                            .addComponent(textFieldConfigFilePath, GroupLayout.PREFERRED_SIZE,
                                                    250, GroupLayout.PREFERRED_SIZE)
                                            .addGap(10).addComponent(buttonChooseConfigFile,
                                                    GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE))
                                    .addGroup(gl_jPanelRunBatchTests.createSequentialGroup()
                                            .addComponent(chckbxParallelBatch).addGap(18)
                                            .addComponent(buttonLoadConfig))
                                    .addComponent(panel, GroupLayout.PREFERRED_SIZE, 666,
                                            GroupLayout.PREFERRED_SIZE))
                            .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
            gl_jPanelRunBatchTests.setVerticalGroup(gl_jPanelRunBatchTests
                    .createParallelGroup(Alignment.LEADING)
                    .addGroup(gl_jPanelRunBatchTests.createSequentialGroup().addContainerGap()
                            .addGroup(gl_jPanelRunBatchTests.createParallelGroup(Alignment.TRAILING)
                                    .addComponent(buttonChooseConfigFile, GroupLayout.PREFERRED_SIZE, 25,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addComponent(textFieldConfigFilePath, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                    .addComponent(lblSelectConfigurationFile))
                            .addPreferredGap(ComponentPlacement.UNRELATED)
                            .addGroup(gl_jPanelRunBatchTests.createParallelGroup(Alignment.BASELINE)
                                    .addComponent(chckbxParallelBatch).addComponent(buttonLoadConfig))
                            .addPreferredGap(ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                            .addComponent(panel, GroupLayout.PREFERRED_SIZE, 261, GroupLayout.PREFERRED_SIZE)
                            .addContainerGap()));

            progressBarBatchTest = new JProgressBar();

            JLabel lblProgress = new JLabel("Progress:");
            GroupLayout gl_panel = new GroupLayout(panel);
            gl_panel.setHorizontalGroup(gl_panel.createParallelGroup(Alignment.LEADING).addGroup(gl_panel
                    .createSequentialGroup().addContainerGap()
                    .addGroup(gl_panel.createParallelGroup(Alignment.LEADING)
                            .addComponent(scrollPane4, GroupLayout.DEFAULT_SIZE, 641, Short.MAX_VALUE)
                            .addGroup(gl_panel.createSequentialGroup().addComponent(lblProgress).addGap(18)
                                    .addComponent(progressBarBatchTest, GroupLayout.PREFERRED_SIZE, 169,
                                            GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
            gl_panel.setVerticalGroup(gl_panel.createParallelGroup(Alignment.LEADING)
                    .addGroup(gl_panel.createSequentialGroup().addContainerGap()
                            .addGroup(gl_panel.createParallelGroup(Alignment.LEADING).addComponent(lblProgress)
                                    .addComponent(progressBarBatchTest, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(ComponentPlacement.RELATED)
                            .addComponent(scrollPane4, GroupLayout.PREFERRED_SIZE, 202,
                                    GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
            panel.setLayout(gl_panel);
            jPanelRunBatchTests.setLayout(gl_jPanelRunBatchTests);
            GroupLayout jPanelSetDistributionLayout = new GroupLayout(jPanelSetDistribution);
            jPanelSetDistributionLayout
                    .setHorizontalGroup(
                            jPanelSetDistributionLayout.createParallelGroup(Alignment.LEADING)
                                    .addGroup(jPanelSetDistributionLayout.createSequentialGroup()
                                            .addComponent(jPanelSettings, GroupLayout.PREFERRED_SIZE, 254,
                                                    GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(ComponentPlacement.RELATED)
                                            .addComponent(jPanelContainerTabbedPane, GroupLayout.PREFERRED_SIZE,
                                                    707, GroupLayout.PREFERRED_SIZE)
                                            .addContainerGap(21, Short.MAX_VALUE)));
            jPanelSetDistributionLayout.setVerticalGroup(jPanelSetDistributionLayout
                    .createParallelGroup(Alignment.LEADING)
                    .addGroup(jPanelSetDistributionLayout.createSequentialGroup()
                            .addGroup(jPanelSetDistributionLayout.createParallelGroup(Alignment.LEADING)
                                    .addComponent(jPanelSettings, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jPanelContainerTabbedPane, GroupLayout.DEFAULT_SIZE,
                                            GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addContainerGap()));
            jPanelSetDistribution.setLayout(jPanelSetDistributionLayout);
        }

        textAreaBatchInfo = new JTextArea();
        textAreaBatchInfo.setEditable(false);
        DefaultCaret caret = (DefaultCaret) textAreaBatchInfo.getCaret();
        caret.setUpdatePolicy(DefaultCaret.NEVER_UPDATE);
        scrollPane4.setViewportView(textAreaBatchInfo);

        //---- jLabelPlayButton ----
        jLabelPlayButton.setIcon(new ImageIcon("resources/image/NotStopped.png"));

        //---- jLabelPauseButton ----
        jLabelPauseButton.setIcon(new ImageIcon("resources/image/PauseOff.png"));

        //---- labelStopButton ----
        jLabelPlayButton.setIcon(new ImageIcon("image/NotPlaying.png"));

        jLabelPlayButton.addMouseListener(new MouseListener() {

            @Override
            public void mouseReleased(MouseEvent arg0) {
            }

            @Override
            public void mousePressed(MouseEvent arg0) {
            }

            @Override
            public void mouseExited(MouseEvent arg0) {
            }

            @Override
            public void mouseEntered(MouseEvent arg0) {
            }

            @Override
            public void mouseClicked(MouseEvent arg0) {

                jLabelPlayButton.setIcon(new ImageIcon("resources/image/Playing.png"));
                jLabelPauseButton.setIcon(new ImageIcon("resources/image/PauseOff.png"));
                jLabelStopButton.setIcon(new ImageIcon("resources/image/NotStopped.png"));
                jLabelResetButton.setIcon(new ImageIcon("resources/image/NotReload.png"));
                try {

                    master.play();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });

        //---- labelStopButton2 ----   
        jLabelStopButton.setIcon(new ImageIcon("resources/image/NotStopped.png"));
        jLabelStopButton.addMouseListener(new MouseListener() {

            @Override
            public void mouseReleased(MouseEvent e) {
            }

            @Override
            public void mousePressed(MouseEvent e) {
            }

            @Override
            public void mouseExited(MouseEvent e) {
            }

            @Override
            public void mouseEntered(MouseEvent e) {
            }

            @Override
            public void mouseClicked(MouseEvent e) {
                jLabelStopButton.setIcon(new ImageIcon("resources/image/Stopped.png"));
                jLabelPlayButton.setIcon(new ImageIcon("resources/image/NotPlaying.png"));
                jLabelPauseButton.setIcon(new ImageIcon("resources/image/PauseOff.png"));

                try {

                    Address FTPAddress = getFPTAddress();

                    if (FTPAddress != null) {
                        UpdateData ud = new UpdateData("", FTPAddress);
                        master.stop(ud);
                    }

                } catch (Exception e1) {
                    e1.printStackTrace();
                }
            }
        });

        //---- labelPauseButton ----
        jLabelPauseButton.setIcon(new ImageIcon("resources/image/PauseOff.png"));
        jLabelPauseButton.addMouseListener(new MouseListener() {

            @Override
            public void mouseReleased(MouseEvent e) {
            }

            @Override
            public void mousePressed(MouseEvent e) {
            }

            @Override
            public void mouseExited(MouseEvent e) {
            }

            @Override
            public void mouseEntered(MouseEvent e) {
            }

            @Override
            public void mouseClicked(MouseEvent e) {
                jLabelPauseButton.setIcon(new ImageIcon("resources/image/PauseOn.png"));
                jLabelStopButton.setIcon(new ImageIcon("resources/image/NotStopped.png"));
                jLabelPlayButton.setIcon(new ImageIcon("resources/image/NotPlaying.png"));
                try {
                    master.pause();
                } catch (Exception e1) {
                    e1.printStackTrace();
                }
            }
        });

        //======== jPanelNumStep ========
        {

            GroupLayout jPanelNumStepLayout = new GroupLayout(jPanelNumStep);
            jPanelNumStepLayout.setHorizontalGroup(
                    jPanelNumStepLayout.createParallelGroup(Alignment.TRAILING).addGap(0, 25, Short.MAX_VALUE));
            jPanelNumStepLayout.setVerticalGroup(
                    jPanelNumStepLayout.createParallelGroup(Alignment.LEADING).addGap(0, 28, Short.MAX_VALUE));
            jPanelNumStep.setLayout(jPanelNumStepLayout);
            jPanelNumStep.setPreferredSize(new java.awt.Dimension(89, 23));
        }
        {
            jLabelResetButton = new JLabel();
            jLabelResetButton.setIcon(new ImageIcon("resources/image/NotReload.png"));
            jLabelResetButton.setPreferredSize(new java.awt.Dimension(20, 20));

            jLabelResetButton.setVisible(enableReset);
        }

        // for resetting simulation
        jLabelResetButton.addMouseListener(new MouseListener() {

            @Override
            public void mouseClicked(MouseEvent arg0) {

                if (connected) {
                    jLabelStopButton.setIcon(new ImageIcon("resources/image/NotStopped.png"));
                    jLabelPlayButton.setIcon(new ImageIcon("resources/image/NotPlaying.png"));
                    jLabelPauseButton.setIcon(new ImageIcon("resources/image/PauseOff.png"));
                    jLabelResetButton.setIcon(new ImageIcon("resources/image/Reload.png"));

                    //send message to workers for resetting simulation
                    try {
                        master.reset();

                    } catch (Exception e1) {
                        e1.printStackTrace();
                    }

                    //clean up topic from AcitveMQ
                    connection.resetTopic();

                    setSystemSettingsEnabled(true);

                    notifyArea.append("Simulation resetted\n");

                }

            }

            @Override
            public void mouseEntered(MouseEvent arg0) {
                // TODO Auto-generated method stub

            }

            @Override
            public void mouseExited(MouseEvent arg0) {
                // TODO Auto-generated method stub

            }

            @Override
            public void mousePressed(MouseEvent arg0) {
                // TODO Auto-generated method stub

            }

            @Override
            public void mouseReleased(MouseEvent arg0) {
                // TODO Auto-generated method stub

            }
        });
        writeStepLabel = new JLabel();
        writeStepLabel.setText("0");

        lblTotalSteps = new JLabel("Steps:");

        GroupLayout panelMainLayout = new GroupLayout(panelMain);
        panelMainLayout.setHorizontalGroup(panelMainLayout.createParallelGroup(Alignment.LEADING)
                .addGroup(panelMainLayout.createSequentialGroup()
                        .addComponent(jPanelContainerSettings, GroupLayout.PREFERRED_SIZE, 0,
                                GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(ComponentPlacement.RELATED)
                        .addGroup(panelMainLayout.createParallelGroup(Alignment.LEADING)
                                .addComponent(jPanelSetDistribution, 0, 986, Short.MAX_VALUE)
                                .addGroup(panelMainLayout.createSequentialGroup().addGap(636)
                                        .addGroup(panelMainLayout.createParallelGroup(Alignment.TRAILING)
                                                .addComponent(jLabelStep, GroupLayout.PREFERRED_SIZE,
                                                        GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                                                .addGroup(panelMainLayout.createSequentialGroup()
                                                        .addComponent(lblTotalSteps)
                                                        .addPreferredGap(ComponentPlacement.UNRELATED)
                                                        .addComponent(writeStepLabel)))
                                        .addPreferredGap(ComponentPlacement.RELATED)
                                        .addComponent(jPanelNumStep, GroupLayout.PREFERRED_SIZE, 25,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addGroup(panelMainLayout.createParallelGroup(Alignment.LEADING)
                                                .addGroup(panelMainLayout.createSequentialGroup().addGap(24)
                                                        .addComponent(jLabelPlayButton,
                                                                GroupLayout.PREFERRED_SIZE,
                                                                GroupLayout.PREFERRED_SIZE,
                                                                GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(ComponentPlacement.UNRELATED)
                                                        .addComponent(jLabelPauseButton,
                                                                GroupLayout.PREFERRED_SIZE,
                                                                GroupLayout.PREFERRED_SIZE,
                                                                GroupLayout.PREFERRED_SIZE)
                                                        .addPreferredGap(ComponentPlacement.UNRELATED)
                                                        .addComponent(jLabelStopButton,
                                                                GroupLayout.PREFERRED_SIZE,
                                                                GroupLayout.PREFERRED_SIZE,
                                                                GroupLayout.PREFERRED_SIZE))
                                                .addGroup(panelMainLayout.createSequentialGroup().addGap(116)
                                                        .addComponent(jLabelResetButton,
                                                                GroupLayout.PREFERRED_SIZE, 30,
                                                                GroupLayout.PREFERRED_SIZE)))))
                        .addGap(12))
                .addComponent(jPanelContainerConnection, 0, 1004, Short.MAX_VALUE));
        panelMainLayout.setVerticalGroup(panelMainLayout.createParallelGroup(Alignment.LEADING)
                .addGroup(panelMainLayout.createSequentialGroup()
                        .addComponent(jPanelContainerConnection, GroupLayout.PREFERRED_SIZE, 71,
                                GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(ComponentPlacement.RELATED)
                        .addGroup(panelMainLayout.createParallelGroup(Alignment.LEADING)
                                .addComponent(jPanelSetDistribution, GroupLayout.PREFERRED_SIZE, 518,
                                        GroupLayout.PREFERRED_SIZE)
                                .addGroup(panelMainLayout.createSequentialGroup().addGap(29).addComponent(
                                        jPanelContainerSettings, GroupLayout.PREFERRED_SIZE, 489,
                                        GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(ComponentPlacement.RELATED)
                        .addGroup(panelMainLayout.createParallelGroup(Alignment.LEADING)
                                .addComponent(jLabelStopButton, GroupLayout.PREFERRED_SIZE,
                                        GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelPlayButton, GroupLayout.PREFERRED_SIZE,
                                        GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelPauseButton, GroupLayout.PREFERRED_SIZE,
                                        GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelResetButton, GroupLayout.PREFERRED_SIZE, 24,
                                        GroupLayout.PREFERRED_SIZE)
                                .addGroup(panelMainLayout.createParallelGroup(Alignment.BASELINE)
                                        .addComponent(writeStepLabel, GroupLayout.PREFERRED_SIZE, 16,
                                                GroupLayout.PREFERRED_SIZE)
                                        .addComponent(lblTotalSteps))
                                .addGroup(panelMainLayout.createSequentialGroup()
                                        .addComponent(jLabelStep, GroupLayout.PREFERRED_SIZE,
                                                GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(ComponentPlacement.RELATED).addComponent(jPanelNumStep,
                                                GroupLayout.PREFERRED_SIZE, 28, GroupLayout.PREFERRED_SIZE)))
                        .addContainerGap(13, Short.MAX_VALUE)));
        panelMain.setLayout(panelMainLayout);
    }

    GroupLayout contentPaneLayout = new GroupLayout(contentPane);
    contentPaneLayout.setHorizontalGroup(
            contentPaneLayout.createParallelGroup(Alignment.LEADING).addGroup(Alignment.TRAILING,
                    contentPaneLayout
                            .createSequentialGroup().addContainerGap().addComponent(panelMain,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addContainerGap()));
    contentPaneLayout.setVerticalGroup(
            contentPaneLayout.createParallelGroup(Alignment.LEADING).addGroup(Alignment.TRAILING,
                    contentPaneLayout.createSequentialGroup().addContainerGap().addComponent(panelMain,
                            GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    contentPane.setLayout(contentPaneLayout);
    pack();
    setLocationRelativeTo(null);

    refreshServerLabel.setVisible(false);

    jButtonChoseSimJar.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent arg0) {
            simulationFile = showFileChooser();
            if (simulationFile != null)
                jTextFieldPathSimJar.setText(simulationFile.getAbsolutePath());
        }
    });

}

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

    Header = new javax.swing.JLabel();
    insertionCheckBox = new javax.swing.JCheckBox();
    mergeCheckBox = new javax.swing.JCheckBox();
    quickCheckBox = new javax.swing.JCheckBox();
    selectionCheckBox = new javax.swing.JCheckBox();
    iterationLabel = new javax.swing.JLabel();
    rangeMinLabel = new javax.swing.JLabel();
    rangeMaxLabel = new javax.swing.JLabel();
    spacingLabel = new javax.swing.JLabel();
    ascendingCheckBox = new javax.swing.JCheckBox();
    descendingCheckBox = new javax.swing.JCheckBox();
    iterationField = new javax.swing.JTextField();
    rangeMinField = new javax.swing.JTextField();
    rangeMaxField = new javax.swing.JTextField();
    spacingField = new javax.swing.JTextField();
    exitButton = new javax.swing.JButton();
    runTestsButton = new javax.swing.JButton();
    insertionAboutButton = new javax.swing.JButton();
    mergeAboutButton = new javax.swing.JButton();
    quickAboutButton = new javax.swing.JButton();
    selectionAboutButton = new javax.swing.JButton();
    iterationAboutButton = new javax.swing.JButton();
    jSeparator1 = new javax.swing.JSeparator();
    rangeMinAboutButton = new javax.swing.JButton();
    jSeparator2 = new javax.swing.JSeparator();
    rangeMaxAboutButton = new javax.swing.JButton();
    intervalsAboutButton = new javax.swing.JButton();
    ascendingAboutButton = new javax.swing.JButton();
    descendingAboutButton = new javax.swing.JButton();
    authorLabel = new javax.swing.JLabel();
    randomCheckBox = new javax.swing.JCheckBox();
    randomAboutButton = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    Header.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
    Header.setText("Sort Explorer");

    insertionCheckBox.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    insertionCheckBox.setText("Insertion Sort");
    insertionCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            insertionCheckBoxActionPerformed(evt);
        }
    });

    mergeCheckBox.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    mergeCheckBox.setText("Merge Sort");
    mergeCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            mergeCheckBoxActionPerformed(evt);
        }
    });

    quickCheckBox.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    quickCheckBox.setText("Quick Sort");

    selectionCheckBox.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    selectionCheckBox.setText("Selection Sort");

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

    rangeMinLabel.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    rangeMinLabel.setText("Minimum size");

    rangeMaxLabel.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    rangeMaxLabel.setText("Maximum size");

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

    ascendingCheckBox.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    ascendingCheckBox.setText("Include Ascending Order");
    ascendingCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ascendingCheckBoxActionPerformed(evt);
        }
    });

    descendingCheckBox.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    descendingCheckBox.setText("Include Descending Order");
    descendingCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            descendingCheckBoxActionPerformed(evt);
        }
    });

    iterationField.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    iterationField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            iterationFieldActionPerformed(evt);
        }
    });

    rangeMinField.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    rangeMinField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            rangeMinFieldActionPerformed(evt);
        }
    });

    rangeMaxField.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    rangeMaxField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            rangeMaxFieldActionPerformed(evt);
        }
    });

    spacingField.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    spacingField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            spacingFieldActionPerformed(evt);
        }
    });

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

    runTestsButton.setText("Run Tests");
    runTestsButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            runTestsButtonActionPerformed(evt);
        }
    });

    insertionAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    insertionAboutButton.setText("About");
    insertionAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            insertionAboutButtonActionPerformed(evt);
        }
    });

    mergeAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    mergeAboutButton.setText("About");
    mergeAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            mergeAboutButtonActionPerformed(evt);
        }
    });

    quickAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    quickAboutButton.setText("About");
    quickAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            quickAboutButtonActionPerformed(evt);
        }
    });

    selectionAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    selectionAboutButton.setText("About");
    selectionAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            selectionAboutButtonActionPerformed(evt);
        }
    });

    iterationAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    iterationAboutButton.setText("About");
    iterationAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            iterationAboutButtonActionPerformed(evt);
        }
    });

    rangeMinAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    rangeMinAboutButton.setText("About");
    rangeMinAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            rangeMinAboutButtonActionPerformed(evt);
        }
    });

    rangeMaxAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    rangeMaxAboutButton.setText("About");
    rangeMaxAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            rangeMaxAboutButtonActionPerformed(evt);
        }
    });

    intervalsAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    intervalsAboutButton.setText("About");
    intervalsAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            intervalsAboutButtonActionPerformed(evt);
        }
    });

    ascendingAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    ascendingAboutButton.setText("About");
    ascendingAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ascendingAboutButtonActionPerformed(evt);
        }
    });

    descendingAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    descendingAboutButton.setText("About");
    descendingAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            descendingAboutButtonActionPerformed(evt);
        }
    });

    authorLabel.setText("By Dave Wagner");

    randomCheckBox.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    randomCheckBox.setText("Include Random Order");
    randomCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            randomCheckBoxActionPerformed(evt);
        }
    });

    randomAboutButton.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    randomAboutButton.setText("About");
    randomAboutButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            randomAboutButtonActionPerformed(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().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGap(20, 20, 20).addComponent(Header)
                            .addGap(18, 18, 18).addComponent(authorLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup().addGap(10, 10, 10).addComponent(jSeparator1,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 269,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup().addContainerGap()
                            .addComponent(exitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 133,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(runTestsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 129,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup().addGap(10, 10, 10).addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(quickCheckBox).addComponent(mergeCheckBox)
                                    .addComponent(insertionCheckBox).addComponent(selectionCheckBox)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addGroup(layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                                    false)
                                                            .addComponent(rangeMinLabel,
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(rangeMaxLabel,
                                                                    javax.swing.GroupLayout.Alignment.LEADING))
                                                    .addComponent(spacingLabel,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 80,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(iterationLabel,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 80,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addGroup(layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(rangeMinField,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(rangeMaxField,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(spacingField,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(iterationField,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 117,
                                                                    Short.MAX_VALUE)))
                                            .addComponent(descendingCheckBox))
                                    .addComponent(ascendingCheckBox).addComponent(randomCheckBox,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 166,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(selectionAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(quickAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(mergeAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(insertionAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(intervalsAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(rangeMaxAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(rangeMinAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(ascendingAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(iterationAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(randomAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(descendingAboutButton,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 262,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap()));

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

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

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(Header).addComponent(authorLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(insertionCheckBox).addComponent(insertionAboutButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(mergeCheckBox).addComponent(mergeAboutButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(quickCheckBox).addComponent(quickAboutButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(selectionCheckBox).addComponent(selectionAboutButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(2, 2, 2)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(rangeMinLabel)
                            .addComponent(rangeMinField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(rangeMinAboutButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(rangeMaxLabel)
                                    .addComponent(rangeMaxField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(rangeMaxAboutButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(spacingField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(spacingLabel))
                            .addComponent(intervalsAboutButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator2, 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(randomAboutButton).addComponent(randomCheckBox))
                    .addGap(6, 6, 6)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(iterationAboutButton)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(iterationField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(iterationLabel)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(ascendingAboutButton).addComponent(ascendingCheckBox))
                    .addGap(4, 4, 4)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(descendingAboutButton).addComponent(descendingCheckBox))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(exitButton, javax.swing.GroupLayout.PREFERRED_SIZE, 32,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(runTestsButton))
                    .addContainerGap(15, Short.MAX_VALUE)));

    layout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { iterationField, rangeMaxField, rangeMinField, spacingField });

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

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

    pack();
}

From source file:com.unicauca.braim.braimclient.BraimGui.java

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

    jSeparator1 = new javax.swing.JSeparator();
    lbl_braim_brand = new javax.swing.JLabel();
    pnl_user_settings = new javax.swing.JPanel();
    lbl_user = new javax.swing.JLabel();
    lbl_st = new javax.swing.JLabel();
    lbl_status = new javax.swing.JLabel();
    lbl_username = new javax.swing.JLabel();
    lbl_session = new javax.swing.JLabel();
    lbl_session_id = new javax.swing.JLabel();
    tab_panel = new javax.swing.JTabbedPane();
    tab_panel_data = new javax.swing.JPanel();
    lbl_node1 = new javax.swing.JLabel();
    lbl_node2 = new javax.swing.JLabel();
    lbl_node3 = new javax.swing.JLabel();
    txt_node_1 = new java.awt.TextField();
    txt_node_2 = new java.awt.TextField();
    txt_node_3 = new java.awt.TextField();
    lbl_node4 = new javax.swing.JLabel();
    lbl_node5 = new javax.swing.JLabel();
    lbl_node6 = new javax.swing.JLabel();
    lbl_node7 = new javax.swing.JLabel();
    lbl_node8 = new javax.swing.JLabel();
    lbl_node9 = new javax.swing.JLabel();
    txt_node_4 = new java.awt.TextField();
    txt_node_5 = new java.awt.TextField();
    txt_node_6 = new java.awt.TextField();
    txt_node_7 = new java.awt.TextField();
    txt_node_8 = new java.awt.TextField();
    txt_node_9 = new java.awt.TextField();
    lbl_node10 = new javax.swing.JLabel();
    lbl_node11 = new javax.swing.JLabel();
    lbl_node12 = new javax.swing.JLabel();
    lbl_node13 = new javax.swing.JLabel();
    lbl_node14 = new javax.swing.JLabel();
    txt_node_10 = new java.awt.TextField();
    txt_node_11 = new java.awt.TextField();
    txt_node_12 = new java.awt.TextField();
    txt_node_13 = new java.awt.TextField();
    txt_node_14 = new java.awt.TextField();
    lbl_raw_emotiv = new javax.swing.JLabel();
    lbl_excitement = new javax.swing.JLabel();
    lbl_meditation = new javax.swing.JLabel();
    lbl_frustration = new javax.swing.JLabel();
    lbl_boredom = new javax.swing.JLabel();
    pg_excitement = new javax.swing.JProgressBar();
    pg_meditation = new javax.swing.JProgressBar();
    pg_frustration = new javax.swing.JProgressBar();
    pg_boredom = new javax.swing.JProgressBar();
    tab_panel_training = new javax.swing.JPanel();
    lbl_actual_song = new javax.swing.JLabel();
    lbl_song_name = new javax.swing.JLabel();
    btn_play = new javax.swing.JButton();
    btn_pause = new javax.swing.JButton();
    btn_previous = new javax.swing.JButton();
    btn_next = new javax.swing.JButton();
    scroll_songs = new javax.swing.JScrollPane();
    list_songs = new javax.swing.JList();
    lbl_songs_list = new javax.swing.JLabel();
    lbl_progress = new javax.swing.JLabel();
    jLabel1 = new javax.swing.JLabel();
    btn_refresh_songs = new javax.swing.JButton();
    btn_stop = new javax.swing.JButton();
    bt_previous_list = new javax.swing.JButton();
    bt_next_list = new javax.swing.JButton();
    tab_panel_recommendation = new javax.swing.JPanel();
    menu_braim = new javax.swing.JMenuBar();
    menu_application = new javax.swing.JMenu();
    menu_item_quit = new javax.swing.JMenuItem();
    menu_connect = new javax.swing.JMenu();
    menu_item_emo_device = new javax.swing.JMenuItem();
    menu_item_disconnect = new javax.swing.JMenuItem();

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

    lbl_braim_brand.setFont(new java.awt.Font("Ubuntu", 1, 25)); // NOI18N
    lbl_braim_brand.setForeground(new java.awt.Color(0, 162, 255));
    lbl_braim_brand.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/unicauca/braim/images/1414623820_Brain-Games.png"))); // NOI18N
    lbl_braim_brand.setText("BraiM");

    pnl_user_settings.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
    pnl_user_settings.setMaximumSize(new java.awt.Dimension(344, 111));
    pnl_user_settings.setMinimumSize(new java.awt.Dimension(344, 111));

    lbl_user.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_user.setForeground(new java.awt.Color(0, 162, 255));
    lbl_user.setText("User:");

    lbl_st.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_st.setForeground(new java.awt.Color(0, 162, 255));
    lbl_st.setText("Status");

    lbl_status.setText("Without Connection...");

    lbl_username.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_username.setText("No user connected");

    lbl_session.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_session.setForeground(new java.awt.Color(0, 162, 255));
    lbl_session.setText("SessionID:");

    lbl_session_id.setText("No session started");

    javax.swing.GroupLayout pnl_user_settingsLayout = new javax.swing.GroupLayout(pnl_user_settings);
    pnl_user_settings.setLayout(pnl_user_settingsLayout);
    pnl_user_settingsLayout.setHorizontalGroup(pnl_user_settingsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnl_user_settingsLayout.createSequentialGroup().addContainerGap()
                    .addGroup(pnl_user_settingsLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnl_user_settingsLayout.createSequentialGroup().addComponent(lbl_user)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(lbl_username, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(pnl_user_settingsLayout.createSequentialGroup()
                                    .addGroup(pnl_user_settingsLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(pnl_user_settingsLayout.createSequentialGroup()
                                                    .addComponent(lbl_st)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(lbl_status))
                                            .addGroup(pnl_user_settingsLayout.createSequentialGroup()
                                                    .addComponent(lbl_session)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(lbl_session_id)))
                                    .addGap(0, 185, Short.MAX_VALUE)))
                    .addContainerGap()));
    pnl_user_settingsLayout.setVerticalGroup(pnl_user_settingsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnl_user_settingsLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(pnl_user_settingsLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lbl_st).addComponent(lbl_status))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(pnl_user_settingsLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lbl_user).addComponent(lbl_username))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(pnl_user_settingsLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lbl_session).addComponent(lbl_session_id))
                    .addGap(24, 24, 24)));

    tab_panel.setBackground(new java.awt.Color(255, 255, 255));
    tab_panel.setEnabled(false);

    tab_panel_data.setBackground(new java.awt.Color(255, 255, 255));
    tab_panel_data.setEnabled(false);

    lbl_node1.setText("Nodo 1");

    lbl_node2.setText("Nodo 2");

    lbl_node3.setText("Nodo 3");

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

    lbl_node4.setText("Nodo 4");

    lbl_node5.setText("Nodo 5");

    lbl_node6.setText("Nodo 6");

    lbl_node7.setText("Nodo 7");

    lbl_node8.setText("Nodo 8");

    lbl_node9.setText("Nodo 9");

    lbl_node10.setText("Nodo 10");

    lbl_node11.setText("Nodo 11");

    lbl_node12.setText("Nodo 12");

    lbl_node13.setText("Nodo 13");

    lbl_node14.setText("Nodo 14");

    lbl_raw_emotiv.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_raw_emotiv.setText("Raw Emotiv Data:");

    lbl_excitement.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_excitement.setText("Excitement:");

    lbl_meditation.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_meditation.setText("Meditation:");

    lbl_frustration.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_frustration.setText("Frustration:");

    lbl_boredom.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_boredom.setText("Boredom:");

    javax.swing.GroupLayout tab_panel_dataLayout = new javax.swing.GroupLayout(tab_panel_data);
    tab_panel_data.setLayout(tab_panel_dataLayout);
    tab_panel_dataLayout.setHorizontalGroup(tab_panel_dataLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tab_panel_dataLayout.createSequentialGroup().addGap(26, 26, 26)
                    .addGroup(tab_panel_dataLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pg_excitement, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbl_excitement))
                    .addGap(18, 18, 18)
                    .addGroup(tab_panel_dataLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                    .addComponent(pg_meditation, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(pg_frustration, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(tab_panel_dataLayout.createSequentialGroup().addComponent(lbl_meditation)
                                    .addGap(78, 78, 78).addComponent(lbl_frustration)))
                    .addGap(18, 18, 18)
                    .addGroup(
                            tab_panel_dataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lbl_boredom).addComponent(pg_boredom,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(tab_panel_dataLayout.createSequentialGroup().addGap(79, 79, 79)
                    .addGroup(tab_panel_dataLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbl_raw_emotiv)
                            .addGroup(tab_panel_dataLayout.createSequentialGroup().addGroup(tab_panel_dataLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                            .addComponent(lbl_node1)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(txt_node_1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    179, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                            .addComponent(lbl_node2)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(txt_node_2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                            .addComponent(lbl_node5)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(txt_node_5, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                            .addComponent(lbl_node6)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(txt_node_6, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                            .addComponent(lbl_node7)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(txt_node_7, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                            .addComponent(lbl_node4)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(txt_node_4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                            .addComponent(lbl_node3)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(txt_node_3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGap(38, 38, 38)
                                    .addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(tab_panel_dataLayout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                    .addComponent(lbl_node8).addComponent(lbl_node9))
                                            .addComponent(lbl_node11).addComponent(lbl_node14)
                                            .addComponent(lbl_node13).addComponent(lbl_node12)
                                            .addComponent(lbl_node10))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(txt_node_12, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_node_10, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_node_11, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_node_13, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_node_14, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txt_node_8, javax.swing.GroupLayout.DEFAULT_SIZE, 180,
                                                    Short.MAX_VALUE)
                                            .addComponent(txt_node_9, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                    .addGap(0, 0, Short.MAX_VALUE)));

    tab_panel_dataLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { txt_node_1,
            txt_node_2, txt_node_3, txt_node_4, txt_node_5, txt_node_6, txt_node_7 });

    tab_panel_dataLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { txt_node_10,
            txt_node_11, txt_node_12, txt_node_13, txt_node_14, txt_node_8, txt_node_9 });

    tab_panel_dataLayout.setVerticalGroup(tab_panel_dataLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tab_panel_dataLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(tab_panel_dataLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addGroup(
                                    tab_panel_dataLayout.createSequentialGroup().addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(lbl_excitement).addComponent(lbl_meditation)
                                            .addComponent(lbl_frustration).addComponent(lbl_boredom))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(
                                                    tab_panel_dataLayout.createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(pg_excitement,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(pg_meditation,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(pg_frustration,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(pg_boredom, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18).addComponent(lbl_raw_emotiv)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(tab_panel_dataLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                    .addComponent(txt_node_8, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(txt_node_9, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(txt_node_10, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(txt_node_11, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(12, 12, 12)
                                    .addComponent(txt_node_12, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(txt_node_13, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(txt_node_14, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(tab_panel_dataLayout.createSequentialGroup()
                                    .addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txt_node_1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lbl_node8).addComponent(lbl_node1))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lbl_node2)
                                            .addComponent(txt_node_2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lbl_node9))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lbl_node3)
                                            .addComponent(txt_node_3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    19, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lbl_node10))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lbl_node4)
                                            .addComponent(txt_node_4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lbl_node11))
                                    .addGap(12, 12, 12)
                                    .addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txt_node_5, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lbl_node5).addComponent(lbl_node12))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lbl_node6)
                                            .addComponent(txt_node_6, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lbl_node13))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(tab_panel_dataLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lbl_node7)
                                            .addComponent(txt_node_7, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lbl_node14))))
                    .addContainerGap(35, Short.MAX_VALUE)));

    tab_panel_dataLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { txt_node_1,
            txt_node_2, txt_node_3, txt_node_4, txt_node_5, txt_node_6, txt_node_7 });

    tab_panel.addTab("Emotiv Data", tab_panel_data);

    tab_panel_training.setBackground(new java.awt.Color(255, 255, 255));
    tab_panel_training.setEnabled(false);

    lbl_actual_song.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_actual_song.setText("Actual Song:");

    lbl_song_name.setText("There is any songs");

    btn_play.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/unicauca/braim/images/1414642815_audio-video-outline-play-32.png"))); // NOI18N
    btn_play.setText("Play");
    btn_play.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_playActionPerformed(evt);
        }
    });

    btn_pause.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/unicauca/braim/images/1414642731_audio-video-outline-pause-32.png"))); // NOI18N
    btn_pause.setText("Pause");
    btn_pause.setEnabled(false);
    btn_pause.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_pauseActionPerformed(evt);
        }
    });

    btn_previous.setIcon(new javax.swing.ImageIcon(getClass()
            .getResource("/com/unicauca/braim/images/1414642806_audio-video-outline-first-track-32.png"))); // NOI18N
    btn_previous.setText("Previous");
    btn_previous.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_previousActionPerformed(evt);
        }
    });

    btn_next.setIcon(new javax.swing.ImageIcon(getClass()
            .getResource("/com/unicauca/braim/images/1414642794_audio-video-outline-last-track-32.png"))); // NOI18N
    btn_next.setText("Next");
    btn_next.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_nextActionPerformed(evt);
        }
    });

    list_songs.setModel(new javax.swing.AbstractListModel() {
        @Override
        public int getSize() {
            return 0;
        }

        @Override
        public Object getElementAt(int i) {
            return null;
        }
    });
    list_songs.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            list_songsValueChanged(evt);
        }
    });
    list_songs.addVetoableChangeListener(new java.beans.VetoableChangeListener() {
        public void vetoableChange(java.beans.PropertyChangeEvent evt) throws java.beans.PropertyVetoException {
            list_songsVetoableChange(evt);
        }
    });
    scroll_songs.setViewportView(list_songs);

    lbl_songs_list.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    lbl_songs_list.setText("Songs List: ");

    lbl_progress.setText("0:0");

    jLabel1.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    jLabel1.setText("Position:");

    btn_refresh_songs.setText("Get Songs");
    btn_refresh_songs.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_refresh_songsActionPerformed(evt);
        }
    });

    btn_stop.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/unicauca/braim/images/1415418604_audio-video-outline-stop-32.png"))); // NOI18N
    btn_stop.setText("Stop");
    btn_stop.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_stopActionPerformed(evt);
        }
    });

    bt_previous_list.setFont(new java.awt.Font("TlwgTypewriter", 1, 18)); // NOI18N
    bt_previous_list.setText("<");
    bt_previous_list.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            bt_previous_listActionPerformed(evt);
        }
    });

    bt_next_list.setFont(new java.awt.Font("TlwgTypewriter", 1, 18)); // NOI18N
    bt_next_list.setText(">");
    bt_next_list.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            bt_next_listActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout tab_panel_trainingLayout = new javax.swing.GroupLayout(tab_panel_training);
    tab_panel_training.setLayout(tab_panel_trainingLayout);
    tab_panel_trainingLayout.setHorizontalGroup(tab_panel_trainingLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tab_panel_trainingLayout.createSequentialGroup().addContainerGap()
                    .addGroup(tab_panel_trainingLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(tab_panel_trainingLayout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(lbl_progress).addGap(0, 0, Short.MAX_VALUE))
                            .addGroup(tab_panel_trainingLayout.createSequentialGroup()
                                    .addGroup(tab_panel_trainingLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(scroll_songs)
                                            .addGroup(tab_panel_trainingLayout.createSequentialGroup()
                                                    .addGroup(tab_panel_trainingLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addGroup(tab_panel_trainingLayout
                                                                    .createSequentialGroup()
                                                                    .addComponent(lbl_actual_song)
                                                                    .addPreferredGap(
                                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                    .addComponent(lbl_song_name))
                                                            .addGroup(tab_panel_trainingLayout
                                                                    .createSequentialGroup()
                                                                    .addComponent(btn_play,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                            77,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                    .addPreferredGap(
                                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                    .addComponent(btn_pause)
                                                                    .addPreferredGap(
                                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                    .addComponent(btn_stop)
                                                                    .addPreferredGap(
                                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                    .addComponent(btn_previous)
                                                                    .addPreferredGap(
                                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                    .addComponent(btn_next)))
                                                    .addGap(0, 120, Short.MAX_VALUE)))
                                    .addContainerGap())
                            .addGroup(tab_panel_trainingLayout.createSequentialGroup()
                                    .addComponent(lbl_songs_list).addGap(18, 18, 18)
                                    .addComponent(btn_refresh_songs, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            202, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(bt_previous_list, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(bt_next_list, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(92, 92, 92)))));

    tab_panel_trainingLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { btn_next, btn_pause, btn_play, btn_previous, btn_stop });

    tab_panel_trainingLayout.setVerticalGroup(tab_panel_trainingLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tab_panel_trainingLayout.createSequentialGroup().addGroup(tab_panel_trainingLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tab_panel_trainingLayout.createSequentialGroup().addContainerGap()
                            .addGroup(tab_panel_trainingLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(lbl_songs_list).addComponent(btn_refresh_songs))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            tab_panel_trainingLayout.createSequentialGroup()
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(tab_panel_trainingLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(bt_previous_list).addComponent(bt_next_list))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                    .addComponent(scroll_songs, javax.swing.GroupLayout.PREFERRED_SIZE, 165,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(tab_panel_trainingLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lbl_actual_song).addComponent(lbl_song_name))
                    .addGap(5, 5, 5)
                    .addGroup(tab_panel_trainingLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lbl_progress).addComponent(jLabel1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(tab_panel_trainingLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btn_play).addComponent(btn_pause).addComponent(btn_previous)
                            .addComponent(btn_next).addComponent(btn_stop))
                    .addContainerGap()));

    tab_panel.addTab("Songs", tab_panel_training);

    tab_panel_recommendation.setBackground(new java.awt.Color(255, 255, 255));
    tab_panel_recommendation.setEnabled(false);

    javax.swing.GroupLayout tab_panel_recommendationLayout = new javax.swing.GroupLayout(
            tab_panel_recommendation);
    tab_panel_recommendation.setLayout(tab_panel_recommendationLayout);
    tab_panel_recommendationLayout.setHorizontalGroup(tab_panel_recommendationLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 703, Short.MAX_VALUE));
    tab_panel_recommendationLayout.setVerticalGroup(tab_panel_recommendationLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 342, Short.MAX_VALUE));

    tab_panel.addTab("Recommendation", tab_panel_recommendation);

    menu_application.setText("Application");

    menu_item_quit.setText("Quit");
    menu_item_quit.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menu_item_quitActionPerformed(evt);
        }
    });
    menu_application.add(menu_item_quit);

    menu_braim.add(menu_application);

    menu_connect.setText("Emotiv Connection");

    menu_item_emo_device.setText("to EmoEngine");
    menu_item_emo_device.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menu_item_emo_deviceActionPerformed(evt);
        }
    });
    menu_connect.add(menu_item_emo_device);

    menu_item_disconnect.setText("Disconnect");
    menu_item_disconnect.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menu_item_disconnectActionPerformed(evt);
        }
    });
    menu_connect.add(menu_item_disconnect);

    menu_braim.add(menu_connect);

    setJMenuBar(menu_braim);

    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(tab_panel)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(lbl_braim_brand, javax.swing.GroupLayout.PREFERRED_SIZE, 207,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(pnl_user_settings, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbl_braim_brand, javax.swing.GroupLayout.PREFERRED_SIZE, 95,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pnl_user_settings, javax.swing.GroupLayout.PREFERRED_SIZE, 102,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18).addComponent(tab_panel).addContainerGap()));

    pack();
}

From source file:com.mirth.connect.client.ui.browsers.message.MessageBrowser.java

private void initComponents() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jList1 = new javax.swing.JList();
    messagesGroup = new javax.swing.ButtonGroup();
    errorsGroup = new javax.swing.ButtonGroup();
    jDialog1 = new javax.swing.JDialog();
    jSplitPane1 = new javax.swing.JSplitPane();
    descriptionTabbedPane = new javax.swing.JTabbedPane();
    MessagesPanel = new javax.swing.JPanel();
    MessagesRadioPane = new javax.swing.JPanel();
    RawMessageRadioButton = new javax.swing.JRadioButton();
    ProcessedRawMessageRadioButton = new javax.swing.JRadioButton();
    TransformedMessageRadioButton = new javax.swing.JRadioButton();
    EncodedMessageRadioButton = new javax.swing.JRadioButton();
    SentMessageRadioButton = new javax.swing.JRadioButton();
    ResponseRadioButton = new javax.swing.JRadioButton();
    ResponseTransformedRadioButton = new javax.swing.JRadioButton();
    ProcessedResponseRadioButton = new javax.swing.JRadioButton();
    MessagesCardPane = new javax.swing.JPanel();
    RawMessageTextPane = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    ProcessedRawMessageTextPane = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    TransformedMessageTextPane = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    EncodedMessageTextPane = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    SentMessageTextPane = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    ResponseTextPane = new javax.swing.JPanel();
    responseStatusLabel = new javax.swing.JLabel();
    responseLabel = new javax.swing.JLabel();
    ResponseTextArea = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    responseStatusTextArea = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    ResponseTransformedTextPane = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    ProcessedResponseTextPane = new javax.swing.JPanel();
    ProcessedResponseTextArea = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    processedResponseStatusLabel = new javax.swing.JLabel();
    processedResponseLabel = new javax.swing.JLabel();
    processedResponseStatusTextArea = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    formatMessageCheckBox = new javax.swing.JCheckBox();
    mappingsPane = new javax.swing.JScrollPane();
    mappingsTable = null;//from  w w  w. j  a v  a2  s . c o m
    ErrorsPanel = new javax.swing.JPanel();
    ErrorsRadioPane = new javax.swing.JPanel();
    ProcessingErrorRadioButton = new javax.swing.JRadioButton();
    PostprocessorErrorRadioButton = new javax.swing.JRadioButton();
    ResponseErrorRadioButton = new javax.swing.JRadioButton();
    ErrorsCardPane = new javax.swing.JPanel();
    ProcessingErrorTextPane = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    PostprocessorErrorTextPane = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    ResponseErrorTextPane = new com.mirth.connect.client.ui.components.MirthSyntaxTextArea();
    attachmentsPane = new javax.swing.JScrollPane();
    attachmentTable = null;
    messageScrollPane = new javax.swing.JScrollPane();
    messageTreeTable = new com.mirth.connect.client.ui.components.MirthTreeTable("messageBrowser",
            defaultVisibleColumns);
    jPanel1 = new javax.swing.JPanel();
    pageNumberLabel = new javax.swing.JLabel();
    mirthDatePicker1 = new com.mirth.connect.client.ui.components.MirthDatePicker();
    resultsLabel = new javax.swing.JLabel();
    lastSearchCriteriaPane = new javax.swing.JScrollPane();
    lastSearchCriteria = new javax.swing.JTextArea();
    previousPageButton = new javax.swing.JButton();
    statusBoxQueued = new com.mirth.connect.client.ui.components.MirthCheckBox();
    pageTotalLabel = new javax.swing.JLabel();
    textSearchField = new javax.swing.JTextField();
    pageNumberField = new com.mirth.connect.client.ui.components.MirthTextField();
    jLabel2 = new javax.swing.JLabel();
    textSearchLabel = new javax.swing.JLabel();
    filterButton = new javax.swing.JButton();
    statusBoxFiltered = new com.mirth.connect.client.ui.components.MirthCheckBox();
    pageSizeLabel = new javax.swing.JLabel();
    statusBoxSent = new com.mirth.connect.client.ui.components.MirthCheckBox();
    resetButton = new javax.swing.JButton();
    countButton = new com.mirth.connect.client.ui.components.MirthButton();
    advSearchButton = new javax.swing.JButton();
    pageSizeField = new com.mirth.connect.client.ui.components.MirthTextField();
    statusBoxError = new com.mirth.connect.client.ui.components.MirthCheckBox();
    mirthTimePicker2 = new com.mirth.connect.client.ui.components.MirthTimePicker();
    statusBoxReceived = new com.mirth.connect.client.ui.components.MirthCheckBox();
    pageGoButton = new javax.swing.JButton();
    statusBoxTransformed = new com.mirth.connect.client.ui.components.MirthCheckBox();
    mirthTimePicker1 = new com.mirth.connect.client.ui.components.MirthTimePicker();
    jLabel3 = new javax.swing.JLabel();
    allDayCheckBox = new com.mirth.connect.client.ui.components.MirthCheckBox();
    mirthDatePicker2 = new com.mirth.connect.client.ui.components.MirthDatePicker();
    nextPageButton = new javax.swing.JButton();
    regexTextSearchCheckBox = new com.mirth.connect.client.ui.components.MirthCheckBox();

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

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

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

    javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());
    jDialog1.getContentPane().setLayout(jDialog1Layout);
    jDialog1Layout.setHorizontalGroup(jDialog1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 400, Short.MAX_VALUE));
    jDialog1Layout.setVerticalGroup(jDialog1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 300, Short.MAX_VALUE));

    setBackground(new java.awt.Color(255, 255, 255));
    setFocusable(false);
    setRequestFocusEnabled(false);

    jSplitPane1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jSplitPane1.setDividerLocation(265);
    jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

    descriptionTabbedPane.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    descriptionTabbedPane.setFocusable(false);

    MessagesPanel.setBackground(new java.awt.Color(255, 255, 255));
    MessagesPanel.setFocusable(false);

    MessagesRadioPane.setBackground(new java.awt.Color(255, 255, 255));
    MessagesRadioPane.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 0));

    RawMessageRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    messagesGroup.add(RawMessageRadioButton);
    RawMessageRadioButton.setText("Raw");
    RawMessageRadioButton.setFocusable(false);
    RawMessageRadioButton.setRequestFocusEnabled(false);
    RawMessageRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            RawMessageRadioButtonActionPerformed(evt);
        }
    });
    MessagesRadioPane.add(RawMessageRadioButton);

    ProcessedRawMessageRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    messagesGroup.add(ProcessedRawMessageRadioButton);
    ProcessedRawMessageRadioButton.setText("Processed Raw");
    ProcessedRawMessageRadioButton.setFocusable(false);
    ProcessedRawMessageRadioButton.setRequestFocusEnabled(false);
    ProcessedRawMessageRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ProcessedRawMessageRadioButtonActionPerformed(evt);
        }
    });
    MessagesRadioPane.add(ProcessedRawMessageRadioButton);

    TransformedMessageRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    messagesGroup.add(TransformedMessageRadioButton);
    TransformedMessageRadioButton.setText("Transformed");
    TransformedMessageRadioButton.setFocusable(false);
    TransformedMessageRadioButton.setRequestFocusEnabled(false);
    TransformedMessageRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            TransformedMessageRadioButtonActionPerformed(evt);
        }
    });
    MessagesRadioPane.add(TransformedMessageRadioButton);

    EncodedMessageRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    messagesGroup.add(EncodedMessageRadioButton);
    EncodedMessageRadioButton.setText("Encoded");
    EncodedMessageRadioButton.setFocusable(false);
    EncodedMessageRadioButton.setRequestFocusEnabled(false);
    EncodedMessageRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            EncodedMessageRadioButtonActionPerformed(evt);
        }
    });
    MessagesRadioPane.add(EncodedMessageRadioButton);

    SentMessageRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    messagesGroup.add(SentMessageRadioButton);
    SentMessageRadioButton.setText("Sent");
    SentMessageRadioButton.setFocusable(false);
    SentMessageRadioButton.setRequestFocusEnabled(false);
    SentMessageRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SentMessageRadioButtonActionPerformed(evt);
        }
    });
    MessagesRadioPane.add(SentMessageRadioButton);

    ResponseRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    messagesGroup.add(ResponseRadioButton);
    ResponseRadioButton.setText("Response");
    ResponseRadioButton.setFocusable(false);
    ResponseRadioButton.setRequestFocusEnabled(false);
    ResponseRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ResponseRadioButtonActionPerformed(evt);
        }
    });
    MessagesRadioPane.add(ResponseRadioButton);

    ResponseTransformedRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    messagesGroup.add(ResponseTransformedRadioButton);
    ResponseTransformedRadioButton.setText("Response Transformed");
    ResponseTransformedRadioButton.setFocusable(false);
    ResponseTransformedRadioButton.setRequestFocusEnabled(false);
    ResponseTransformedRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ResponseTransformedRadioButtonActionPerformed(evt);
        }
    });
    MessagesRadioPane.add(ResponseTransformedRadioButton);

    ProcessedResponseRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    messagesGroup.add(ProcessedResponseRadioButton);
    ProcessedResponseRadioButton.setText("Processed Response");
    ProcessedResponseRadioButton.setFocusable(false);
    ProcessedResponseRadioButton.setRequestFocusEnabled(false);
    ProcessedResponseRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ProcessedResponseRadioButtonActionPerformed(evt);
        }
    });
    MessagesRadioPane.add(ProcessedResponseRadioButton);

    MessagesCardPane.setBackground(new java.awt.Color(255, 255, 255));
    MessagesCardPane.setLayout(new java.awt.CardLayout());

    RawMessageTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    RawMessageTextPane.setEditable(false);
    MessagesCardPane.add(RawMessageTextPane, "Raw");

    ProcessedRawMessageTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    ProcessedRawMessageTextPane.setEditable(false);
    MessagesCardPane.add(ProcessedRawMessageTextPane, "Processed Raw");

    TransformedMessageTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    TransformedMessageTextPane.setEditable(false);
    MessagesCardPane.add(TransformedMessageTextPane, "Transformed");

    EncodedMessageTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    EncodedMessageTextPane.setEditable(false);
    MessagesCardPane.add(EncodedMessageTextPane, "Encoded");

    SentMessageTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    SentMessageTextPane.setEditable(false);
    MessagesCardPane.add(SentMessageTextPane, "Sent");

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

    responseStatusLabel.setText("Status:");

    responseLabel.setText("Response:");

    ResponseTextArea.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    ResponseTextArea.setEditable(false);

    responseStatusTextArea.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    responseStatusTextArea.setEditable(false);

    javax.swing.GroupLayout ResponseTextPaneLayout = new javax.swing.GroupLayout(ResponseTextPane);
    ResponseTextPane.setLayout(ResponseTextPaneLayout);
    ResponseTextPaneLayout.setHorizontalGroup(
            ResponseTextPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(ResponseTextArea, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(ResponseTextPaneLayout.createSequentialGroup()
                            .addGroup(ResponseTextPaneLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(responseStatusLabel).addComponent(responseLabel))
                            .addGap(0, 720, Short.MAX_VALUE))
                    .addComponent(responseStatusTextArea, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    ResponseTextPaneLayout.setVerticalGroup(
            ResponseTextPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(ResponseTextPaneLayout.createSequentialGroup().addComponent(responseStatusLabel)
                            .addGap(3, 3, 3)
                            .addComponent(responseStatusTextArea, javax.swing.GroupLayout.PREFERRED_SIZE, 57,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(responseLabel).addGap(3, 3, 3).addComponent(ResponseTextArea,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)));

    MessagesCardPane.add(ResponseTextPane, "Response");

    ResponseTransformedTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    ResponseTransformedTextPane.setEditable(false);
    MessagesCardPane.add(ResponseTransformedTextPane, "Response Transformed");

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

    ProcessedResponseTextArea.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    ProcessedResponseTextArea.setEditable(false);

    processedResponseStatusLabel.setText("Status:");

    processedResponseLabel.setText("Response:");

    processedResponseStatusTextArea.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    processedResponseStatusTextArea.setEditable(false);

    javax.swing.GroupLayout ProcessedResponseTextPaneLayout = new javax.swing.GroupLayout(
            ProcessedResponseTextPane);
    ProcessedResponseTextPane.setLayout(ProcessedResponseTextPaneLayout);
    ProcessedResponseTextPaneLayout.setHorizontalGroup(ProcessedResponseTextPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(ProcessedResponseTextArea, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(ProcessedResponseTextPaneLayout.createSequentialGroup()
                    .addGroup(ProcessedResponseTextPaneLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(processedResponseStatusLabel).addComponent(processedResponseLabel))
                    .addGap(0, 720, Short.MAX_VALUE))
            .addComponent(processedResponseStatusTextArea, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    ProcessedResponseTextPaneLayout.setVerticalGroup(ProcessedResponseTextPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProcessedResponseTextPaneLayout.createSequentialGroup()
                    .addComponent(processedResponseStatusLabel).addGap(3, 3, 3)
                    .addComponent(processedResponseStatusTextArea, javax.swing.GroupLayout.PREFERRED_SIZE, 57,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(processedResponseLabel).addGap(3, 3, 3)
                    .addComponent(ProcessedResponseTextArea, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    MessagesCardPane.add(ProcessedResponseTextPane, "Processed Response");

    formatMessageCheckBox.setBackground(new java.awt.Color(255, 255, 255));
    formatMessageCheckBox.setText("Format XML Messages");
    formatMessageCheckBox.setToolTipText("Pretty print messages that are XML.");
    formatMessageCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            formatMessageCheckBoxActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout MessagesPanelLayout = new javax.swing.GroupLayout(MessagesPanel);
    MessagesPanel.setLayout(MessagesPanelLayout);
    MessagesPanelLayout.setHorizontalGroup(MessagesPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MessagesPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(MessagesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(MessagesCardPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(MessagesPanelLayout.createSequentialGroup()
                                    .addComponent(formatMessageCheckBox).addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(MessagesRadioPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));
    MessagesPanelLayout
            .setVerticalGroup(MessagesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(MessagesPanelLayout.createSequentialGroup().addContainerGap()
                            .addComponent(MessagesRadioPane, javax.swing.GroupLayout.PREFERRED_SIZE, 17,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(MessagesCardPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(formatMessageCheckBox).addContainerGap()));

    descriptionTabbedPane.addTab("Messages", MessagesPanel);

    mappingsPane.setViewportView(mappingsTable);

    descriptionTabbedPane.addTab("Mappings", mappingsPane);

    ErrorsPanel.setBackground(new java.awt.Color(255, 255, 255));
    ErrorsPanel.setFocusable(false);

    ErrorsRadioPane.setBackground(new java.awt.Color(255, 255, 255));
    ErrorsRadioPane.setMinimumSize(new java.awt.Dimension(601, 19));
    ErrorsRadioPane.setPreferredSize(new java.awt.Dimension(601, 19));
    ErrorsRadioPane.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 0));

    ProcessingErrorRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    errorsGroup.add(ProcessingErrorRadioButton);
    ProcessingErrorRadioButton.setText("Processing Error");
    ProcessingErrorRadioButton.setFocusable(false);
    ProcessingErrorRadioButton.setRequestFocusEnabled(false);
    ProcessingErrorRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ProcessingErrorRadioButtonActionPerformed(evt);
        }
    });
    ErrorsRadioPane.add(ProcessingErrorRadioButton);

    PostprocessorErrorRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    errorsGroup.add(PostprocessorErrorRadioButton);
    PostprocessorErrorRadioButton.setText("Postprocessor Error");
    PostprocessorErrorRadioButton.setFocusable(false);
    PostprocessorErrorRadioButton.setRequestFocusEnabled(false);
    PostprocessorErrorRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PostprocessorErrorRadioButtonActionPerformed(evt);
        }
    });
    ErrorsRadioPane.add(PostprocessorErrorRadioButton);

    ResponseErrorRadioButton.setBackground(new java.awt.Color(255, 255, 255));
    errorsGroup.add(ResponseErrorRadioButton);
    ResponseErrorRadioButton.setText("Response Error");
    ResponseErrorRadioButton.setFocusable(false);
    ResponseErrorRadioButton.setRequestFocusEnabled(false);
    ResponseErrorRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ResponseErrorRadioButtonActionPerformed(evt);
        }
    });
    ErrorsRadioPane.add(ResponseErrorRadioButton);

    ErrorsCardPane.setBackground(new java.awt.Color(255, 255, 255));
    ErrorsCardPane.setLayout(new java.awt.CardLayout());

    ProcessingErrorTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    ProcessingErrorTextPane.setEditable(false);
    ErrorsCardPane.add(ProcessingErrorTextPane, "Processing Error");

    PostprocessorErrorTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    PostprocessorErrorTextPane.setEditable(false);
    ErrorsCardPane.add(PostprocessorErrorTextPane, "Postprocessor Error");

    ResponseErrorTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    ResponseErrorTextPane.setEditable(false);
    ErrorsCardPane.add(ResponseErrorTextPane, "Response Error");

    javax.swing.GroupLayout ErrorsPanelLayout = new javax.swing.GroupLayout(ErrorsPanel);
    ErrorsPanel.setLayout(ErrorsPanelLayout);
    ErrorsPanelLayout.setHorizontalGroup(ErrorsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ErrorsPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(ErrorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(ErrorsCardPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(ErrorsRadioPane, javax.swing.GroupLayout.DEFAULT_SIZE, 773,
                                    Short.MAX_VALUE))
                    .addContainerGap()));
    ErrorsPanelLayout.setVerticalGroup(ErrorsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ErrorsPanelLayout.createSequentialGroup().addContainerGap()
                    .addComponent(ErrorsRadioPane, javax.swing.GroupLayout.PREFERRED_SIZE, 17,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ErrorsCardPane, javax.swing.GroupLayout.DEFAULT_SIZE, 155, Short.MAX_VALUE)
                    .addContainerGap()));

    descriptionTabbedPane.addTab("Errors", ErrorsPanel);

    attachmentsPane.setViewportView(attachmentTable);

    descriptionTabbedPane.addTab("Attachments", attachmentsPane);

    jSplitPane1.setRightComponent(descriptionTabbedPane);

    messageScrollPane.setViewportView(messageTreeTable);

    jSplitPane1.setLeftComponent(messageScrollPane);

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

    pageNumberLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    pageNumberLabel.setText("Page");

    resultsLabel.setForeground(new java.awt.Color(204, 0, 0));
    resultsLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    resultsLabel.setText("Results");

    lastSearchCriteriaPane.setBorder(null);
    lastSearchCriteriaPane
            .setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

    lastSearchCriteria.setEditable(false);
    lastSearchCriteria.setColumns(20);
    lastSearchCriteria.setForeground(new java.awt.Color(96, 96, 96));
    lastSearchCriteria.setLineWrap(true);
    lastSearchCriteria.setRows(5);
    lastSearchCriteria.setAlignmentX(0.0F);
    lastSearchCriteria.setDisabledTextColor(new java.awt.Color(255, 255, 255));
    lastSearchCriteriaPane.setViewportView(lastSearchCriteria);

    previousPageButton.setText("< Prev");
    previousPageButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            previousPageButtonActionPerformed(evt);
        }
    });

    statusBoxQueued.setBackground(new java.awt.Color(255, 255, 255));
    statusBoxQueued.setText("QUEUED");
    statusBoxQueued.setFont(new java.awt.Font("Lucida Grande", 0, 11)); // NOI18N

    pageTotalLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    pageTotalLabel.setText("of ?");
    pageTotalLabel.setAlignmentY(0.0F);
    pageTotalLabel.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

    textSearchField.setToolTipText(
            "<html>\nSearch all message content for the given string. This process could take a long<br/>\ntime depending on the amount of message content currently stored. Any message<br/>\ncontent that was encrypted by this channel will not be searchable.\n</html>");
    textSearchField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            textSearchFieldActionPerformed(evt);
        }
    });

    pageNumberField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    pageNumberField.setToolTipText("Enter a page number and press Enter to jump to that page.");
    pageNumberField.setPreferredSize(new java.awt.Dimension(40, 22));

    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel2.setText("End Time:");
    jLabel2.setMaximumSize(new java.awt.Dimension(78, 15));

    textSearchLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    textSearchLabel.setText("Text Search:");

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

    statusBoxFiltered.setBackground(new java.awt.Color(255, 255, 255));
    statusBoxFiltered.setText("FILTERED");
    statusBoxFiltered.setFont(new java.awt.Font("Lucida Grande", 0, 11)); // NOI18N
    statusBoxFiltered.setMaximumSize(new java.awt.Dimension(83, 23));
    statusBoxFiltered.setMinimumSize(new java.awt.Dimension(83, 23));

    pageSizeLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    pageSizeLabel.setText("Page Size:");
    pageSizeLabel.setMaximumSize(new java.awt.Dimension(78, 15));

    statusBoxSent.setBackground(new java.awt.Color(255, 255, 255));
    statusBoxSent.setText("SENT");
    statusBoxSent.setFont(new java.awt.Font("Lucida Grande", 0, 11)); // NOI18N

    resetButton.setText("Reset");
    resetButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            resetButtonActionPerformed(evt);
        }
    });

    countButton.setText("Count");
    countButton.setToolTipText("Count the number of overall messages for the current search criteria.");
    countButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            countButtonActionPerformed(evt);
        }
    });

    advSearchButton.setText("Advanced...");
    advSearchButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            advSearchButtonActionPerformed(evt);
        }
    });

    pageSizeField.setToolTipText(
            "<html>\nAfter changing the page size, a new search must be performed for the changes to<br/>\ntake effect.  The default page size can also be configured on the Settings panel.\n</html>");

    statusBoxError.setBackground(new java.awt.Color(255, 255, 255));
    statusBoxError.setText("ERROR");
    statusBoxError.setFont(new java.awt.Font("Lucida Grande", 0, 11)); // NOI18N

    statusBoxReceived.setBackground(new java.awt.Color(255, 255, 255));
    statusBoxReceived.setText("RECEIVED");
    statusBoxReceived.setFont(new java.awt.Font("Lucida Grande", 0, 11)); // NOI18N
    statusBoxReceived.setPreferredSize(new java.awt.Dimension(90, 22));

    pageGoButton.setText("Go");
    pageGoButton.setNextFocusableComponent(messageTreeTable);
    pageGoButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            pageGoButtonActionPerformed(evt);
        }
    });

    statusBoxTransformed.setBackground(new java.awt.Color(255, 255, 255));
    statusBoxTransformed.setText("TRANSFORMED");
    statusBoxTransformed.setFont(new java.awt.Font("Lucida Grande", 0, 11)); // NOI18N
    statusBoxTransformed.setMaximumSize(new java.awt.Dimension(83, 23));
    statusBoxTransformed.setMinimumSize(new java.awt.Dimension(83, 23));

    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel3.setText("Start Time:");
    jLabel3.setMaximumSize(new java.awt.Dimension(78, 15));

    allDayCheckBox.setBackground(new java.awt.Color(255, 255, 255));
    allDayCheckBox.setText("All Day");
    allDayCheckBox.setFont(new java.awt.Font("Lucida Grande", 0, 11)); // NOI18N
    allDayCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            allDayCheckBoxActionPerformed(evt);
        }
    });

    nextPageButton.setText("Next >");
    nextPageButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            nextPageButtonActionPerformed(evt);
        }
    });

    regexTextSearchCheckBox.setBackground(new java.awt.Color(255, 255, 255));
    regexTextSearchCheckBox.setText("Regex");
    regexTextSearchCheckBox.setToolTipText(
            "<html> Search all message content for a match to the regular expression pattern.<br/> Regex matching could be a very costly operation and should be used with<br/> caution, specially with large amount of messages. Any message content<br/> that was encrypted by this channel will not be searchable. Only supported<br/> on PostgreSQL, Oracle and MySQL databases.</html> ");

    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.TRAILING, false)
                            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(pageSizeLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(textSearchLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(pageSizeField, javax.swing.GroupLayout.PREFERRED_SIZE, 55,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(advSearchButton, javax.swing.GroupLayout.PREFERRED_SIZE, 89,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(resetButton, javax.swing.GroupLayout.PREFERRED_SIZE, 56,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout
                                            .createSequentialGroup()
                                            .addComponent(mirthDatePicker1,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(mirthTimePicker1,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 80,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout
                                            .createSequentialGroup()
                                            .addComponent(mirthDatePicker2,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(mirthTimePicker2,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 80,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(textSearchField, javax.swing.GroupLayout.Alignment.TRAILING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 218,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(allDayCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, 63,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(regexTextSearchCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(statusBoxQueued, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(statusBoxSent, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(statusBoxError, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(statusBoxReceived, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(statusBoxFiltered, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(statusBoxTransformed, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(117, 117, 117)
                    .addComponent(
                            lastSearchCriteriaPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(previousPageButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            55, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(nextPageButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(resultsLabel)
                                    .addGap(5, 5, 5)
                                    .addComponent(countButton, javax.swing.GroupLayout.PREFERRED_SIZE, 55,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(pageNumberLabel)
                                    .addGap(4, 4, 4)
                                    .addComponent(pageNumberField, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(6, 6, 6).addComponent(pageTotalLabel).addGap(5, 5, 5)
                                    .addComponent(pageGoButton, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));

    jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { mirthTimePicker1, mirthTimePicker2 });

    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup().addGap(4, 4, 4)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(mirthTimePicker1,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel1Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(mirthDatePicker1,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jLabel3,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGap(7, 7, 7)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(mirthTimePicker2,
                                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(jPanel1Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(mirthDatePicker2,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jLabel2,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGap(7, 7, 7)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(textSearchField,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(textSearchLabel).addComponent(regexTextSearchCheckBox,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout
                                    .createSequentialGroup().addContainerGap()
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(countButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(resultsLabel))
                                    .addGap(7, 7, 7)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(pageGoButton).addComponent(pageTotalLabel)
                                            .addComponent(pageNumberField,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(pageNumberLabel))))
                            .addGap(7, 7, 7)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                                    .addComponent(nextPageButton).addComponent(previousPageButton)
                                    .addComponent(filterButton)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(resetButton).addComponent(advSearchButton)
                                            .addGroup(jPanel1Layout.createSequentialGroup().addGap(4, 4, 4)
                                                    .addComponent(pageSizeLabel,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel1Layout.createSequentialGroup().addGap(1, 1, 1)
                                                    .addComponent(pageSizeField,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(jPanel1Layout.createSequentialGroup().addGap(4, 4, 4).addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lastSearchCriteriaPane, javax.swing.GroupLayout.PREFERRED_SIZE, 107,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(statusBoxReceived, javax.swing.GroupLayout.PREFERRED_SIZE, 16,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(allDayCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(statusBoxTransformed, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            16, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(statusBoxFiltered, javax.swing.GroupLayout.PREFERRED_SIZE, 16,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(statusBoxQueued, javax.swing.GroupLayout.PREFERRED_SIZE, 16,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(statusBoxSent, javax.swing.GroupLayout.PREFERRED_SIZE, 16,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(statusBoxError, javax.swing.GroupLayout.PREFERRED_SIZE, 16,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

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