Example usage for javax.swing GroupLayout setVerticalGroup

List of usage examples for javax.swing GroupLayout setVerticalGroup

Introduction

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

Prototype

public void setVerticalGroup(Group group) 

Source Link

Document

Sets the Group that positions and sizes components along the vertical axis.

Usage

From source file:org.nekorp.workflow.desktop.view.FormatoProgramacionView.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  . j  a va 2s . c  o m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jLabel1 = new javax.swing.JLabel();
    importar = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    info = new org.nekorp.workflow.desktop.view.binding.SimpleBindableJTextArea();

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

    jLabel1.setText("formato de programacin:");

    importar.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
    importar.setText("Importar");
    importar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            importarActionPerformed(evt);
        }
    });

    jLabel2.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
    jLabel2.setText(" ");

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

    info.setEditable(false);
    info.setColumns(20);
    info.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
    info.setRows(8);
    jScrollPane1.setViewportView(info);

    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)
                            .addGroup(layout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup().addComponent(importar).addGap(0, 0,
                                    Short.MAX_VALUE))
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 490,
                                    Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(jLabel2))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(importar)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
}

From source file:com.webcrawler.WebCrawlerMain.java

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

    jPanel1 = new javax.swing.JPanel();
    lblEnterURL = new javax.swing.JLabel();
    txtURL = new javax.swing.JTextField();
    btnDownload = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    pnlDownload = new javax.swing.JPanel();
    progBarDownload = new javax.swing.JProgressBar();
    lblDownload = new javax.swing.JLabel();
    pnlChooseDirectory = new javax.swing.JPanel();
    lblSaveInDir = new javax.swing.JLabel();
    txtFldChooseDir = new javax.swing.JTextField();
    btnBrowseDir = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Image Downloader");

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

    lblEnterURL.setText("Enter URL");

    txtURL.setToolTipText("Type URL here");
    txtURL.setName("txtURL"); // NOI18N
    txtURL.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            txtURLActionPerformed(evt);
        }
    });

    btnDownload.setText("Download Images!");
    btnDownload.setName("btnDownload"); // NOI18N
    btnDownload.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnDownloadActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(lblEnterURL)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtURL, javax.swing.GroupLayout.PREFERRED_SIZE, 564,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(btnDownload).addContainerGap(13, Short.MAX_VALUE)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addGap(0, 10, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblEnterURL)
                            .addComponent(txtURL, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnDownload))));

    txtURL.getAccessibleContext().setAccessibleName("txtURL");

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

    lblDownload.setText("jLabel2");

    javax.swing.GroupLayout pnlDownloadLayout = new javax.swing.GroupLayout(pnlDownload);
    pnlDownload.setLayout(pnlDownloadLayout);
    pnlDownloadLayout.setHorizontalGroup(pnlDownloadLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDownloadLayout.createSequentialGroup().addGap(25, 25, 25)
                    .addGroup(pnlDownloadLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pnlDownloadLayout.createSequentialGroup().addComponent(lblDownload)
                                    .addContainerGap())
                            .addComponent(progBarDownload, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));
    pnlDownloadLayout.setVerticalGroup(pnlDownloadLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDownloadLayout.createSequentialGroup().addGap(15, 15, 15).addComponent(lblDownload)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(progBarDownload, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(26, Short.MAX_VALUE)));

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

    lblSaveInDir.setText("Save In Directory:");

    txtFldChooseDir.setEnabled(false);

    btnBrowseDir.setText("Browse");
    btnBrowseDir.setName("btnBrowse"); // NOI18N
    btnBrowseDir.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnBrowseDirActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout pnlChooseDirectoryLayout = new javax.swing.GroupLayout(pnlChooseDirectory);
    pnlChooseDirectory.setLayout(pnlChooseDirectoryLayout);
    pnlChooseDirectoryLayout.setHorizontalGroup(
            pnlChooseDirectoryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlChooseDirectoryLayout.createSequentialGroup().addComponent(lblSaveInDir)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtFldChooseDir, javax.swing.GroupLayout.PREFERRED_SIZE, 534,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(btnBrowseDir).addGap(0, 0, Short.MAX_VALUE)));
    pnlChooseDirectoryLayout.setVerticalGroup(
            pnlChooseDirectoryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlChooseDirectoryLayout.createSequentialGroup().addContainerGap()
                            .addGroup(pnlChooseDirectoryLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(lblSaveInDir)
                                    .addComponent(txtFldChooseDir, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(btnBrowseDir))
                            .addContainerGap(14, Short.MAX_VALUE)));

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

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

    pack();
}

From source file:ftp.search.Index.java

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

    jButton1 = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    jTextField1 = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

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

    jLabel1.setBackground(new java.awt.Color(153, 255, 153));
    jLabel1.setFont(new java.awt.Font("Trebuchet MS", 0, 24)); // NOI18N
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("FTP Indexing (An Indem Initiative)");

    jLabel2.setFont(new java.awt.Font("Trebuchet MS", 0, 14)); // NOI18N
    jLabel2.setText("Enter FTP Address");

    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(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 510, Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 126,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextField1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton1)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 94,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton1).addComponent(jLabel2))
                    .addContainerGap(20, Short.MAX_VALUE)));

    pack();
}

From source file:cz.moz.java.contactmanager.AddContactFrame.java

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

    jFormattedTextField1 = new javax.swing.JFormattedTextField();
    applyButton = new javax.swing.JButton();
    lastNameField = new javax.swing.JFormattedTextField();
    firstNameField = new javax.swing.JFormattedTextField();
    phoneNumberField = new javax.swing.JFormattedTextField();
    eMailField = new javax.swing.JFormattedTextField();
    addressField = new javax.swing.JFormattedTextField();

    jFormattedTextField1.setText("jFormattedTextField1");

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    applyButton.setText("Apply");
    applyButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            applyButtonActionPerformed(evt);
        }
    });

    lastNameField.setText("Last Name");

    firstNameField.setText("First Name");

    phoneNumberField.setText("Phone number");
    phoneNumberField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            phoneNumberFieldActionPerformed(evt);
        }
    });

    eMailField.setText("E-Mail");

    addressField.setText("Address");

    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, false)
                    .addComponent(applyButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lastNameField)
                    .addComponent(firstNameField, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)
                    .addComponent(phoneNumberField, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)
                    .addComponent(eMailField, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)
                    .addComponent(addressField, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE))
                    .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().addContainerGap()
                    .addComponent(lastNameField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(firstNameField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(phoneNumberField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(eMailField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(applyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
}

From source file:de.fub.maps.project.detector.model.inference.ui.InferenceResultPanel.java

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

    jPanel3 = new javax.swing.JPanel();
    title = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    classificationBarChart = new de.fub.maps.project.detector.model.inference.ui.charts.ClassificationBarChart();
    jPanel6 = new javax.swing.JPanel();
    outlineView = new CustomOutlineView(NbBundle.getMessage(InferenceResultPanel.class, "CLT_Doman_Axis_Name"));
    jPanel1 = new javax.swing.JPanel();
    jPanel4 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    classifiedInstances = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    notClassifiedInstances = new javax.swing.JLabel();
    jPanel5 = new javax.swing.JPanel();
    toolBar = new javax.swing.JToolBar();
    filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0),
            new java.awt.Dimension(32767, 0));
    infoButton = new javax.swing.JButton();
    jSeparator1 = new javax.swing.JSeparator();
    jSeparator2 = new javax.swing.JSeparator();

    setBackground(new java.awt.Color(255, 255, 255));
    setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(102, 102, 102)));
    setMinimumSize(new java.awt.Dimension(54, 300));
    setPreferredSize(new java.awt.Dimension(0, 300));
    setLayout(new java.awt.BorderLayout(0, 8));

    jPanel3.setBackground(new java.awt.Color(255, 216, 178));
    jPanel3.setBorder(
            javax.swing.BorderFactory.createMatteBorder(0, 0, 2, 0, new java.awt.Color(204, 204, 204)));
    jPanel3.setMinimumSize(new java.awt.Dimension(0, 32));
    jPanel3.setPreferredSize(new java.awt.Dimension(0, 32));
    jPanel3.setLayout(new java.awt.BorderLayout());

    title.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
    title.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    org.openide.awt.Mnemonics.setLocalizedText(title, org.openide.util.NbBundle
            .getMessage(InferenceResultPanel.class, "InferenceResultPanel.title.text")); // NOI18N
    jPanel3.add(title, java.awt.BorderLayout.CENTER);

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

    jPanel2.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 4, 8, 4));
    jPanel2.setOpaque(false);
    jPanel2.setPreferredSize(new java.awt.Dimension(0, 0));

    classificationBarChart.setPreferredSize(new java.awt.Dimension(0, 420));

    jPanel6.setOpaque(false);
    jPanel6.setPreferredSize(new java.awt.Dimension(0, 402));
    jPanel6.setLayout(new java.awt.BorderLayout());

    outlineView.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));
    outlineView.setPreferredSize(new java.awt.Dimension(0, 402));
    outlineView.setPropertyColumns(
            new String[] { "instancesAbs", "Instances (abs.)", "instancesRel", "Instances (rel.)" });
    jPanel6.add(outlineView, java.awt.BorderLayout.CENTER);

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addComponent(classificationBarChart, javax.swing.GroupLayout.DEFAULT_SIZE, 655,
                            Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jPanel6,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(classificationBarChart, javax.swing.GroupLayout.PREFERRED_SIZE, 209,
                    javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 209,
                    javax.swing.GroupLayout.PREFERRED_SIZE));

    add(jPanel2, java.awt.BorderLayout.CENTER);

    jPanel1.setBackground(new java.awt.Color(204, 204, 204));
    jPanel1.setBorder(
            javax.swing.BorderFactory.createMatteBorder(2, 0, 0, 0, new java.awt.Color(204, 204, 204)));
    jPanel1.setMaximumSize(new java.awt.Dimension(32767, 32));
    jPanel1.setMinimumSize(new java.awt.Dimension(10, 32));
    jPanel1.setPreferredSize(new java.awt.Dimension(10, 32));
    jPanel1.setLayout(new java.awt.BorderLayout());

    jPanel4.setBackground(new java.awt.Color(255, 216, 178));
    jPanel4.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 8, 1, 8));
    jPanel4.setPreferredSize(new java.awt.Dimension(0, 41));

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle
            .getMessage(InferenceResultPanel.class, "InferenceResultPanel.jLabel1.text")); // NOI18N

    classifiedInstances.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N
    classifiedInstances.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    org.openide.awt.Mnemonics.setLocalizedText(classifiedInstances, org.openide.util.NbBundle
            .getMessage(InferenceResultPanel.class, "InferenceResultPanel.classifiedInstances.text")); // NOI18N
    classifiedInstances.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 8));

    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle
            .getMessage(InferenceResultPanel.class, "InferenceResultPanel.jLabel2.text")); // NOI18N

    notClassifiedInstances.setFont(new java.awt.Font("Monospaced", 0, 11)); // NOI18N
    notClassifiedInstances.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    org.openide.awt.Mnemonics.setLocalizedText(notClassifiedInstances, org.openide.util.NbBundle
            .getMessage(InferenceResultPanel.class, "InferenceResultPanel.notClassifiedInstances.text")); // NOI18N
    notClassifiedInstances.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 8));

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

    toolBar.setFloatable(false);
    toolBar.setRollover(true);
    toolBar.setOpaque(false);
    toolBar.add(filler1);

    org.openide.awt.Mnemonics.setLocalizedText(infoButton, org.openide.util.NbBundle
            .getMessage(InferenceResultPanel.class, "InferenceResultPanel.infoButton.text")); // NOI18N
    infoButton.setFocusable(false);
    infoButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    infoButton.setMaximumSize(new java.awt.Dimension(24, 30));
    infoButton.setOpaque(false);
    infoButton.setPreferredSize(new java.awt.Dimension(32, 21));
    infoButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    infoButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            infoButtonActionPerformed(evt);
        }
    });
    toolBar.add(infoButton);

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

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

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

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(jPanel4Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 115,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(classifiedInstances)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel2)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(notClassifiedInstances)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, 527, Short.MAX_VALUE)));
    jPanel4Layout
            .setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                            .addGroup(jPanel4Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(classifiedInstances, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(notClassifiedInstances, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jSeparator1).addComponent(jSeparator2))
                            .addContainerGap()));

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

    add(jPanel1, java.awt.BorderLayout.SOUTH);
}

From source file:Balo.MainFram.java

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

    GroupChart = new javax.swing.ButtonGroup();
    jPanel2 = new javax.swing.JPanel();
    Title = new javax.swing.JLabel();
    jPanel3 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    Table_Dovat = new javax.swing.JTable();
    jLabel5 = new javax.swing.JLabel();
    TextW = new javax.swing.JTextField();
    RadioColumn = new javax.swing.JRadioButton();
    RadioLine = new javax.swing.JRadioButton();
    Button_Result = new javax.swing.JButton();
    jLabel3 = new javax.swing.JLabel();
    jScrollPane2 = new javax.swing.JScrollPane();
    TextAreaGreedy = new javax.swing.JTextArea();
    jScrollPane3 = new javax.swing.JScrollPane();
    TextAreaDynamic = new javax.swing.JTextArea();
    jLabel4 = new javax.swing.JLabel();
    Panel_Chart = new javax.swing.JPanel();
    RadioItemChage = new javax.swing.JRadioButton();
    jLabel1 = new javax.swing.JLabel();
    jButtonAdd = new javax.swing.JButton();
    jButtonDelete = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setBackground(new java.awt.Color(215, 228, 247));
    setForeground(java.awt.Color.white);

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

    Title.setBackground(new java.awt.Color(204, 204, 255));
    Title.setFont(new java.awt.Font("Arial", 0, 22)); // NOI18N
    Title.setForeground(new java.awt.Color(204, 0, 0));
    Title.setText(
            "BI TO?N C?I BA L (S? LNG ? VT GII HN) BNG GII THUT THAM N V QUY HOACH ?NG");

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout
            .setHorizontalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup().addGap(167, 167, 167)
                            .addComponent(Title, javax.swing.GroupLayout.DEFAULT_SIZE, 1190, Short.MAX_VALUE)
                            .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout
                    .createSequentialGroup().addGap(20, 20, 20).addComponent(Title,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(16, Short.MAX_VALUE)));

    jPanel3.setAlignmentX(0.0F);
    jPanel3.setAlignmentY(0.0F);

    Table_Dovat.setBackground(new java.awt.Color(242, 241, 241));
    Table_Dovat.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    Table_Dovat.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
    Table_Dovat.setForeground(new java.awt.Color(0, 0, 153));
    Table_Dovat.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { "A", new Integer(5), new Integer(4), new Integer(3) },
                    { "B", new Integer(10), new Integer(5), new Integer(4) },
                    { "C", new Integer(10), new Integer(6), new Integer(5) },
                    { "D", new Integer(10), new Integer(3), new Integer(2) },
                    { "E", new Integer(10), new Integer(1), new Integer(1) } },
            new String[] { "Tn  vt", "S lng", "Gi tr", "Tr?ng lng" }) {
        Class[] types = new Class[] { java.lang.String.class, java.lang.Integer.class, java.lang.Integer.class,
                java.lang.Integer.class };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }
    });
    Table_Dovat.setGridColor(new java.awt.Color(204, 204, 204));
    Table_Dovat.setSelectionForeground(new java.awt.Color(204, 255, 204));
    jScrollPane1.setViewportView(Table_Dovat);
    if (Table_Dovat.getColumnModel().getColumnCount() > 0) {
        Table_Dovat.getColumnModel().getColumn(0).setResizable(false);
        Table_Dovat.getColumnModel().getColumn(1).setResizable(false);
        Table_Dovat.getColumnModel().getColumn(2).setResizable(false);
        Table_Dovat.getColumnModel().getColumn(3).setResizable(false);
    }

    jLabel5.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
    jLabel5.setText("Tr?ng lng: ");

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

    RadioColumn.setText("Mc nh");

    RadioLine.setText("W ba l thay i");

    Button_Result.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    Button_Result.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Balo/icon_play.png"))); // NOI18N
    Button_Result.setText("Thc thi");
    Button_Result.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Button_ResultActionPerformed(evt);
        }
    });

    jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    jLabel3.setText("KT QU GII THUT THAM N");

    TextAreaGreedy.setEditable(false);
    TextAreaGreedy.setColumns(20);
    TextAreaGreedy.setRows(5);
    TextAreaGreedy.setText("? vt - S lng ch?n\n======================");
    jScrollPane2.setViewportView(TextAreaGreedy);

    TextAreaDynamic.setEditable(false);
    TextAreaDynamic.setColumns(20);
    TextAreaDynamic.setRows(5);
    TextAreaDynamic.setText("? vt - S lng ch?n\n======================");
    jScrollPane3.setViewportView(TextAreaDynamic);

    jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    jLabel4.setText("KT QU GII THUT QUY HOCH ?NG");

    Panel_Chart.setBackground(new java.awt.Color(218, 243, 252));

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

    RadioItemChage.setText("S ?Vt thay i");

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addGroup(jPanel3Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                            .addGroup(jPanel3Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 275,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 266,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jPanel3Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 305,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 274,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel3Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel3Layout.createSequentialGroup().addComponent(jLabel5)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(TextW, javax.swing.GroupLayout.PREFERRED_SIZE, 42,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(RadioColumn)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(RadioLine)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(RadioItemChage)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(Button_Result, javax.swing.GroupLayout.PREFERRED_SIZE, 149,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 591,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(Panel_Chart, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addGap(0, 0, 0).addGroup(jPanel3Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Panel_Chart, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 222,
                                    Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel3Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(Button_Result, javax.swing.GroupLayout.PREFERRED_SIZE, 49,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 14,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(TextW, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(RadioColumn).addComponent(RadioLine)
                                    .addComponent(RadioItemChage))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(
                                    jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel4).addComponent(jLabel3))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel3Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jScrollPane2).addComponent(jScrollPane3,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 213,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))))));

    jLabel1.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
    jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Balo/checkdb.png"))); // NOI18N
    jLabel1.setText("    D liu thc nghim");

    jButtonAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Balo/add1.png"))); // NOI18N
    jButtonAdd.setText("Thm");
    jButtonAdd.setPreferredSize(new java.awt.Dimension(95, 45));
    jButtonAdd.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonAddActionPerformed(evt);
        }
    });

    jButtonDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Balo/delete.png"))); // NOI18N
    jButtonDelete.setText("Xa");
    jButtonDelete.setPreferredSize(new java.awt.Dimension(87, 45));
    jButtonDelete.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonDeleteActionPerformed(evt);
        }
    });

    jLabel2.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
    jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Balo/charts-icon.png"))); // NOI18N
    jLabel2.setText("     Biu  v? th?i gian thc hin ca hai gii thut ");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 220,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(128, 128, 128)
                            .addComponent(jButtonAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 102,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButtonDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 103,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(42, 42, 42)
                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 562,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                                    .addComponent(jLabel1)
                                    .addComponent(jButtonAdd, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 39,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(25, Short.MAX_VALUE)));

    pack();
}

From source file:UserInterface.CDC.VaccineStateDistributionJPanel.java

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

    jLabel1 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    summaryjTable = new javax.swing.JTable();
    viewDetailsjButton = new javax.swing.JButton();
    viewChartjButton = new javax.swing.JButton();

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("Vaccine State Distribution");

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

    }, new String[] { "State", "Total Vaccines Distributed" }) {
        boolean[] canEdit = new boolean[] { false, false };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    summaryjTable.getTableHeader().setReorderingAllowed(false);
    jScrollPane1.setViewportView(summaryjTable);

    viewDetailsjButton.setText("View Details >>");
    viewDetailsjButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            viewDetailsjButtonActionPerformed(evt);
        }
    });

    viewChartjButton.setText("View Chart");
    viewChartjButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            viewChartjButtonActionPerformed(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(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 658, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addComponent(viewChartjButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(viewDetailsjButton)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel1).addGap(18, 18, 18)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 356,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(viewDetailsjButton).addComponent(viewChartjButton))
                    .addContainerGap(103, Short.MAX_VALUE)));
}

From source file:UserInterface.CDC.VARESReportingJPanel.java

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

    jLabel1 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    summaryjTable = new javax.swing.JTable();
    viewDetailsjButton = new javax.swing.JButton();
    viewChartjButton = new javax.swing.JButton();

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("Vaccine Adverse Event Reporting System (VARES)");

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

    }, new String[] { "State", "Total Vaccines Administered", "No. of Failed Vaccines" }) {
        boolean[] canEdit = new boolean[] { false, false, false };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    summaryjTable.getTableHeader().setReorderingAllowed(false);
    jScrollPane1.setViewportView(summaryjTable);

    viewDetailsjButton.setText("View Details >>");
    viewDetailsjButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            viewDetailsjButtonActionPerformed(evt);
        }
    });

    viewChartjButton.setText("View Chart");
    viewChartjButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            viewChartjButtonActionPerformed(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(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 658, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addComponent(viewChartjButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(viewDetailsjButton)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel1).addGap(18, 18, 18)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 356,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(viewDetailsjButton).addComponent(viewChartjButton))
                    .addContainerGap(103, Short.MAX_VALUE)));
}

From source file:Gui.loading_frames.AutoLoadExcelDataGui.java

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

    open_sheet_button = new javax.swing.JButton();
    progress_bar = new javax.swing.JProgressBar();
    progress_textfield = new javax.swing.JTextField();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    open_sheet_button.setText("Load Excel File");
    open_sheet_button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            open_sheet_buttonActionPerformed(evt);
        }
    });

    progress_textfield.setEditable(false);
    progress_textfield.setText("Waiting");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(progress_bar, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(progress_textfield,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 58,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(open_sheet_button))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(22, 22, 22).addComponent(open_sheet_button)
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(progress_bar, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(progress_textfield, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
}

From source file:br.unicamp.cst.motivational.MotivationalSubsystemViewer.java

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

    tbMotivationalSubsystem = new javax.swing.JTabbedPane();
    splDrives = new javax.swing.JSplitPane();
    pnTreeDrives = new javax.swing.JPanel();
    cbRefreshDrives = new javax.swing.JCheckBox();
    spMotivationalCodelets = new javax.swing.JScrollPane();
    pnDrivesChart = new javax.swing.JPanel();
    pnDrives = new javax.swing.JPanel();
    cbDrivesChart = new javax.swing.JCheckBox();
    splEmotional = new javax.swing.JSplitPane();
    pnTreeEmotional = new javax.swing.JPanel();
    spEmotionalCodelets = new javax.swing.JScrollPane();
    cbRefreshEmotionalDrives = new javax.swing.JCheckBox();
    pnEmotiovalChart = new javax.swing.JPanel();
    pnEmotional = new javax.swing.JPanel();
    cbEmotionalChart = new javax.swing.JCheckBox();
    pnMoodCodelts = new javax.swing.JPanel();
    spMoodCodelets = new javax.swing.JScrollPane();
    cbRefreshMood = new javax.swing.JCheckBox();
    pnAppraisalCodelets = new javax.swing.JPanel();
    cbRefreshAppraisals = new javax.swing.JCheckBox();
    spAppraisalCodelets = new javax.swing.JScrollPane();
    cbGoalsCodelets = new javax.swing.JPanel();
    cbRefreshGoals = new javax.swing.JCheckBox();
    spGoalCodelets = new javax.swing.JScrollPane();

    setMinimumSize(new java.awt.Dimension(1049, 0));
    setPreferredSize(new java.awt.Dimension(1030, 250));
    setLayout(new java.awt.GridBagLayout());

    tbMotivationalSubsystem.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            tbMotivationalSubsystemStateChanged(evt);
        }
    });

    splDrives.setDividerLocation(400);

    pnTreeDrives.setMinimumSize(new java.awt.Dimension(0, 0));
    pnTreeDrives.setLayout(new java.awt.GridBagLayout());

    cbRefreshDrives.setSelected(true);
    cbRefreshDrives.setText("Auto Refresh");
    cbRefreshDrives.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cbRefreshDrivesActionPerformed(evt);
        }
    });
    pnTreeDrives.add(cbRefreshDrives, new java.awt.GridBagConstraints());
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 12;
    gridBagConstraints.gridheight = 16;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.1;
    pnTreeDrives.add(spMotivationalCodelets, gridBagConstraints);

    splDrives.setLeftComponent(pnTreeDrives);

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

    pnDrives.setBackground(new java.awt.Color(102, 102, 102));

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

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 18;
    gridBagConstraints.gridheight = 16;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.1;
    pnDrivesChart.add(pnDrives, gridBagConstraints);

    cbDrivesChart.setSelected(true);
    cbDrivesChart.setText("Auto Refresh");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    pnDrivesChart.add(cbDrivesChart, gridBagConstraints);

    splDrives.setRightComponent(pnDrivesChart);

    tbMotivationalSubsystem.addTab("Drives", splDrives);

    splEmotional.setDividerLocation(400);

    pnTreeEmotional.setLayout(new java.awt.GridBagLayout());
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.1;
    pnTreeEmotional.add(spEmotionalCodelets, gridBagConstraints);

    cbRefreshEmotionalDrives.setSelected(true);
    cbRefreshEmotionalDrives.setText("Auto Refresh");
    cbRefreshEmotionalDrives.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cbRefreshEmotionalDrivesActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    pnTreeEmotional.add(cbRefreshEmotionalDrives, gridBagConstraints);

    splEmotional.setLeftComponent(pnTreeEmotional);

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

    pnEmotional.setBackground(new java.awt.Color(102, 102, 102));

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

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 23;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.1;
    pnEmotiovalChart.add(pnEmotional, gridBagConstraints);

    cbEmotionalChart.setSelected(true);
    cbEmotionalChart.setText("Auto Refresh");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    pnEmotiovalChart.add(cbEmotionalChart, gridBagConstraints);

    splEmotional.setRightComponent(pnEmotiovalChart);

    tbMotivationalSubsystem.addTab("Emotional Drives", splEmotional);

    pnMoodCodelts.setLayout(new java.awt.GridBagLayout());
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 1022;
    gridBagConstraints.ipady = 383;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    pnMoodCodelts.add(spMoodCodelets, gridBagConstraints);

    cbRefreshMood.setSelected(true);
    cbRefreshMood.setText("Auto Refresh");
    cbRefreshMood.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cbRefreshMoodActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    pnMoodCodelts.add(cbRefreshMood, gridBagConstraints);

    tbMotivationalSubsystem.addTab("Moods", pnMoodCodelts);

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

    cbRefreshAppraisals.setSelected(true);
    cbRefreshAppraisals.setText("Auto Refresh");
    cbRefreshAppraisals.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cbRefreshAppraisalsActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    pnAppraisalCodelets.add(cbRefreshAppraisals, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 1022;
    gridBagConstraints.ipady = 422;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    pnAppraisalCodelets.add(spAppraisalCodelets, gridBagConstraints);

    tbMotivationalSubsystem.addTab("Appraisals", pnAppraisalCodelets);

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

    cbRefreshGoals.setSelected(true);
    cbRefreshGoals.setText("Auto Refresh");
    cbRefreshGoals.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cbRefreshGoalsActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    cbGoalsCodelets.add(cbRefreshGoals, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 1022;
    gridBagConstraints.ipady = 445;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    cbGoalsCodelets.add(spGoalCodelets, gridBagConstraints);

    tbMotivationalSubsystem.addTab("Goals", cbGoalsCodelets);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 0.1;
    gridBagConstraints.weighty = 0.1;
    add(tbMotivationalSubsystem, gridBagConstraints);
}