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:streaming.gui.JDialogAfficheLiens.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.jav  a2  s.  com
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jTableLiens = new javax.swing.JTable();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

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

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGap(0, 400, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 375,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))));
    layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGap(0, 300, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 275,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))));

    pack();
}

From source file:org.neuroph.netbeans.main.DataSetStatTopComponent.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 .ja v a 2 s .  c om*/
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    graph = new javax.swing.JPanel();
    columnsComboBox = new javax.swing.JComboBox<>();
    histogramCheckBox = new javax.swing.JCheckBox();
    histogramBinsComboBox = new javax.swing.JComboBox<>();
    jLabel2 = new javax.swing.JLabel();
    jLabel1 = new javax.swing.JLabel();
    CheckBoxMin = new javax.swing.JCheckBox();
    CheckBoxMax = new javax.swing.JCheckBox();
    CheckBoxMean = new javax.swing.JCheckBox();
    CheckBoxStdDev = new javax.swing.JCheckBox();
    CheckBoxVar = new javax.swing.JCheckBox();
    CheckBoxFreq = new javax.swing.JCheckBox();

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

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

    org.openide.awt.Mnemonics.setLocalizedText(histogramCheckBox, org.openide.util.NbBundle
            .getMessage(DataSetStatTopComponent.class, "DataSetStatTopComponent.histogramCheckBox.text")); // NOI18N
    histogramCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            histogramCheckBoxActionPerformed(evt);
        }
    });

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

    org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle
            .getMessage(DataSetStatTopComponent.class, "DataSetStatTopComponent.jLabel2.text")); // NOI18N

    org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle
            .getMessage(DataSetStatTopComponent.class, "DataSetStatTopComponent.jLabel1.text")); // NOI18N

    org.openide.awt.Mnemonics.setLocalizedText(CheckBoxMin, org.openide.util.NbBundle
            .getMessage(DataSetStatTopComponent.class, "DataSetStatTopComponent.CheckBoxMin.text")); // NOI18N
    CheckBoxMin.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            CheckBoxMinActionPerformed(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(CheckBoxMax, org.openide.util.NbBundle
            .getMessage(DataSetStatTopComponent.class, "DataSetStatTopComponent.CheckBoxMax.text")); // NOI18N
    CheckBoxMax.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            CheckBoxMaxActionPerformed(evt);
        }
    });

    CheckBoxMean.setSelected(true);
    org.openide.awt.Mnemonics.setLocalizedText(CheckBoxMean, org.openide.util.NbBundle
            .getMessage(DataSetStatTopComponent.class, "DataSetStatTopComponent.CheckBoxMean.text")); // NOI18N
    CheckBoxMean.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            CheckBoxMeanActionPerformed(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(CheckBoxStdDev, org.openide.util.NbBundle
            .getMessage(DataSetStatTopComponent.class, "DataSetStatTopComponent.CheckBoxStdDev.text")); // NOI18N
    CheckBoxStdDev.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            CheckBoxStdDevActionPerformed(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(CheckBoxVar, org.openide.util.NbBundle
            .getMessage(DataSetStatTopComponent.class, "DataSetStatTopComponent.CheckBoxVar.text")); // NOI18N
    CheckBoxVar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            CheckBoxVarActionPerformed(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(CheckBoxFreq, org.openide.util.NbBundle
            .getMessage(DataSetStatTopComponent.class, "DataSetStatTopComponent.CheckBoxFreq.text")); // NOI18N
    CheckBoxFreq.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            CheckBoxFreqActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(histogramCheckBox)
                    .addGroup(layout.createSequentialGroup().addContainerGap()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(CheckBoxMin).addComponent(CheckBoxMax)
                                    .addComponent(CheckBoxMean).addComponent(CheckBoxStdDev)
                                    .addComponent(CheckBoxVar).addComponent(CheckBoxFreq)
                                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 107,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(columnsComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 107,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 107,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(histogramBinsComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            107, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGap(31, 31, 31).addComponent(graph, 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(23, 23, 23).addComponent(CheckBoxMin)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(CheckBoxMax)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(CheckBoxMean)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(CheckBoxStdDev)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(CheckBoxVar)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(CheckBoxFreq).addGap(18, 18, 18)
                    .addComponent(histogramCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(columnsComboBox, 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(histogramBinsComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(91, Short.MAX_VALUE))
            .addComponent(graph, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
}

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

    jLabel_systemTime = new javax.swing.JLabel();
    wardNumField = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    bedNumField = new javax.swing.JLabel();
    jButton_changeView = new javax.swing.JButton();
    jLabel2 = new javax.swing.JLabel();
    jLabel1 = new javax.swing.JLabel();
    graphPanel = new javax.swing.JPanel();
    jPanel1 = new javax.swing.JPanel();
    jCheckBox1 = new javax.swing.JCheckBox();
    jCheckBox2 = new javax.swing.JCheckBox();
    jCheckBox3 = new javax.swing.JCheckBox();
    jCheckBox4 = new javax.swing.JCheckBox();
    jCheckBox5 = new javax.swing.JCheckBox();
    jButton1 = new javax.swing.JButton();
    jCheckBox6 = new javax.swing.JCheckBox();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jLabel_systemTime.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel_systemTime.setText("TIME");

    wardNumField.setText("jLabel");

    jLabel3.setText("- Bed");

    bedNumField.setText("jLabel");

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

    jLabel2.setText("Ward");

    jLabel1.setText("- History");

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

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

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

    jCheckBox1.setSelected(true);
    jCheckBox1.setText("Respiratory rate");

    jCheckBox2.setSelected(true);
    jCheckBox2.setText("Oxygen saturation");
    jCheckBox2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox2ActionPerformed(evt);
        }
    });

    jCheckBox3.setSelected(true);
    jCheckBox3.setText("Temperature");

    jCheckBox4.setSelected(true);
    jCheckBox4.setText("Systolic blood pressure");

    jCheckBox5.setSelected(true);
    jCheckBox5.setText("Heart rate");

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

    jCheckBox6.setText("Show ideal ranges");
    jCheckBox6.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBox6ActionPerformed(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()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jCheckBox1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jCheckBox3)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jCheckBox5))
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jCheckBox2)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jCheckBox4)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25,
                                            Short.MAX_VALUE)
                                    .addComponent(jCheckBox6)))
                    .addGap(8, 8, 8).addComponent(jButton1).addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jCheckBox1).addComponent(jCheckBox3).addComponent(jCheckBox5))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jCheckBox2).addComponent(jCheckBox4).addComponent(jCheckBox6))
                            .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup().addComponent(jButton_changeView)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel2)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(wardNumField)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel3)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(bedNumField)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel_systemTime, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            140, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(graphPanel, 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().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(bedNumField, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2).addComponent(jButton_changeView).addComponent(wardNumField)
                            .addComponent(jLabel_systemTime, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel1))
                    .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(graphPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    pack();
}

From source file:PRC6.Dash.java

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

    jFrame1 = new javax.swing.JFrame();
    Place = new javax.swing.JComboBox();
    Year = new javax.swing.JComboBox();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    tmax_v = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    tmin_v = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    af_v = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    rain_v = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    sun_v = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    CrearData1 = new javax.swing.JButton();
    jLabel10 = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    jComboBox1 = new javax.swing.JComboBox<>();

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

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    Place.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "aberporth", "armagh", "ballypatrick",
            "bradford", "braemar", "camborne", "cambridge", "cardiff", "chivenor", "cwmystwyth", "dunstaffnage",
            "durham", "eastbourne", "eskdalemuir", "heathrow", "hurn", "lerwick", "leuchars", "lowestoft",
            "manston", "nairn", "newton", "oxford", "paisley", "rossonwye", "ringway", "shawbury", "sheffield",
            "southampton", "stornoway", "suttonbonington", "tiree", "valley", "waddington", "whitby",
            "wickairport", "yeovilton" }));
    Place.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PlaceActionPerformed(evt);
        }
    });

    jLabel1.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
    jLabel1.setText("Lugar");

    jLabel2.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
    jLabel2.setText("Ao");

    jLabel3.setFont(new java.awt.Font("Tahoma", 3, 11)); // NOI18N
    jLabel3.setText("Graficos");

    tmax_v.setText("---");

    jLabel5.setText("Temperatura Max:");

    jLabel6.setText("Temperatura Min:");

    tmin_v.setText("---");

    jLabel7.setText("Dias de Heladas:");

    af_v.setText("---");

    jLabel8.setText("Lluvia Recogida:");

    rain_v.setText("---");

    jLabel9.setText("Dias de Sol:");

    sun_v.setText("---");

    jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    jLabel4.setText("Media anual");

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                    jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(
                                                    jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addGroup(jPanel1Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(af_v,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(tmin_v,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(tmax_v,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING))
                                                    .addComponent(rain_v).addComponent(sun_v))
                                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    Short.MAX_VALUE))
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel4)
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(jLabel4)
                    .addGap(21, 21, 21)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5).addComponent(tmax_v))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6).addComponent(tmin_v))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7).addComponent(af_v))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8).addComponent(rain_v))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9).addComponent(sun_v))
                    .addContainerGap()));

    CrearData1.setText("Obtener Estadsticas");
    CrearData1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            CrearData1ActionPerformed(evt);
        }
    });

    jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/rsz_umbrella_png494.png"))); // NOI18N
    jLabel10.setText("UK Weather");

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

    jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Temperatura Mxima",
            "Temperatura Mnima", "Das con Heladas", "Lluvias Recogidas", "Horas de Sol" }));
    jComboBox1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jComboBox1ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 57,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(CrearData1, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(Place, javax.swing.GroupLayout.Alignment.LEADING, 0,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(Year, javax.swing.GroupLayout.Alignment.LEADING, 0,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 35,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 149,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(20, 20, 20).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().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLabel1)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(Place, 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(Year, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18).addComponent(CrearData1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel3)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 155,
                                    Short.MAX_VALUE)))
                    .addContainerGap()));

    pack();
}

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

    jToolBar1 = 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));
    guardar = new javax.swing.JButton();
    jSeparator1 = new javax.swing.JSeparator();

    setBackground(new java.awt.Color(255, 255, 255));
    setMaximumSize(new java.awt.Dimension(32767, 36));

    jToolBar1.setBackground(new java.awt.Color(255, 255, 255));
    jToolBar1.setFloatable(false);
    jToolBar1.setRollover(true);
    jToolBar1.add(filler1);

    guardar.setBackground(new java.awt.Color(255, 255, 255));
    guardar.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N
    guardar.setText("Guardar");
    guardar.setFocusable(false);
    guardar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    guardar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    guardar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            guardarActionPerformed(evt);
        }
    });
    jToolBar1.add(guardar);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 769, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addContainerGap()
                                    .addComponent(jToolBar1, 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()
                    .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 20,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, 0)));
}

From source file:io.github.jeddict.jpa.modeler.properties.convert.ConverterPanel.java

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

    jLayeredPane1 = new javax.swing.JLayeredPane();
    action_LayeredPane = new javax.swing.JLayeredPane();
    save_Button = new javax.swing.JButton();
    cancel_Button = new javax.swing.JButton();
    autoApply_CheckBox = new javax.swing.JCheckBox();
    jLayeredPane2 = new javax.swing.JLayeredPane();
    converter_WrapperPane = new javax.swing.JLayeredPane();
    converter_Label = new javax.swing.JLabel();
    converter_LayeredPane = new javax.swing.JLayeredPane();
    dataType_Action = new javax.swing.JButton();
    attribute_WrapperPane = new javax.swing.JLayeredPane();
    attribute_Label = new javax.swing.JLabel();
    attribute_LayeredPane = new javax.swing.JLayeredPane();
    attribute_Action = new javax.swing.JButton();
    field_WrapperPane = new javax.swing.JLayeredPane();
    field_Label = new javax.swing.JLabel();
    field_LayeredPane = new javax.swing.JLayeredPane();
    field_Action = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    org.openide.awt.Mnemonics.setLocalizedText(save_Button,
            org.openide.util.NbBundle.getMessage(ConverterPanel.class, "ConverterPanel.save_Button.text")); // NOI18N
    save_Button.setToolTipText(org.openide.util.NbBundle.getMessage(ConverterPanel.class,
            "ConverterPanel.save_Button.toolTipText")); // NOI18N
    save_Button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            save_ButtonActionPerformed(evt);
        }//from   w w w .j a va  2s.  c  o  m
    });
    action_LayeredPane.add(save_Button);
    save_Button.setBounds(20, 0, 70, 30);

    org.openide.awt.Mnemonics.setLocalizedText(cancel_Button,
            org.openide.util.NbBundle.getMessage(ConverterPanel.class, "ConverterPanel.cancel_Button.text")); // NOI18N
    cancel_Button.setToolTipText(org.openide.util.NbBundle.getMessage(ConverterPanel.class,
            "ConverterPanel.cancel_Button.toolTipText")); // NOI18N
    cancel_Button.setPreferredSize(new java.awt.Dimension(60, 23));
    cancel_Button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancel_ButtonActionPerformed(evt);
        }
    });
    action_LayeredPane.add(cancel_Button);
    cancel_Button.setBounds(100, 0, 70, 30);

    org.openide.awt.Mnemonics.setLocalizedText(autoApply_CheckBox, org.openide.util.NbBundle
            .getMessage(ConverterPanel.class, "ConverterPanel.autoApply_CheckBox.text")); // NOI18N
    autoApply_CheckBox
            .setToolTipText(org.openide.util.NbBundle.getMessage(ConverterPanel.class, "INFO_AUTO_APPLY")); // NOI18N

    jLayeredPane2.setLayout(new java.awt.GridLayout(3, 1, 0, 10));

    converter_WrapperPane.setToolTipText(org.openide.util.NbBundle.getMessage(ConverterPanel.class,
            "ConverterPanel.converter_WrapperPane.toolTipText")); // NOI18N
    converter_WrapperPane.setPreferredSize(new java.awt.Dimension(170, 27));
    converter_WrapperPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(converter_Label,
            org.openide.util.NbBundle.getMessage(ConverterPanel.class, "ConverterPanel.converter_Label.text")); // NOI18N
    converter_Label.setPreferredSize(new java.awt.Dimension(90, 14));
    converter_WrapperPane.add(converter_Label, java.awt.BorderLayout.WEST);

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

    converter_WrapperPane.add(converter_LayeredPane, java.awt.BorderLayout.CENTER);

    dataType_Action.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/io/github/jeddict/jpa/modeler/properties/resource/searchbutton.png"))); // NOI18N
    dataType_Action.setPreferredSize(new java.awt.Dimension(37, 37));
    dataType_Action.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            dataType_ActionActionPerformed(evt);
        }
    });
    converter_WrapperPane.add(dataType_Action, java.awt.BorderLayout.EAST);

    jLayeredPane2.add(converter_WrapperPane);

    attribute_WrapperPane.setToolTipText(org.openide.util.NbBundle.getMessage(ConverterPanel.class,
            "ConverterPanel.attribute_WrapperPane.toolTipText")); // NOI18N
    attribute_WrapperPane.setPreferredSize(new java.awt.Dimension(170, 27));
    attribute_WrapperPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(attribute_Label,
            org.openide.util.NbBundle.getMessage(ConverterPanel.class, "ConverterPanel.attribute_Label.text")); // NOI18N
    attribute_Label.setPreferredSize(new java.awt.Dimension(90, 14));
    attribute_WrapperPane.add(attribute_Label, java.awt.BorderLayout.WEST);

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

    attribute_WrapperPane.add(attribute_LayeredPane, java.awt.BorderLayout.CENTER);

    attribute_Action.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/io/github/jeddict/jpa/modeler/properties/resource/searchbutton.png"))); // NOI18N
    attribute_Action.setPreferredSize(new java.awt.Dimension(37, 37));
    attribute_Action.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            attribute_ActionActionPerformed(evt);
        }
    });
    attribute_WrapperPane.add(attribute_Action, java.awt.BorderLayout.EAST);

    jLayeredPane2.add(attribute_WrapperPane);

    field_WrapperPane.setToolTipText(org.openide.util.NbBundle.getMessage(ConverterPanel.class,
            "ConverterPanel.field_WrapperPane.toolTipText")); // NOI18N
    field_WrapperPane.setPreferredSize(new java.awt.Dimension(170, 27));
    field_WrapperPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(field_Label,
            org.openide.util.NbBundle.getMessage(ConverterPanel.class, "ConverterPanel.field_Label.text")); // NOI18N
    field_Label.setPreferredSize(new java.awt.Dimension(90, 14));
    field_WrapperPane.add(field_Label, java.awt.BorderLayout.WEST);

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

    field_WrapperPane.add(field_LayeredPane, java.awt.BorderLayout.CENTER);

    field_Action.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/io/github/jeddict/jpa/modeler/properties/resource/searchbutton.png"))); // NOI18N
    field_Action.setPreferredSize(new java.awt.Dimension(37, 37));
    field_Action.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            field_ActionActionPerformed(evt);
        }
    });
    field_WrapperPane.add(field_Action, java.awt.BorderLayout.EAST);

    jLayeredPane2.add(field_WrapperPane);

    jLayeredPane1.setLayer(action_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane1.setLayer(autoApply_CheckBox, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane1.setLayer(jLayeredPane2, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1);
    jLayeredPane1.setLayout(jLayeredPane1Layout);
    jLayeredPane1Layout.setHorizontalGroup(jLayeredPane1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPane1Layout.createSequentialGroup().addGap(98, 98, 98)
                    .addComponent(autoApply_CheckBox)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 169, Short.MAX_VALUE)
                    .addComponent(action_LayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE, 184,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPane1Layout
                            .createSequentialGroup().addContainerGap().addComponent(jLayeredPane2,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 534, Short.MAX_VALUE)
                            .addContainerGap())));
    jLayeredPane1Layout.setVerticalGroup(jLayeredPane1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPane1Layout.createSequentialGroup().addContainerGap(128, Short.MAX_VALUE)
                    .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(action_LayeredPane, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 34,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jLayeredPane1Layout
                                    .createSequentialGroup()
                                    .addComponent(autoApply_CheckBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap())))
            .addGroup(jLayeredPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jLayeredPane1Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jLayeredPane2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(88, 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(jLayeredPane1));
    layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLayeredPane1));

    pack();
}

From source file:cgpanalyser.gui.MainWindow.java

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

    btnCompare = new javax.swing.JButton();
    btnNextGraph = new javax.swing.JButton();
    btnZoomInGraph = new javax.swing.JButton();
    btnPrevGraph = new javax.swing.JButton();
    btnZoomOutGraph = new javax.swing.JButton();
    jSplitPane1 = new javax.swing.JSplitPane();
    panelMain = new cgpanalyser.gui.MainPanel(dVars, gateFuncsAll, this);
    xYChartPanel = new cgpanalyser.gui.chart.XYChartPanel(jFreeChart, panelMain);
    checkBoxGreyUnused = new javax.swing.JCheckBox();
    checkBoxColorsFF = new javax.swing.JCheckBox();
    spinnerFitDeltaThreshold = new javax.swing.JSpinner(new SpinnerNumberModel(0, 0, 9999, 1));
    btnResample = new javax.swing.JButton();
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    menuOpenEvo = new javax.swing.JMenuItem();
    menuOpenFF = new javax.swing.JMenuItem();
    menuDefaultFF = new javax.swing.JMenuItem();
    menuGateUsage = new javax.swing.JMenuItem();
    jMenu2 = new javax.swing.JMenu();
    menuAbout = new javax.swing.JMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("CGP Analyser");

    btnCompare.setText("Compare");
    btnCompare.setToolTipText("Compare selected chromosomes (with left and right mouse button).");
    btnCompare.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnCompareActionPerformed(evt);
        }
    });

    btnNextGraph.setText(">");
    btnNextGraph.setToolTipText("Graph next.");
    btnNextGraph.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnNextGraphActionPerformed(evt);
        }
    });

    btnZoomInGraph.setText("Zoom In");
    btnZoomInGraph.setToolTipText("Graph zoom in selected area.");
    btnZoomInGraph.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnZoomInGraphActionPerformed(evt);
        }
    });

    btnPrevGraph.setText("<");
    btnPrevGraph.setToolTipText("Graph previous.");
    btnPrevGraph.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnPrevGraphActionPerformed(evt);
        }
    });

    btnZoomOutGraph.setText("Zoom Out");
    btnZoomOutGraph.setToolTipText("Graph zoom out.");
    btnZoomOutGraph.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnZoomOutGraphActionPerformed(evt);
        }
    });

    jSplitPane1.setBorder(null);
    jSplitPane1.setDividerSize(6);
    jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    jSplitPane1.setResizeWeight(0.5);

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

    jSplitPane1.setRightComponent(panelMain);

    xYChartPanel.setPreferredSize(new java.awt.Dimension(680, 280));
    xYChartPanel.setLayout(null);
    jSplitPane1.setLeftComponent(xYChartPanel);

    checkBoxGreyUnused.setSelected(true);
    checkBoxGreyUnused.setText("Grey Unused");
    checkBoxGreyUnused.setToolTipText("Gery unused elements.");
    checkBoxGreyUnused.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            checkBoxGreyUnusedActionPerformed(evt);
        }
    });

    checkBoxColorsFF.setSelected(true);
    checkBoxColorsFF.setText("Function colors");
    checkBoxColorsFF.setToolTipText("Use colors from function file.");
    checkBoxColorsFF.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            checkBoxColorsFFActionPerformed(evt);
        }
    });

    spinnerFitDeltaThreshold
            .setToolTipText("Fitness delta threshold for graph sampling - higher threshold, less samples.");
    spinnerFitDeltaThreshold.setPreferredSize(new java.awt.Dimension(29, 23));

    btnResample.setText("Resample");
    btnResample.setToolTipText(
            "Sample graph data again with new threshold. Too low threshold may cause performance or memory issues.");
    btnResample.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnResampleActionPerformed(evt);
        }
    });

    jMenu1.setText("File");

    menuOpenEvo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O,
            java.awt.event.InputEvent.CTRL_MASK));
    menuOpenEvo.setText("Open Evolution");
    menuOpenEvo.setToolTipText("Open evolution record file.");
    menuOpenEvo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menuOpenEvoActionPerformed(evt);
        }
    });
    jMenu1.add(menuOpenEvo);

    menuOpenFF.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I,
            java.awt.event.InputEvent.CTRL_MASK));
    menuOpenFF.setText("Open Function File");
    menuOpenFF.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menuOpenFFActionPerformed(evt);
        }
    });
    jMenu1.add(menuOpenFF);

    menuDefaultFF.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P,
            java.awt.event.InputEvent.CTRL_MASK));
    menuDefaultFF.setText("Create Default FF");
    menuDefaultFF.setToolTipText("Creates default function file in current working directory.");
    menuDefaultFF.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menuDefaultFFActionPerformed(evt);
        }
    });
    jMenu1.add(menuDefaultFF);

    menuGateUsage.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U,
            java.awt.event.InputEvent.CTRL_MASK));
    menuGateUsage.setText("Gate Usage");
    menuGateUsage.setToolTipText("Swot stats of used function in whole evolution (best chromosomes only).");
    menuGateUsage.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menuGateUsageActionPerformed(evt);
        }
    });
    jMenu1.add(menuGateUsage);

    jMenuBar1.add(jMenu1);

    jMenu2.setText("Help");

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

    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)
                    .addGroup(layout.createSequentialGroup().addGap(0, 0, 0).addComponent(btnCompare)
                            .addGap(12, 12, 12).addComponent(btnZoomOutGraph).addGap(6, 6, 6)
                            .addComponent(btnZoomInGraph).addGap(12, 12, 12).addComponent(btnPrevGraph)
                            .addGap(6, 6, 6).addComponent(btnNextGraph).addGap(12, 12, 12)
                            .addComponent(checkBoxGreyUnused).addGap(6, 6, 6).addComponent(checkBoxColorsFF)
                            .addGap(12, 12, 12)
                            .addComponent(spinnerFitDeltaThreshold, javax.swing.GroupLayout.PREFERRED_SIZE, 65,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(6, 6, 6).addComponent(btnResample).addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1216, Short.MAX_VALUE))
                    .addContainerGap()));

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

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGap(6, 6, 6)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnCompare).addComponent(btnNextGraph).addComponent(btnZoomInGraph)
                            .addComponent(btnPrevGraph).addComponent(btnZoomOutGraph)
                            .addComponent(checkBoxGreyUnused).addComponent(checkBoxColorsFF)
                            .addComponent(spinnerFitDeltaThreshold, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnResample))
                    .addGap(6, 6, 6)
                    .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)
                    .addGap(12, 12, 12)));

    pack();
}

From source file:GUI.MainJF.java

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

    jScrollPane1 = new javax.swing.JScrollPane();
    tb_usuarios = new javax.swing.JTable();
    btn_add = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("API JSON");

    tb_usuarios.setAutoCreateRowSorter(true);
    tb_usuarios
            .setModel(new javax.swing.table.DefaultTableModel(new Object[][] { {}, {}, {}, {} }, new String[] {

    }));
    jScrollPane1.setViewportView(tb_usuarios);

    btn_add.setText("Agregar Usuario");
    btn_add.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btn_addActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 928, Short.MAX_VALUE)
                    .addGroup(
                            layout.createSequentialGroup().addComponent(btn_add).addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap().addComponent(btn_add)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 356, Short.MAX_VALUE)));

    pack();
}

From source file:UserHistoryGUI.java

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

    jPanel3 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    jPanel1 = new javax.swing.JPanel();
    Title = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    BeginnerLabel = new javax.swing.JLabel();
    EasyLabel = new javax.swing.JLabel();
    MediumLabel = new javax.swing.JLabel();
    HardLabel = new javax.swing.JLabel();
    Total = new javax.swing.JLabel();
    Correct = new javax.swing.JLabel();
    Rate = new javax.swing.JLabel();
    BeginnerTotal = new javax.swing.JLabel();
    BeginnerCorrect = new javax.swing.JLabel();
    BeginnerRate = new javax.swing.JLabel();
    EasyRate = new javax.swing.JLabel();
    EasyCorrect = new javax.swing.JLabel();
    EasyTotal = new javax.swing.JLabel();
    MedTotal = new javax.swing.JLabel();
    MedRate = new javax.swing.JLabel();
    MedCorrect = new javax.swing.JLabel();
    HardTotal = new javax.swing.JLabel();
    HardCorrect = new javax.swing.JLabel();
    HardRate = new javax.swing.JLabel();
    TotalScoreLabel = new javax.swing.JLabel();
    TotalScore = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    Answer = new javax.swing.JLabel();
    CorrectorNo = new javax.swing.JLabel();
    jScrollPane2 = new javax.swing.JScrollPane();
    jTextArea2 = new javax.swing.JTextArea();
    Key = new javax.swing.JPanel();
    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();

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

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

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    Title.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
    Title.setText("User Statistics");

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                            .addContainerGap(21, Short.MAX_VALUE).addComponent(Title).addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout
                    .createSequentialGroup().addContainerGap().addComponent(Title,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(26, Short.MAX_VALUE)));

    BeginnerLabel.setText("Beginner Questions:");

    EasyLabel.setText("Easy Questions");

    MediumLabel.setText("Medium Questions");

    HardLabel.setText("Hard Questions");

    Total.setText("Total");

    Correct.setText("Correct");

    Rate.setText("Rate");

    TotalScoreLabel.setText("Total Score:");

    jLabel6.setText("Last Question Answered:");

    jLabel7.setText("Answer");

    jLabel8.setText("Correct?");

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

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel6)
                    .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addGroup(
                                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(BeginnerLabel).addComponent(EasyLabel)
                                            .addComponent(MediumLabel).addComponent(HardLabel))
                                    .addGap(37, 37, 37)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(Total).addComponent(BeginnerTotal)
                                            .addComponent(EasyTotal).addComponent(MedTotal)
                                            .addComponent(HardTotal)))
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(jLabel7)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(Answer)))
                            .addGap(48, 48, 48)
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup().addComponent(jLabel8)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(CorrectorNo))
                                    .addGroup(jPanel2Layout.createSequentialGroup().addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(Correct).addComponent(BeginnerCorrect)
                                            .addComponent(EasyCorrect).addComponent(MedCorrect)
                                            .addComponent(HardCorrect)).addGap(44, 44, 44)
                                            .addGroup(jPanel2Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(MedRate).addComponent(Rate)
                                                    .addComponent(BeginnerRate).addComponent(EasyRate)
                                                    .addComponent(HardRate)))))
                    .addGroup(jPanel2Layout.createSequentialGroup().addComponent(TotalScoreLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(TotalScore))
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 286,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(32, Short.MAX_VALUE)));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(Total).addComponent(Correct).addComponent(Rate))
                    .addGap(21, 21, 21)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(BeginnerLabel).addComponent(BeginnerTotal)
                            .addComponent(BeginnerCorrect).addComponent(BeginnerRate))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(EasyLabel).addComponent(EasyRate).addComponent(EasyCorrect)
                            .addComponent(EasyTotal))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(MediumLabel).addComponent(MedTotal).addComponent(MedRate)
                            .addComponent(MedCorrect))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(HardLabel).addComponent(HardTotal).addComponent(HardCorrect)
                            .addComponent(HardRate, javax.swing.GroupLayout.PREFERRED_SIZE, 14,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18).addComponent(jLabel6).addGap(18, 18, 18)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                    .addGroup(
                            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(Answer, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING))
                                    .addComponent(CorrectorNo))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(TotalScoreLabel).addComponent(TotalScore))
                    .addGap(23, 23, 23)));

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    jLabel1.setText("Score Values");

    jLabel2.setText("Beginner: 10 Points");

    jLabel3.setText("Easy: 20 Points");

    jLabel4.setText("Medium: 30 Points");

    jLabel5.setText("Hard: 50 Points");

    javax.swing.GroupLayout KeyLayout = new javax.swing.GroupLayout(Key);
    Key.setLayout(KeyLayout);
    KeyLayout.setHorizontalGroup(KeyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(KeyLayout.createSequentialGroup().addGap(23, 23, 23).addGroup(KeyLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(KeyLayout.createSequentialGroup()
                            .addGroup(KeyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel4).addComponent(jLabel3).addComponent(jLabel5))
                            .addGap(6, 6, 6))
                    .addGroup(KeyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1).addComponent(jLabel2)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    KeyLayout.setVerticalGroup(KeyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(KeyLayout.createSequentialGroup().addContainerGap().addComponent(jLabel1)
                    .addGap(18, 18, 18).addComponent(jLabel2).addGap(18, 18, 18).addComponent(jLabel3)
                    .addGap(18, 18, 18).addComponent(jLabel4).addGap(18, 18, 18).addComponent(jLabel5)
                    .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().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
                            layout.createSequentialGroup().addGap(149, 149, 149).addComponent(jPanel1,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(18, 18, 18)
                    .addComponent(Key, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 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().addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Key, 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()));

    pack();
}

From source file:jpad.MainEditor.java

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

    jScrollPane1 = new javax.swing.JScrollPane();
    mainTextArea = new javax.swing.JTextArea();
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    openMenuItem = new javax.swing.JMenuItem();
    saveMenuItem = new javax.swing.JMenuItem();
    saveAsMenuItem = new javax.swing.JMenuItem();
    seperator_OpenAndExit = new javax.swing.JPopupMenu.Separator();
    exitMenuItem = new javax.swing.JMenuItem();
    jMenu2 = new javax.swing.JMenu();
    textWrapMenuItem = new javax.swing.JCheckBoxMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
    setTitle("JPad");
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);// ww w  .j a  va  2  s. c om
        }
    });

    mainTextArea.setColumns(20);
    mainTextArea.setLineWrap(true);
    mainTextArea.setRows(5);
    jScrollPane1.setViewportView(mainTextArea);
    textChanged();

    jMenu1.setText("File");

    openMenuItem.setAccelerator(
            KeyStroke.getKeyStroke(KeyEvent.VK_O, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    openMenuItem.setText("Open...");
    openMenuItem.setToolTipText("Open a file");
    openMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            openMenuItemActionPerformed(evt);
        }
    });
    jMenu1.add(openMenuItem);

    saveMenuItem.setAccelerator(
            KeyStroke.getKeyStroke(KeyEvent.VK_S, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
    saveMenuItem.setText("Save...");
    saveMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            saveMenuItemActionPerformed(evt);
        }
    });
    jMenu1.add(saveMenuItem);

    saveAsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,
            (java.awt.event.InputEvent.SHIFT_MASK | (Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()))));
    saveAsMenuItem.setText("Save As...");
    saveAsMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            saveAsMenuItemActionPerformed(evt);
        }
    });
    jMenu1.add(saveAsMenuItem);
    jMenu1.add(seperator_OpenAndExit);

    exitMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q,
            java.awt.event.InputEvent.CTRL_MASK));
    exitMenuItem.setText("Exit");
    exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            exitMenuItemActionPerformed(evt);
        }
    });
    jMenu1.add(exitMenuItem);
    if (_isOSX) {
        exitMenuItem.getParent().remove(exitMenuItem);
    }

    jMenuBar1.add(jMenu1);

    jMenu2.setText("Edit");

    textWrapMenuItem.setText("Text Wrap");
    textWrapMenuItem.setToolTipText("Enables or disables text wrap");
    textWrapMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            textWrapMenuItemActionPerformed(evt);
        }
    });
    jMenu2.add(textWrapMenuItem);
    if (mainTextArea.getLineWrap() == true) {
        textWrapMenuItem.setSelected(true);
    } else {
        textWrapMenuItem.setSelected(false);
    }

    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)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 581, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
            jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 543,
            Short.MAX_VALUE));

    pack();
}