Example usage for javax.swing ActionMap get

List of usage examples for javax.swing ActionMap get

Introduction

In this page you can find the example usage for javax.swing ActionMap get.

Prototype

public Action get(Object key) 

Source Link

Document

Returns the binding for key, messaging the parent ActionMap if the binding is not locally defined.

Usage

From source file:com.jskj.asset.client.panel.slgl.ITGuDingZiChanDengJiJDialog.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 a2s  .c  om*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jScrollPane3 = new javax.swing.JScrollPane();
    gdzcPhoto = new javax.swing.JList();
    jButton7 = new javax.swing.JButton();
    jButton9 = new javax.swing.JButton();
    jButton10 = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jTextFieldZcid = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jTextFieldName = new BaseTextField();
    jLabel3 = new javax.swing.JLabel();
    jTextFieldZctype = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    jTextFieldGuige = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jTextFieldXinghao = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    jTextFieldPinpai = new javax.swing.JTextField();
    jTextFieldUnit = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    jTextFieldQuantity = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jTextFieldSupplier = new javax.swing.JTextField();
    jLabel9 = new javax.swing.JLabel();
    jTextField12 = regTextField;
    jLabel12 = new javax.swing.JLabel();
    jLabel13 = new javax.swing.JLabel();
    jTextFieldBaoxiuqi = regTextField1;
    jTextFieldPrice = new javax.swing.JTextField();
    jLabel14 = new javax.swing.JLabel();
    jTextFieldXuliehao = new javax.swing.JTextField();
    jLabel15 = new javax.swing.JLabel();
    jLabel16 = new javax.swing.JLabel();
    jButton3 = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextAreaRemark = new javax.swing.JTextArea();
    jToolBar1 = new javax.swing.JToolBar();
    jButton5 = new javax.swing.JButton();
    jButton8 = new javax.swing.JButton();
    jButton6 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jButton1 = new javax.swing.JButton();
    jScrollPane4 = new javax.swing.JScrollPane();
    gdzcPhoto1 = new javax.swing.JList();
    jButton11 = new javax.swing.JButton();
    jButton12 = new javax.swing.JButton();
    jButton13 = new javax.swing.JButton();

    jScrollPane3.setName("jScrollPane3"); // NOI18N

    gdzcPhoto.setName("gdzcPhoto"); // NOI18N
    jScrollPane3.setViewportView(gdzcPhoto);

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getActionMap(ITGuDingZiChanDengJiJDialog.class, this);
    jButton7.setAction(actionMap.get("uploadPic")); // NOI18N
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getResourceMap(ITGuDingZiChanDengJiJDialog.class);
    jButton7.setText(resourceMap.getString("jButton7.text")); // NOI18N
    jButton7.setName("jButton7"); // NOI18N

    jButton9.setAction(actionMap.get("deletePic")); // NOI18N
    jButton9.setText(resourceMap.getString("jButton9.text")); // NOI18N
    jButton9.setName("jButton9"); // NOI18N

    jButton10.setAction(actionMap.get("imagePreview")); // NOI18N
    jButton10.setText(resourceMap.getString("jButton10.text")); // NOI18N
    jButton10.setName("jButton10"); // NOI18N

    setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setName("Form"); // NOI18N
    setResizable(false);

    jPanel1.setName("jPanel1"); // NOI18N

    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N

    jTextFieldZcid.setText(resourceMap.getString("jTextFieldZcid.text")); // NOI18N
    jTextFieldZcid.setName("jTextFieldZcid"); // NOI18N

    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N

    jTextFieldName.setName("jTextFieldName"); // NOI18N

    jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    jTextFieldZctype.setText(resourceMap.getString("jTextFieldZctype.text")); // NOI18N
    jTextFieldZctype.setName("jTextFieldZctype"); // NOI18N

    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N

    jTextFieldGuige.setName("jTextFieldGuige"); // NOI18N

    jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
    jLabel5.setName("jLabel5"); // NOI18N

    jTextFieldXinghao.setName("jTextFieldXinghao"); // NOI18N

    jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N

    jTextFieldPinpai.setName("jTextFieldPinpai"); // NOI18N

    jTextFieldUnit.setName("jTextFieldUnit"); // NOI18N

    jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
    jLabel7.setName("jLabel7"); // NOI18N

    jTextFieldQuantity.setName("jTextFieldQuantity"); // NOI18N

    jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
    jLabel8.setName("jLabel8"); // NOI18N

    jTextFieldSupplier.setName("jTextFieldSupplier"); // NOI18N

    jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
    jLabel9.setName("jLabel9"); // NOI18N

    jTextField12.setName("jTextField12"); // NOI18N

    jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
    jLabel12.setName("jLabel12"); // NOI18N

    jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
    jLabel13.setName("jLabel13"); // NOI18N

    jTextFieldBaoxiuqi.setName("jTextFieldBaoxiuqi"); // NOI18N

    jTextFieldPrice.setEditable(false);
    jTextFieldPrice.setName("jTextFieldPrice"); // NOI18N

    jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
    jLabel14.setName("jLabel14"); // NOI18N

    jTextFieldXuliehao.setName("jTextFieldXuliehao"); // NOI18N

    jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
    jLabel15.setName("jLabel15"); // NOI18N

    jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
    jLabel16.setName("jLabel16"); // NOI18N

    jButton3.setAction(actionMap.get("fushuliebiao")); // NOI18N
    jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
    jButton3.setName("jButton3"); // NOI18N

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    jTextAreaRemark.setColumns(20);
    jTextAreaRemark.setRows(2);
    jTextAreaRemark.setName("jTextAreaRemark"); // NOI18N
    jScrollPane1.setViewportView(jTextAreaRemark);

    jToolBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jToolBar1.setFloatable(false);
    jToolBar1.setRollover(true);
    jToolBar1.setBorderPainted(false);
    jToolBar1.setName("jToolBar1"); // NOI18N
    jToolBar1.setOpaque(false);

    jButton5.setAction(actionMap.get("submitForm")); // NOI18N
    jButton5.setIcon(resourceMap.getIcon("jButton5.icon")); // NOI18N
    jButton5.setText(resourceMap.getString("jButton5.text")); // NOI18N
    jButton5.setBorderPainted(false);
    jButton5.setFocusable(false);
    jButton5.setName("jButton5"); // NOI18N
    jButton5.setOpaque(false);
    jToolBar1.add(jButton5);

    jButton8.setAction(actionMap.get("buhege")); // NOI18N
    jButton8.setIcon(resourceMap.getIcon("jButton8.icon")); // NOI18N
    jButton8.setText(resourceMap.getString("jButton8.text")); // NOI18N
    jButton8.setBorderPainted(false);
    jButton8.setFocusable(false);
    jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton8.setName("jButton8"); // NOI18N
    jButton8.setOpaque(false);
    jToolBar1.add(jButton8);

    jButton6.setAction(actionMap.get("generatorBar")); // NOI18N
    jButton6.setIcon(resourceMap.getIcon("jButton6.icon")); // NOI18N
    jButton6.setText(resourceMap.getString("jButton6.text")); // NOI18N
    jButton6.setBorderPainted(false);
    jButton6.setFocusable(false);
    jButton6.setName("jButton6"); // NOI18N
    jButton6.setOpaque(false);
    jToolBar1.add(jButton6);

    jButton4.setAction(actionMap.get("exit")); // NOI18N
    jButton4.setIcon(resourceMap.getIcon("jButton4.icon")); // NOI18N
    jButton4.setText(resourceMap.getString("jButton4.text")); // NOI18N
    jButton4.setBorderPainted(false);
    jButton4.setFocusable(false);
    jButton4.setName("jButton4"); // NOI18N
    jButton4.setOpaque(false);
    jToolBar1.add(jButton4);

    jButton1.setAction(actionMap.get("kuozhan")); // NOI18N
    jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
    jButton1.setName("jButton1"); // NOI18N

    jScrollPane4.setName("jScrollPane4"); // NOI18N

    gdzcPhoto1.setName("gdzcPhoto1"); // NOI18N
    jScrollPane4.setViewportView(gdzcPhoto1);

    jButton11.setAction(actionMap.get("uploadPic")); // NOI18N
    jButton11.setText(resourceMap.getString("jButton11.text")); // NOI18N
    jButton11.setName("jButton11"); // NOI18N

    jButton12.setAction(actionMap.get("deletePic")); // NOI18N
    jButton12.setText(resourceMap.getString("jButton12.text")); // NOI18N
    jButton12.setName("jButton12"); // NOI18N

    jButton13.setAction(actionMap.get("imagePreview")); // NOI18N
    jButton13.setText(resourceMap.getString("jButton13.text")); // NOI18N
    jButton13.setName("jButton13"); // NOI18N

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 564, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup().addGap(23, 23, 23)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel16)
                                                            .addGroup(jPanel1Layout.createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                                    .addGroup(jPanel1Layout.createParallelGroup(
                                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                                            .addComponent(
                                                                                    jLabel3)
                                                                            .addComponent(jLabel1))
                                                                    .addGroup(jPanel1Layout.createParallelGroup(
                                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                                            .addComponent(jLabel4,
                                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                                            .addComponent(jLabel6,
                                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                                            .addGroup(jPanel1Layout
                                                                                    .createParallelGroup(
                                                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                                                    .addComponent(
                                                                                            jLabel12)
                                                                                    .addComponent(jLabel14))
                                                                            .addComponent(
                                                                                    jLabel8,
                                                                                    javax.swing.GroupLayout.Alignment.TRAILING))))
                                                    .addGap(18, 18, 18)
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                                    .addGroup(jPanel1Layout.createParallelGroup(
                                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                                            .addComponent(jTextFieldZcid)
                                                                            .addComponent(jTextFieldZctype)
                                                                            .addComponent(jTextFieldPinpai)
                                                                            .addComponent(
                                                                                    jTextFieldQuantity,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    164,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                            .addComponent(jTextField12,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    164,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                            .addComponent(jTextFieldPrice,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    164,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                            .addComponent(jTextFieldGuige,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    164,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                    .addGap(46, 46, 46)
                                                                    .addGroup(jPanel1Layout.createParallelGroup(
                                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                                            .addComponent(jLabel9).addComponent(
                                                                                    jLabel5)
                                                                            .addComponent(jLabel2)
                                                                            .addComponent(jLabel7)
                                                                            .addComponent(jLabel13)
                                                                            .addComponent(jLabel15))
                                                                    .addGap(18, 18, 18)
                                                                    .addGroup(jPanel1Layout.createParallelGroup(
                                                                            javax.swing.GroupLayout.Alignment.LEADING,
                                                                            false)
                                                                            .addComponent(jTextFieldXuliehao,
                                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                                    172, Short.MAX_VALUE)
                                                                            .addComponent(jTextFieldBaoxiuqi)
                                                                            .addComponent(jTextFieldUnit)
                                                                            .addComponent(
                                                                                    jTextFieldXinghao)
                                                                            .addComponent(jTextFieldSupplier)
                                                                            .addComponent(jTextFieldName)))
                                                            .addComponent(jScrollPane1)))
                                            .addGroup(jPanel1Layout.createSequentialGroup().addGap(24, 24, 24)
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addGroup(jPanel1Layout.createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                                    .addComponent(jButton1)
                                                                    .addComponent(jButton3))
                                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                                    .addGap(108, 108, 108)
                                                                    .addGroup(jPanel1Layout.createParallelGroup(
                                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                                            .addComponent(jButton11)
                                                                            .addComponent(jButton13)
                                                                            .addComponent(jButton12))))
                                                    .addGap(0, 0, Short.MAX_VALUE)))))
                    .addGap(27, 27, 27)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jTextFieldZcid, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2).addComponent(jTextFieldName,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldZctype, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldGuige, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4).addComponent(jLabel5).addComponent(jTextFieldXinghao,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldPinpai, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)
                            .addComponent(jTextFieldUnit, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldQuantity, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8)
                            .addComponent(jTextFieldSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12)
                            .addComponent(jTextFieldBaoxiuqi, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel13))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel14)
                            .addComponent(jTextFieldXuliehao, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel15))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 19,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 31,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 31,
                                            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)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.PREFERRED_SIZE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
            jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
            Short.MAX_VALUE));

    pack();
}

From source file:canreg.client.gui.dataentry.ImportView.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 v a2 s . c  o m*/
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    tabbedPane = new javax.swing.JTabbedPane();
    chooseFilePanel = new javax.swing.JPanel();
    fileNameTextField = new javax.swing.JTextField();
    browseButton = new javax.swing.JButton();
    previewPanel = new javax.swing.JPanel();
    numberOfRecordsLabel = new javax.swing.JLabel();
    numberOfRecordsTextField = new javax.swing.JTextField();
    previewTableScrollPane = new javax.swing.JScrollPane();
    previewTable = new javax.swing.JTable();
    numberOfRecordsShownLabel = new javax.swing.JLabel();
    numberOfRecordsShownTextField = new javax.swing.JTextField();
    previewButton = new javax.swing.JButton();
    fileLabel = new javax.swing.JLabel();
    separatingCharacterComboBox = new javax.swing.JComboBox();
    separatingCharacterLabel = new javax.swing.JLabel();
    autodetectButton = new javax.swing.JButton();
    fileEncodingLabel = new javax.swing.JLabel();
    charsetsComboBox = new javax.swing.JComboBox();
    associateVariablesPanel = new javax.swing.JPanel();
    jLabel8 = new javax.swing.JLabel();
    variablesScrollPane = new javax.swing.JScrollPane();
    variablesPanel = new javax.swing.JPanel();
    jSplitPane1 = new javax.swing.JSplitPane();
    jLabel2 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    importFilePanel = new javax.swing.JPanel();
    importButton = new javax.swing.JButton();
    discrepanciesPanel = new javax.swing.JPanel();
    rejectRadioButton = new javax.swing.JRadioButton();
    updateRadioButton = new javax.swing.JRadioButton();
    overwriteRadioButton = new javax.swing.JRadioButton();
    jPanel7 = new javax.swing.JPanel();
    doChecksCheckBox = new javax.swing.JCheckBox();
    personSearchCheckBox = new javax.swing.JCheckBox();
    queryNewNameCheckBox = new javax.swing.JCheckBox();
    previousCanRegDataCheckBox = new javax.swing.JCheckBox();
    maxLinesPanel = new javax.swing.JPanel();
    maxLinesTextField = new javax.swing.JTextField();
    testOnlyCheckBox = new javax.swing.JCheckBox();
    jPanel1 = new javax.swing.JPanel();
    progressBar = new javax.swing.JProgressBar();
    nextButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    backButton = new javax.swing.JButton();

    setIconifiable(true);
    setMaximizable(true);
    setResizable(true);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext().getResourceMap(ImportView.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setFrameIcon(resourceMap.getIcon("Form.frameIcon")); // NOI18N
    setName("Form"); // NOI18N
    try {
        setSelected(true);
    } catch (java.beans.PropertyVetoException e1) {
        e1.printStackTrace();
    }

    tabbedPane.setName("tabbedPane"); // NOI18N

    chooseFilePanel.setName("chooseFilePanel"); // NOI18N

    fileNameTextField.setName("fileNameTextField"); // NOI18N
    fileNameTextField.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            fileNameTextFieldMousePressed(evt);
        }

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            fileNameTextFieldMouseReleased(evt);
        }
    });
    fileNameTextField.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            fileNameTextFieldFocusLost(evt);
        }
    });

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext().getActionMap(ImportView.class, this);
    browseButton.setAction(actionMap.get("browseFiles")); // NOI18N
    browseButton.setName("browseButton"); // NOI18N

    previewPanel.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("previewPanel.border.title"))); // NOI18N
    previewPanel.setEnabled(false);
    previewPanel.setName("previewPanel"); // NOI18N

    numberOfRecordsLabel.setText(resourceMap.getString("numberOfRecordsLabel.text")); // NOI18N
    numberOfRecordsLabel.setFocusable(false);
    numberOfRecordsLabel.setName("numberOfRecordsLabel"); // NOI18N

    numberOfRecordsTextField.setEditable(false);
    numberOfRecordsTextField.setText(resourceMap.getString("numberOfRecordsTextField.text")); // NOI18N
    numberOfRecordsTextField.setFocusable(false);
    numberOfRecordsTextField.setName("numberOfRecordsTextField"); // NOI18N

    previewTableScrollPane.setName("previewTableScrollPane"); // NOI18N

    previewTable
            .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" }));
    previewTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    previewTable.setEnabled(false);
    previewTable.setFocusable(false);
    previewTable.setName("previewTable"); // NOI18N
    previewTableScrollPane.setViewportView(previewTable);

    numberOfRecordsShownLabel.setText(resourceMap.getString("numberOfRecordsShownLabel.text")); // NOI18N
    numberOfRecordsShownLabel.setFocusable(false);
    numberOfRecordsShownLabel.setName("numberOfRecordsShownLabel"); // NOI18N

    numberOfRecordsShownTextField.setEditable(false);
    numberOfRecordsShownTextField.setFocusable(false);
    numberOfRecordsShownTextField.setName("numberOfRecordsShownTextField"); // NOI18N

    javax.swing.GroupLayout previewPanelLayout = new javax.swing.GroupLayout(previewPanel);
    previewPanel.setLayout(previewPanelLayout);
    previewPanelLayout.setHorizontalGroup(
            previewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(previewPanelLayout.createSequentialGroup().addComponent(numberOfRecordsLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(numberOfRecordsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 95,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(numberOfRecordsShownLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(numberOfRecordsShownTextField, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    102, Short.MAX_VALUE))
                    .addComponent(previewTableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 523,
                            Short.MAX_VALUE));
    previewPanelLayout.setVerticalGroup(previewPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(previewPanelLayout.createSequentialGroup().addGroup(previewPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(numberOfRecordsLabel)
                    .addComponent(numberOfRecordsTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(numberOfRecordsShownLabel).addComponent(numberOfRecordsShownTextField,
                            javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(previewTableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 219,
                            Short.MAX_VALUE)));

    previewButton.setAction(actionMap.get("previewAction")); // NOI18N
    previewButton.setName("previewButton"); // NOI18N

    fileLabel.setText(resourceMap.getString("fileLabel.text")); // NOI18N
    fileLabel.setName("fileLabel"); // NOI18N

    separatingCharacterComboBox.setEditable(true);
    separatingCharacterComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tab", "Comma" }));
    separatingCharacterComboBox.setAction(actionMap.get("comboBoxChanged")); // NOI18N
    separatingCharacterComboBox.setName("separatingCharacterComboBox"); // NOI18N

    separatingCharacterLabel.setText(resourceMap.getString("separatingCharacterLabel.text")); // NOI18N
    separatingCharacterLabel.setName("separatingCharacterLabel"); // NOI18N

    autodetectButton.setAction(actionMap.get("autodetectFileEncodingAction")); // NOI18N
    autodetectButton.setText(resourceMap.getString("autodetectButton.text")); // NOI18N
    autodetectButton.setToolTipText(resourceMap.getString("autodetectButton.toolTipText")); // NOI18N
    autodetectButton.setName("autodetectButton"); // NOI18N

    fileEncodingLabel.setText(resourceMap.getString("fileEncodingLabel.text")); // NOI18N
    fileEncodingLabel.setName("fileEncodingLabel"); // NOI18N

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

    javax.swing.GroupLayout chooseFilePanelLayout = new javax.swing.GroupLayout(chooseFilePanel);
    chooseFilePanel.setLayout(chooseFilePanelLayout);
    chooseFilePanelLayout.setHorizontalGroup(chooseFilePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, chooseFilePanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(chooseFilePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(previewPanel, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addGroup(chooseFilePanelLayout.createSequentialGroup()
                                    .addGroup(chooseFilePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(chooseFilePanelLayout.createSequentialGroup()
                                                    .addComponent(fileLabel)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(fileNameTextField,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE, 365,
                                                            Short.MAX_VALUE))
                                            .addGroup(chooseFilePanelLayout.createSequentialGroup()
                                                    .addComponent(fileEncodingLabel)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(charsetsComboBox,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 117,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(autodetectButton)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(separatingCharacterLabel)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(chooseFilePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(separatingCharacterComboBox, 0,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    chooseFilePanelLayout.createSequentialGroup()
                                                            .addComponent(browseButton)
                                                            .addPreferredGap(
                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(previewButton)))))
                    .addContainerGap()));
    chooseFilePanelLayout.setVerticalGroup(chooseFilePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(chooseFilePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(chooseFilePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(previewButton).addComponent(browseButton).addComponent(fileLabel)
                            .addComponent(fileNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(chooseFilePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(fileEncodingLabel)
                            .addComponent(charsetsComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(separatingCharacterComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(autodetectButton).addComponent(separatingCharacterLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(previewPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));

    tabbedPane.addTab("Choose File", chooseFilePanel);

    associateVariablesPanel.setName("associateVariablesPanel"); // NOI18N

    jLabel8.setName("jLabel8"); // NOI18N

    variablesScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    variablesScrollPane.setName("variablesScrollPane"); // NOI18N

    variablesPanel.setName("variablesPanel"); // NOI18N
    variablesPanel.setLayout(new java.awt.GridLayout(0, 1));
    variablesScrollPane.setViewportView(variablesPanel);

    jSplitPane1.setDividerLocation(200);
    jSplitPane1.setResizeWeight(0.5);
    jSplitPane1.setName("jSplitPane1"); // NOI18N

    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N
    jSplitPane1.setLeftComponent(jLabel2);

    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
    jLabel4.setMaximumSize(new java.awt.Dimension(139, 14));
    jLabel4.setMinimumSize(new java.awt.Dimension(139, 14));
    jLabel4.setName("jLabel4"); // NOI18N
    jSplitPane1.setRightComponent(jLabel4);

    javax.swing.GroupLayout associateVariablesPanelLayout = new javax.swing.GroupLayout(
            associateVariablesPanel);
    associateVariablesPanel.setLayout(associateVariablesPanelLayout);
    associateVariablesPanelLayout.setHorizontalGroup(associateVariablesPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(associateVariablesPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(associateVariablesPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 539,
                                    Short.MAX_VALUE)
                            .addComponent(jLabel8).addComponent(variablesScrollPane,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 539, Short.MAX_VALUE))
                    .addContainerGap()));
    associateVariablesPanelLayout.setVerticalGroup(associateVariablesPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(associateVariablesPanelLayout.createSequentialGroup().addContainerGap()
                    .addComponent(jLabel8).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSplitPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(variablesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 305,
                            Short.MAX_VALUE)
                    .addContainerGap()));

    tabbedPane.addTab("Associate Variables", associateVariablesPanel);

    importFilePanel.setName("importFilePanel"); // NOI18N

    importButton.setAction(actionMap.get("importAction")); // NOI18N
    importButton.setName("importButton"); // NOI18N

    discrepanciesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Discrepancies"));
    discrepanciesPanel.setToolTipText(resourceMap.getString("discrepanciesPanel.toolTipText")); // NOI18N
    discrepanciesPanel.setEnabled(false);
    discrepanciesPanel.setName("discrepanciesPanel"); // NOI18N

    rejectRadioButton.setText(resourceMap.getString("rejectRadioButton.text")); // NOI18N
    rejectRadioButton.setEnabled(false);
    rejectRadioButton.setName("rejectRadioButton"); // NOI18N

    updateRadioButton.setSelected(true);
    updateRadioButton.setText(resourceMap.getString("updateRadioButton.text")); // NOI18N
    updateRadioButton.setEnabled(false);
    updateRadioButton.setName("updateRadioButton"); // NOI18N

    overwriteRadioButton.setText(resourceMap.getString("overwriteRadioButton.text")); // NOI18N
    overwriteRadioButton.setEnabled(false);
    overwriteRadioButton.setName("overwriteRadioButton"); // NOI18N

    javax.swing.GroupLayout discrepanciesPanelLayout = new javax.swing.GroupLayout(discrepanciesPanel);
    discrepanciesPanel.setLayout(discrepanciesPanelLayout);
    discrepanciesPanelLayout.setHorizontalGroup(
            discrepanciesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(discrepanciesPanelLayout.createSequentialGroup().addContainerGap()
                            .addGroup(discrepanciesPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(rejectRadioButton).addComponent(updateRadioButton)
                                    .addComponent(overwriteRadioButton))
                            .addContainerGap(12, Short.MAX_VALUE)));
    discrepanciesPanelLayout.setVerticalGroup(
            discrepanciesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(discrepanciesPanelLayout.createSequentialGroup().addComponent(rejectRadioButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(updateRadioButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(overwriteRadioButton).addContainerGap(24, Short.MAX_VALUE)));

    jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder("CanReg data"));
    jPanel7.setName("jPanel7"); // NOI18N

    doChecksCheckBox.setText(resourceMap.getString("doChecksCheckBox.text")); // NOI18N
    doChecksCheckBox.setToolTipText(resourceMap.getString("doChecksCheckBox.toolTipText")); // NOI18N
    doChecksCheckBox.setEnabled(false);
    doChecksCheckBox.setName("doChecksCheckBox"); // NOI18N

    personSearchCheckBox.setSelected(true);
    personSearchCheckBox.setText(resourceMap.getString("personSearchCheckBox.text")); // NOI18N
    personSearchCheckBox.setToolTipText(resourceMap.getString("personSearchCheckBox.toolTipText")); // NOI18N
    personSearchCheckBox.setEnabled(false);
    personSearchCheckBox.setName("personSearchCheckBox"); // NOI18N

    queryNewNameCheckBox.setText(resourceMap.getString("queryNewNameCheckBox.text")); // NOI18N
    queryNewNameCheckBox.setToolTipText(resourceMap.getString("queryNewNameCheckBox.toolTipText")); // NOI18N
    queryNewNameCheckBox.setEnabled(false);
    queryNewNameCheckBox.setName("queryNewNameCheckBox"); // NOI18N

    previousCanRegDataCheckBox.setSelected(true);
    previousCanRegDataCheckBox.setText(resourceMap.getString("previousCanRegDataCheckBox.text")); // NOI18N
    previousCanRegDataCheckBox.setToolTipText(resourceMap.getString("previousCanRegDataCheckBox.toolTipText")); // NOI18N
    previousCanRegDataCheckBox.setName("previousCanRegDataCheckBox"); // NOI18N

    javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
    jPanel7.setLayout(jPanel7Layout);
    jPanel7Layout.setHorizontalGroup(jPanel7Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(doChecksCheckBox).addComponent(personSearchCheckBox)
                            .addComponent(queryNewNameCheckBox).addComponent(previousCanRegDataCheckBox))
                    .addContainerGap(94, Short.MAX_VALUE)));
    jPanel7Layout.setVerticalGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup().addComponent(doChecksCheckBox)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(personSearchCheckBox)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(queryNewNameCheckBox)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(previousCanRegDataCheckBox)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    maxLinesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Max Lines"));
    maxLinesPanel.setName("maxLinesPanel"); // NOI18N

    maxLinesTextField.setToolTipText(resourceMap.getString("maxLinesTextField.toolTipText")); // NOI18N
    maxLinesTextField.setName("maxLinesTextField"); // NOI18N
    maxLinesTextField.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            maxLinesTextFieldMousePressed(evt);
        }

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

    testOnlyCheckBox.setText(resourceMap.getString("testOnlyCheckBox.text")); // NOI18N
    testOnlyCheckBox.setToolTipText(resourceMap.getString("testOnlyCheckBox.toolTipText")); // NOI18N
    testOnlyCheckBox.setName("testOnlyCheckBox"); // NOI18N

    javax.swing.GroupLayout maxLinesPanelLayout = new javax.swing.GroupLayout(maxLinesPanel);
    maxLinesPanel.setLayout(maxLinesPanelLayout);
    maxLinesPanelLayout.setHorizontalGroup(
            maxLinesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    maxLinesPanelLayout.createSequentialGroup().addContainerGap()
                            .addGroup(maxLinesPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(testOnlyCheckBox).addComponent(maxLinesTextField,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE))
                            .addContainerGap()));
    maxLinesPanelLayout.setVerticalGroup(maxLinesPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(maxLinesPanelLayout.createSequentialGroup()
                    .addComponent(maxLinesTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(testOnlyCheckBox).addContainerGap(54, Short.MAX_VALUE)));

    jPanel1.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel1.border.title"))); // NOI18N
    jPanel1.setName("jPanel1"); // NOI18N

    progressBar.setName("progressBar"); // NOI18N

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, 523, Short.MAX_VALUE));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE));

    javax.swing.GroupLayout importFilePanelLayout = new javax.swing.GroupLayout(importFilePanel);
    importFilePanel.setLayout(importFilePanelLayout);
    importFilePanelLayout.setHorizontalGroup(importFilePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(importFilePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(importFilePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(importFilePanelLayout.createSequentialGroup()
                                    .addComponent(discrepanciesPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(maxLinesPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(importButton, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addContainerGap()));
    importFilePanelLayout.setVerticalGroup(importFilePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(importFilePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(importFilePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(discrepanciesPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(maxLinesPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .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(importButton).addGap(115, 115, 115)));

    tabbedPane.addTab("Import File", importFilePanel);

    nextButton.setAction(actionMap.get("jumpToNextTabAction")); // NOI18N
    nextButton.setName("nextButton"); // NOI18N

    cancelButton.setAction(actionMap.get("cancelAction")); // NOI18N
    cancelButton.setName("cancelButton"); // NOI18N

    backButton.setAction(actionMap.get("jumpToPreviousTabAction")); // NOI18N
    backButton.setName("backButton"); // NOI18N

    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(tabbedPane, javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addComponent(backButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cancelButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(nextButton)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap()
                    .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 383, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nextButton).addComponent(cancelButton).addComponent(backButton))
                    .addContainerGap()));

    pack();
}

From source file:au.org.ala.delta.intkey.ui.TaxonInformationDialog.java

public TaxonInformationDialog(Frame owner, List<Item> taxa, IntkeyContext context,
        boolean imageDisplayEnabled) {
    super(owner, false);

    setPreferredSize(new Dimension(550, 280));
    setMinimumSize(new Dimension(550, 280));

    ResourceMap resourceMap = Application.getInstance().getContext()
            .getResourceMap(TaxonInformationDialog.class);
    resourceMap.injectFields(this);
    ActionMap actionMap = Application.getInstance().getContext().getActionMap(TaxonInformationDialog.class,
            this);

    setTitle(title);/*from  www. ja v  a2 s . c om*/
    getContentPane().setLayout(new BorderLayout(0, 0));

    _mainPanel = new JPanel();
    getContentPane().add(_mainPanel, BorderLayout.CENTER);
    _mainPanel.setLayout(new BorderLayout(0, 0));

    _comboPanel = new JPanel();
    _comboPanel.setBorder(new EmptyBorder(10, 10, 10, 10));
    _mainPanel.add(_comboPanel, BorderLayout.NORTH);
    _comboPanel.setLayout(new BorderLayout(0, 0));

    _comboBox = new JComboBox();
    _comboBox.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            displayTaxon(_comboBox.getSelectedIndex());
        }
    });

    _comboPanel.add(_comboBox, BorderLayout.CENTER);

    _btnPanel = new JPanel();
    _btnPanel.setBorder(new EmptyBorder(0, 0, 10, 0));
    _mainPanel.add(_btnPanel, BorderLayout.SOUTH);

    _btnDisplay = new JButton();
    _btnDisplay.setAction(actionMap.get("displaySelectedTaxonInformation"));
    _btnPanel.add(_btnDisplay);

    _btnMultipleImages = new JButton();
    _btnMultipleImages.setAction(actionMap.get("displayMultipleImages"));
    _btnMultipleImages.setEnabled(!context.displayContinuous() && imageDisplayEnabled);
    _btnPanel.add(_btnMultipleImages);

    _btnWebSearch = new JButton();
    _btnWebSearch.setAction(actionMap.get("webSearch"));
    _btnWebSearch.setEnabled(true);
    _btnPanel.add(_btnWebSearch);

    _btnDeselectAll = new JButton();
    _btnDeselectAll.setAction(actionMap.get("deselectAllTaxonInformation"));
    _btnPanel.add(_btnDeselectAll);

    _btnDone = new JButton();
    _btnDone.setAction(actionMap.get("done"));
    _btnPanel.add(_btnDone);

    _pnlCenter = new JPanel();
    _mainPanel.add(_pnlCenter, BorderLayout.CENTER);
    _pnlCenter.setLayout(new BorderLayout(0, 0));

    _pnlNavigationButtons = new JPanel();
    _pnlCenter.add(_pnlNavigationButtons, BorderLayout.NORTH);

    _btnStart = new JButton();
    _btnStart.setAction(actionMap.get("firstTaxon"));
    _pnlNavigationButtons.add(_btnStart);

    _btnPrevious = new JButton();
    _btnPrevious.setAction(actionMap.get("previousTaxon"));
    _pnlNavigationButtons.add(_btnPrevious);

    _btnForward = new JButton();
    _btnForward.setAction(actionMap.get("nextTaxon"));
    _pnlNavigationButtons.add(_btnForward);

    _btnEnd = new JButton();
    _btnEnd.setAction(actionMap.get("lastTaxon"));
    _pnlNavigationButtons.add(_btnEnd);

    _pnlLists = new JPanel();
    _pnlCenter.add(_pnlLists, BorderLayout.CENTER);
    _pnlLists.setLayout(new GridLayout(0, 2, 0, 0));

    _pnlListOther = new JPanel();
    _pnlListOther.setBorder(new EmptyBorder(5, 5, 5, 5));
    _pnlLists.add(_pnlListOther);
    _pnlListOther.setLayout(new BorderLayout(0, 0));

    _listOther = new JList();
    _listOther.addMouseListener(new MouseInputAdapter() {

        @Override
        public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() >= 2) {
                int selectedIndex = _listOther.getSelectedIndex();
                _cmds.get(selectedIndex).execute();
            }
        }

    });

    _sclPnOther = new JScrollPane();
    _sclPnOther.setViewportView(_listOther);
    _pnlListOther.add(_sclPnOther, BorderLayout.CENTER);

    _lblOther = new JLabel();
    _pnlListOther.add(_lblOther, BorderLayout.NORTH);

    _pnlListIllustrations = new JPanel();
    _pnlListIllustrations.setBorder(new EmptyBorder(5, 5, 5, 5));
    _pnlLists.add(_pnlListIllustrations);
    _pnlListIllustrations.setLayout(new BorderLayout(0, 0));

    _lblIllustrations = new JLabel();
    _pnlListIllustrations.add(_lblIllustrations, BorderLayout.NORTH);

    _listIllustrations = new JList();
    _listIllustrations.addMouseListener(new MouseInputAdapter() {

        @Override
        public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() >= 2) {
                if (_imageDisplayEnabled) {
                    int selectedListIndex = _listIllustrations.getSelectedIndex();
                    displaySelectedTaxonImage(selectedListIndex, true);
                } else {
                    _context.getUI()
                            .displayErrorMessage(UIUtils.getResourceString("ImageDisplayDisabled.error"));
                }
            }
        }

    });

    _sclPnIllustrations = new JScrollPane();

    _sclPnIllustrations.setViewportView(_listIllustrations);
    _pnlListIllustrations.add(_sclPnIllustrations);

    _context = context;
    _imageDisplayEnabled = imageDisplayEnabled;
    _definedDirectiveCommands = _context.getTaxonInformationDialogCommands();

    _infoSettings = _context.getInfoSettings();
    _imageSettings = _context.getImageSettings();
    _itemFormatter = new ItemFormatter(_context.displayNumbering(), CommentStrippingMode.RETAIN,
            AngleBracketHandlingMode.REMOVE, true, false, false);
    _imageDescriptionFormatter = new Formatter(CommentStrippingMode.RETAIN, AngleBracketHandlingMode.RETAIN,
            true, false);

    int totalNumberImages = 0;
    _taxa = taxa;
    _taxaWithImages = new ArrayList<Item>();
    for (Item taxon : taxa) {
        totalNumberImages += taxon.getImageCount();
        if (taxon.getImageCount() > 0) {
            _taxaWithImages.add(taxon);
        }
    }

    if (totalNumberImages < 2) {
        _btnMultipleImages.setEnabled(false);
    }

    initialize();

    loadDesktopInBackground();

    this.pack();
}

From source file:au.org.ala.delta.editor.ui.ItemEditor.java

/**
 * Adds the event handlers to the UI components.
 *///w w  w  .  ja  v  a  2 s . co  m
private void addEventHandlers(ActionMap map) {
    spinner.addChangeListener(new ChangeListener() {
        @Override
        public void stateChanged(ChangeEvent e) {
            if (_editsDisabled) {
                return;
            }

            updateItemSelection((Integer) spinner.getValue());
        }
    });

    rtfEditor.getDocument().addDocumentListener(new DocumentListener() {
        @Override
        public void removeUpdate(DocumentEvent e) {
            itemEditPerformed();
        }

        @Override
        public void insertUpdate(DocumentEvent e) {
            itemEditPerformed();
        }

        @Override
        public void changedUpdate(DocumentEvent e) {
            itemEditPerformed();
        }
    });
    rtfEditor.addKeyListener(new SelectionNavigationKeyListener() {

        @Override
        protected void advanceSelection() {
            _validator.verify(rtfEditor);
        }

    });
    taxonSelectionList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    taxonSelectionList.addListSelectionListener(new ListSelectionListener() {
        @Override
        public void valueChanged(ListSelectionEvent e) {
            if (_editsDisabled) {
                return;
            }
            _selectedItem = _dataSet.getItem(taxonSelectionList.getSelectedIndex() + 1);
            updateDisplay();
        }
    });

    btnDone.setAction(map.get("itemEditDone"));
    chckbxTreatAsVariant.setAction(map.get("itemVarianceChanged"));
    btnSelect.setAction(map.get("selectItemByName"));
    taxonSelectionList.setSelectionAction(map.get("taxonSelected"));
    _validator = new TextComponentValidator(new ItemValidator(), this);

    // Give the item description text area focus.
    addInternalFrameListener(new InternalFrameAdapter() {
        @Override
        public void internalFrameActivated(InternalFrameEvent e) {
            rtfEditor.requestFocusInWindow();
        }
    });
}

From source file:net.sf.vfsjfilechooser.filepane.VFSFilePane.java

@Override
public JPopupMenu getComponentPopupMenu() {
    JPopupMenu popupMenu = getFileChooser().getComponentPopupMenu();

    if (popupMenu != null) {
        return popupMenu;
    }/*from  www  .java  2  s. com*/

    JMenu aViewMenu = getViewMenu();

    if (contextMenu == null) {
        contextMenu = new JPopupMenu();

        if (aViewMenu != null) {
            contextMenu.add(aViewMenu);

            if (listViewWindowsStyle) {
                contextMenu.addSeparator();
            }
        }

        ActionMap actionMap = getActionMap();
        Action refreshAction = actionMap.get(ACTION_REFRESH);
        Action aNewFolderAction = actionMap.get(ACTION_NEW_FOLDER);

        if (refreshAction != null) {
            contextMenu.add(refreshAction);

            if (listViewWindowsStyle && (aNewFolderAction != null)) {
                contextMenu.addSeparator();
            }
        }

        if (aNewFolderAction != null) {
            contextMenu.add(aNewFolderAction);
        }
    }

    if (aViewMenu != null) {
        aViewMenu.getPopupMenu().setInvoker(aViewMenu);
    }

    return contextMenu;
}

From source file:com.googlecode.vfsjfilechooser2.filepane.VFSFilePane.java

@Override
public JPopupMenu getComponentPopupMenu() {
    JPopupMenu popupMenu = getFileChooser().getComponentPopupMenu();

    if (popupMenu != null) {
        return popupMenu;
    }//  w w  w  .ja  v  a2  s .c  o m

    JMenu aViewMenu = getViewMenu();

    if (contextMenu == null) {
        contextMenu = new JPopupMenu();

        if (aViewMenu != null) {
            contextMenu.add(aViewMenu);

            if (listViewWindowsStyle) {
                contextMenu.addSeparator();
            }
        }

        ActionMap actionMap = getActionMap();
        Action refreshAction = actionMap.get(ACTION_REFRESH);
        Action aNewFolderAction = actionMap.get(ACTION_NEW_FOLDER);
        Action showHiddenFiles = actionMap.get(ACTION_VIEW_HIDDEN);

        if (refreshAction != null) {
            contextMenu.add(refreshAction);

            if (listViewWindowsStyle && (aNewFolderAction != null)) {
                contextMenu.addSeparator();
            }
        }

        if (showHiddenFiles != null) {
            JCheckBoxMenuItem menuitem = new JCheckBoxMenuItem(showHiddenFiles);
            menuitem.setSelected((Boolean) showHiddenFiles.getValue(Action.SELECTED_KEY));
            contextMenu.add(menuitem);
        }

        if (aNewFolderAction != null) {
            contextMenu.add(aNewFolderAction);
        }
    }

    if (aViewMenu != null) {
        aViewMenu.getPopupMenu().setInvoker(aViewMenu);
    }

    return contextMenu;
}

From source file:cs.cirg.cida.CIDAView.java

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

    mainPanel = new javax.swing.JPanel();
    testPanel = new javax.swing.JTabbedPane();
    homePanel = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    synopsisTable = new javax.swing.JTable();
    experimentsLabel = new javax.swing.JLabel();
    loadExperimentButton = new javax.swing.JButton();
    experimentsComboBox = new javax.swing.JComboBox();
    editResultsNameCheckBox = new javax.swing.JCheckBox();
    addToTestButton = new javax.swing.JButton();
    variablesLabel = new javax.swing.JLabel();
    variablesComboBox = new javax.swing.JComboBox();
    addAllRowsCheckBox = new javax.swing.JCheckBox();
    exportTableButton = new javax.swing.JButton();
    addToAnalysisPanel = new javax.swing.JPanel();
    addOneVariableAnalysis = new javax.swing.JButton();
    addAllExperimentsAnalysis = new javax.swing.JButton();
    jLabel5 = new javax.swing.JLabel();
    addToAnalysisPanel1 = new javax.swing.JPanel();
    addAllVariablesAnalysis = new javax.swing.JButton();
    jLabel4 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    addToAnalysisPanel2 = new javax.swing.JPanel();
    addAllAnalysis = new javax.swing.JButton();
    jLabel6 = new javax.swing.JLabel();
    rawPanel = new javax.swing.JPanel();
    rawPanelToolbar = new javax.swing.JToolBar();
    exportDataButton = new javax.swing.JButton();
    rawScrollPane = new javax.swing.JScrollPane();
    rawTable = new javax.swing.JTable();
    analysisPanel = new javax.swing.JPanel();
    analysisToolbar = new javax.swing.JToolBar();
    plotButton = new javax.swing.JButton();
    clearAnalysisButton = new javax.swing.JButton();
    exportAnalysisButton = new javax.swing.JButton();
    analysisScrollPane = new javax.swing.JScrollPane();
    analysisTable = new javax.swing.JTable();
    chartHomePanel = new javax.swing.JPanel();
    chartToolbar = new javax.swing.JToolBar();
    toggleLineTicksButton = new javax.swing.JToggleButton();
    lineTickIntervalLabel = new javax.swing.JLabel();
    lineTickIntervalInput = new javax.swing.JTextField();
    lineSeriesComboBox = new javax.swing.JComboBox();
    seriesColorButton = new javax.swing.JButton();
    seriesNameButton = new javax.swing.JButton();
    exportPNGButton = new javax.swing.JButton();
    exportEPSButton = new javax.swing.JButton();
    chartScrollPane = new javax.swing.JScrollPane();
    chartPanel = new ChartPanel(null, true, true, false, true, true);
    jPanel1 = new javax.swing.JPanel();
    testToolbar = new javax.swing.JToolBar();
    jLabel1 = new javax.swing.JLabel();
    variablesTestComboBox = new javax.swing.JComboBox();
    jLabel2 = new javax.swing.JLabel();
    hypothesisComboBox = new javax.swing.JComboBox();
    mannWhitneyUTestButton = new javax.swing.JButton();
    testExperimentsScrollPane = new javax.swing.JScrollPane();
    testExperimentsTable = new javax.swing.JTable();
    testResultsScrollPane = new javax.swing.JScrollPane();
    testResultsTable = new javax.swing.JTable();
    menuBar = new javax.swing.JMenuBar();
    javax.swing.JMenu fileMenu = new javax.swing.JMenu();
    javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
    javax.swing.JMenu helpMenu = new javax.swing.JMenu();
    javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
    statusPanel = new javax.swing.JPanel();
    javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
    statusMessageLabel = new javax.swing.JLabel();
    statusAnimationLabel = new javax.swing.JLabel();
    progressBar = new javax.swing.JProgressBar();

    mainPanel.setName("mainPanel"); // NOI18N
    mainPanel.setPreferredSize(new java.awt.Dimension(1024, 768));

    testPanel.setAutoscrolls(true);
    testPanel.setName("testPanel"); // NOI18N
    testPanel.setPreferredSize(new java.awt.Dimension(1024, 768));

    homePanel.setAutoscrolls(true);
    homePanel.setName("homePanel"); // NOI18N

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    synopsisTable.setAutoCreateRowSorter(true);
    synopsisTable.setModel(new SynopsisTableModel());
    synopsisTable.setColumnSelectionAllowed(true);
    synopsisTable.setName("synopsisTable"); // NOI18N
    jScrollPane1.setViewportView(synopsisTable);
    synopsisTable.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(cs.cirg.cida.CIDAApplication.class).getContext().getResourceMap(CIDAView.class);
    experimentsLabel.setText(resourceMap.getString("experimentsLabel.text")); // NOI18N
    experimentsLabel.setName("experimentsLabel"); // NOI18N

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(cs.cirg.cida.CIDAApplication.class).getContext().getActionMap(CIDAView.class, this);
    loadExperimentButton.setAction(actionMap.get("loadExperiment")); // NOI18N
    loadExperimentButton.setText(resourceMap.getString("loadExperimentButton.text")); // NOI18N
    loadExperimentButton.setMaximumSize(new java.awt.Dimension(110, 29));
    loadExperimentButton.setMinimumSize(new java.awt.Dimension(110, 29));
    loadExperimentButton.setName("loadExperimentButton"); // NOI18N
    loadExperimentButton.setPreferredSize(new java.awt.Dimension(110, 29));

    experimentsComboBox.setModel(new javax.swing.DefaultComboBoxModel());
    experimentsComboBox.setName("experimentsComboBox"); // NOI18N
    experimentsComboBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            experimentsComboBoxActionPerformed(evt);
        }
    });

    editResultsNameCheckBox.setSelected(true);
    editResultsNameCheckBox.setText(resourceMap.getString("editResultsNameCheckBox.text")); // NOI18N
    editResultsNameCheckBox.setName("editResultsNameCheckBox"); // NOI18N

    addToTestButton.setAction(actionMap.get("addExperimentToTest")); // NOI18N
    addToTestButton.setText(resourceMap.getString("addToTestButton.text")); // NOI18N
    addToTestButton.setMaximumSize(new java.awt.Dimension(110, 29));
    addToTestButton.setMinimumSize(new java.awt.Dimension(110, 29));
    addToTestButton.setName("addToTestButton"); // NOI18N
    addToTestButton.setPreferredSize(new java.awt.Dimension(110, 29));

    variablesLabel.setText(resourceMap.getString("variablesLabel.text")); // NOI18N
    variablesLabel.setName("variablesLabel"); // NOI18N

    variablesComboBox.setName("variablesComboBox"); // NOI18N

    addAllRowsCheckBox.setSelected(true);
    addAllRowsCheckBox.setText(resourceMap.getString("addAllRowsCheckBox.text")); // NOI18N
    addAllRowsCheckBox.setName("addAllRowsCheckBox"); // NOI18N

    exportTableButton.setAction(actionMap.get("exportSynopsisTable")); // NOI18N
    exportTableButton.setText(resourceMap.getString("exportTableButton.text")); // NOI18N
    exportTableButton.setName("exportTableButton"); // NOI18N

    addToAnalysisPanel.setName("addToAnalysisPanel"); // NOI18N

    addOneVariableAnalysis.setAction(actionMap.get("addVariableAnalysis")); // NOI18N
    addOneVariableAnalysis.setText(resourceMap.getString("addOneVariableAnalysis.text")); // NOI18N
    addOneVariableAnalysis.setName("addOneVariableAnalysis"); // NOI18N

    addAllExperimentsAnalysis.setAction(actionMap.get("addAllExperimentsAnalysis")); // NOI18N
    addAllExperimentsAnalysis.setText(resourceMap.getString("addAllExperimentsAnalysis.text")); // NOI18N
    addAllExperimentsAnalysis.setName("addAllExperimentsAnalysis"); // NOI18N

    jLabel5.setFont(resourceMap.getFont("jLabel5.font")); // NOI18N
    jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
    jLabel5.setName("jLabel5"); // NOI18N

    org.jdesktop.layout.GroupLayout addToAnalysisPanelLayout = new org.jdesktop.layout.GroupLayout(
            addToAnalysisPanel);
    addToAnalysisPanel.setLayout(addToAnalysisPanelLayout);
    addToAnalysisPanelLayout
            .setHorizontalGroup(
                    addToAnalysisPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(addToAnalysisPanelLayout.createSequentialGroup().add(addToAnalysisPanelLayout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                    .add(addOneVariableAnalysis, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(jLabel5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(addAllExperimentsAnalysis,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)
                                    .addContainerGap()));
    addToAnalysisPanelLayout.setVerticalGroup(addToAnalysisPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(addToAnalysisPanelLayout.createSequentialGroup().add(jLabel5).add(8, 8, 8)
                    .add(addToAnalysisPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(addOneVariableAnalysis, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(addAllExperimentsAnalysis, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));

    addToAnalysisPanel1.setName("addToAnalysisPanel1"); // NOI18N

    addAllVariablesAnalysis.setAction(actionMap.get("addAllVariablesAnalysis")); // NOI18N
    addAllVariablesAnalysis.setText(resourceMap.getString("addAllVariablesAnalysis.text")); // NOI18N
    addAllVariablesAnalysis.setName("addAllVariablesAnalysis"); // NOI18N

    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N

    org.jdesktop.layout.GroupLayout addToAnalysisPanel1Layout = new org.jdesktop.layout.GroupLayout(
            addToAnalysisPanel1);
    addToAnalysisPanel1.setLayout(addToAnalysisPanel1Layout);
    addToAnalysisPanel1Layout.setHorizontalGroup(addToAnalysisPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(addToAnalysisPanel1Layout.createSequentialGroup().add(jLabel4)
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(addAllVariablesAnalysis, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE));
    addToAnalysisPanel1Layout.setVerticalGroup(
            addToAnalysisPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(addToAnalysisPanel1Layout.createSequentialGroup().add(jLabel4)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(addAllVariablesAnalysis, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jLabel3.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N
    jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    addToAnalysisPanel2.setName("addToAnalysisPanel2"); // NOI18N

    addAllAnalysis.setAction(actionMap.get("addAllAnalysis")); // NOI18N
    addAllAnalysis.setText(resourceMap.getString("addAllAnalysis.text")); // NOI18N
    addAllAnalysis.setName("addAllAnalysis"); // NOI18N

    jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N

    org.jdesktop.layout.GroupLayout addToAnalysisPanel2Layout = new org.jdesktop.layout.GroupLayout(
            addToAnalysisPanel2);
    addToAnalysisPanel2.setLayout(addToAnalysisPanel2Layout);
    addToAnalysisPanel2Layout.setHorizontalGroup(
            addToAnalysisPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(addToAnalysisPanel2Layout.createSequentialGroup()
                            .add(addToAnalysisPanel2Layout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(jLabel6)
                                    .add(addAllAnalysis))
                            .addContainerGap(95, Short.MAX_VALUE)));
    addToAnalysisPanel2Layout.setVerticalGroup(
            addToAnalysisPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(addToAnalysisPanel2Layout.createSequentialGroup().add(jLabel6)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(addAllAnalysis,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    org.jdesktop.layout.GroupLayout homePanelLayout = new org.jdesktop.layout.GroupLayout(homePanel);
    homePanel.setLayout(homePanelLayout);
    homePanelLayout.setHorizontalGroup(homePanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(homePanelLayout.createSequentialGroup().addContainerGap().add(homePanelLayout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 976, Short.MAX_VALUE)
                    .add(homePanelLayout.createSequentialGroup().add(homePanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                            .add(homePanelLayout.createSequentialGroup().add(variablesLabel)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(variablesComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 341,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(org.jdesktop.layout.GroupLayout.LEADING, homePanelLayout
                                    .createSequentialGroup()
                                    .add(experimentsComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            348, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(homePanelLayout
                                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                            .add(homePanelLayout.createSequentialGroup().add(18, 18, 18).add(
                                                    addToTestButton,
                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                            .add(homePanelLayout.createSequentialGroup()
                                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                                    .add(loadExperimentButton,
                                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE)))))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(homePanelLayout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                                    .add(editResultsNameCheckBox).add(jLabel3)
                                    .add(addToAnalysisPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(exportTableButton)
                                    .add(addToAnalysisPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .add(addToAnalysisPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(addAllRowsCheckBox))
                    .add(experimentsLabel)).addContainerGap()));
    homePanelLayout.setVerticalGroup(homePanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(homePanelLayout.createSequentialGroup().addContainerGap().add(homePanelLayout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(homePanelLayout.createSequentialGroup().add(experimentsLabel)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(homePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                    .add(editResultsNameCheckBox)
                                    .add(experimentsComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(loadExperimentButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                            .add(addToTestButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                            .add(homePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                    .add(variablesComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(variablesLabel).add(jLabel3))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(addToAnalysisPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(12, 12, 12))
                    .add(addAllRowsCheckBox)).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(addToAnalysisPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(addToAnalysisPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(18, 18, 18).add(exportTableButton).add(18, 18, 18)
                    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
                    .addContainerGap()));

    testPanel.addTab(resourceMap.getString("homePanel.TabConstraints.tabTitle"), homePanel); // NOI18N

    rawPanel.setName("rawPanel"); // NOI18N

    rawPanelToolbar.setRollover(true);
    rawPanelToolbar.setName("rawPanelToolbar"); // NOI18N

    exportDataButton.setAction(actionMap.get("exportRaw")); // NOI18N
    exportDataButton.setText(resourceMap.getString("exportDataButton.text")); // NOI18N
    exportDataButton.setFocusable(false);
    exportDataButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    exportDataButton.setName("exportDataButton"); // NOI18N
    exportDataButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    rawPanelToolbar.add(exportDataButton);

    rawScrollPane.setName("rawScrollPane"); // NOI18N

    rawTable.setAutoCreateRowSorter(true);
    rawTable.setModel(new IOBridgeTableModel());
    rawTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    rawTable.setColumnSelectionAllowed(true);
    rawTable.setName("rawTable"); // NOI18N
    rawScrollPane.setViewportView(rawTable);
    rawTable.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

    org.jdesktop.layout.GroupLayout rawPanelLayout = new org.jdesktop.layout.GroupLayout(rawPanel);
    rawPanel.setLayout(rawPanelLayout);
    rawPanelLayout
            .setHorizontalGroup(rawPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(rawPanelToolbar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1000, Short.MAX_VALUE)
                    .add(rawScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1000, Short.MAX_VALUE));
    rawPanelLayout.setVerticalGroup(rawPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(rawPanelLayout.createSequentialGroup()
                    .add(rawPanelToolbar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(rawScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 670, Short.MAX_VALUE)
                    .addContainerGap()));

    testPanel.addTab(resourceMap.getString("rawPanel.TabConstraints.tabTitle"), rawPanel); // NOI18N

    analysisPanel.setName("analysisPanel"); // NOI18N

    analysisToolbar.setRollover(true);
    analysisToolbar.setName("analysisToolbar"); // NOI18N

    plotButton.setAction(actionMap.get("plotGraph")); // NOI18N
    plotButton.setText(resourceMap.getString("plotButton.text")); // NOI18N
    plotButton.setFocusable(false);
    plotButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    plotButton.setName("plotButton"); // NOI18N
    plotButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    analysisToolbar.add(plotButton);

    clearAnalysisButton.setAction(actionMap.get("clearAnalysisTable")); // NOI18N
    clearAnalysisButton.setText(resourceMap.getString("clearAnalysisButton.text")); // NOI18N
    clearAnalysisButton.setFocusable(false);
    clearAnalysisButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    clearAnalysisButton.setName("clearAnalysisButton"); // NOI18N
    clearAnalysisButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    analysisToolbar.add(clearAnalysisButton);

    exportAnalysisButton.setAction(actionMap.get("exportAnalysis")); // NOI18N
    exportAnalysisButton.setText(resourceMap.getString("exportAnalysisButton.text")); // NOI18N
    exportAnalysisButton.setFocusable(false);
    exportAnalysisButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    exportAnalysisButton.setName("exportAnalysisButton"); // NOI18N
    exportAnalysisButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    analysisToolbar.add(exportAnalysisButton);

    analysisScrollPane.setName("analysisScrollPane"); // NOI18N

    ListSelectionModel listSelectionModel = analysisTable.getSelectionModel();
    listSelectionModel.addListSelectionListener(new SelectionListener(userSelectedRows));
    analysisTable.setSelectionModel(listSelectionModel);
    analysisTable.setAutoCreateRowSorter(true);
    analysisTable.setModel(new IOBridgeTableModel());
    analysisTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    analysisTable.setColumnSelectionAllowed(true);
    analysisTable.setName("analysisTable"); // NOI18N
    analysisScrollPane.setViewportView(analysisTable);
    analysisTable.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    listSelectionModel = analysisTable.getColumnModel().getSelectionModel();
    listSelectionModel.addListSelectionListener(new SelectionListener(userSelectedColumns));
    analysisTable.getColumnModel().setSelectionModel(listSelectionModel);

    org.jdesktop.layout.GroupLayout analysisPanelLayout = new org.jdesktop.layout.GroupLayout(analysisPanel);
    analysisPanel.setLayout(analysisPanelLayout);
    analysisPanelLayout.setHorizontalGroup(analysisPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, analysisPanelLayout.createSequentialGroup()
                    .add(analysisPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, analysisScrollPane,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 988, Short.MAX_VALUE)
                            .add(analysisToolbar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 988,
                                    Short.MAX_VALUE))
                    .addContainerGap()));
    analysisPanelLayout.setVerticalGroup(analysisPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(analysisPanelLayout.createSequentialGroup()
                    .add(analysisToolbar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(analysisScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 670, Short.MAX_VALUE)
                    .addContainerGap()));

    testPanel.addTab(resourceMap.getString("analysisPanel.TabConstraints.tabTitle"), analysisPanel); // NOI18N

    chartHomePanel.setName("chartHomePanel"); // NOI18N

    chartToolbar.setRollover(true);
    chartToolbar.setName("chartToolbar"); // NOI18N

    toggleLineTicksButton.setAction(actionMap.get("toggleLineTicks")); // NOI18N
    toggleLineTicksButton.setText(resourceMap.getString("toggleLineTicksButton.text")); // NOI18N
    toggleLineTicksButton.setFocusable(false);
    toggleLineTicksButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    toggleLineTicksButton.setName("toggleLineTicksButton"); // NOI18N
    toggleLineTicksButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    chartToolbar.add(toggleLineTicksButton);

    lineTickIntervalLabel.setText(resourceMap.getString("lineTickIntervalLabel.text")); // NOI18N
    lineTickIntervalLabel.setName("lineTickIntervalLabel"); // NOI18N
    chartToolbar.add(lineTickIntervalLabel);

    lineTickIntervalInput.setText(resourceMap.getString("lineTickIntervalInput.text")); // NOI18N
    lineTickIntervalInput.setMinimumSize(new java.awt.Dimension(60, 27));
    lineTickIntervalInput.setName("lineTickIntervalInput"); // NOI18N
    lineTickIntervalInput.setPreferredSize(new java.awt.Dimension(60, 27));
    chartToolbar.add(lineTickIntervalInput);

    lineSeriesComboBox.setModel(new javax.swing.DefaultComboBoxModel());
    lineSeriesComboBox.setName("lineSeriesComboBox"); // NOI18N
    chartToolbar.add(lineSeriesComboBox);

    seriesColorButton.setAction(actionMap.get("changeSeriesColor")); // NOI18N
    seriesColorButton.setText(resourceMap.getString("seriesColorButton.text")); // NOI18N
    seriesColorButton.setFocusable(false);
    seriesColorButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    seriesColorButton.setName("seriesColorButton"); // NOI18N
    seriesColorButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    chartToolbar.add(seriesColorButton);

    seriesNameButton.setAction(actionMap.get("changeSeriesName")); // NOI18N
    seriesNameButton.setText(resourceMap.getString("seriesNameButton.text")); // NOI18N
    seriesNameButton.setFocusable(false);
    seriesNameButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    seriesNameButton.setName("seriesNameButton"); // NOI18N
    seriesNameButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    chartToolbar.add(seriesNameButton);

    exportPNGButton.setAction(actionMap.get("savePlotPNG")); // NOI18N
    exportPNGButton.setText(resourceMap.getString("exportPNGButton.text")); // NOI18N
    exportPNGButton.setFocusable(false);
    exportPNGButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    exportPNGButton.setName("exportPNGButton"); // NOI18N
    exportPNGButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    chartToolbar.add(exportPNGButton);

    exportEPSButton.setAction(actionMap.get("savePlotEPS")); // NOI18N
    exportEPSButton.setText(resourceMap.getString("exportEPSButton.text")); // NOI18N
    exportEPSButton.setFocusable(false);
    exportEPSButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    exportEPSButton.setName("exportEPSButton"); // NOI18N
    exportEPSButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    chartToolbar.add(exportEPSButton);

    chartScrollPane.setName("chartScrollPane"); // NOI18N

    chartPanel.setName("chartPanel"); // NOI18N

    org.jdesktop.layout.GroupLayout chartPanelLayout = new org.jdesktop.layout.GroupLayout(chartPanel);
    chartPanel.setLayout(chartPanelLayout);
    chartPanelLayout.setHorizontalGroup(chartPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 2735, Short.MAX_VALUE));
    chartPanelLayout.setVerticalGroup(chartPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(0, 1168, Short.MAX_VALUE));

    chartScrollPane.setViewportView(chartPanel);

    org.jdesktop.layout.GroupLayout chartHomePanelLayout = new org.jdesktop.layout.GroupLayout(chartHomePanel);
    chartHomePanel.setLayout(chartHomePanelLayout);
    chartHomePanelLayout.setHorizontalGroup(
            chartHomePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(chartToolbar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1000, Short.MAX_VALUE)
                    .add(chartScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1000, Short.MAX_VALUE));
    chartHomePanelLayout
            .setVerticalGroup(chartHomePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(chartHomePanelLayout.createSequentialGroup()
                            .add(chartToolbar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(chartScrollPane,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 682, Short.MAX_VALUE)));

    testPanel.addTab(resourceMap.getString("chartHomePanel.TabConstraints.tabTitle"), chartHomePanel); // NOI18N

    jPanel1.setName("jPanel1"); // NOI18N

    testToolbar.setRollover(true);
    testToolbar.setName("testToolbar"); // NOI18N

    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N
    testToolbar.add(jLabel1);

    variablesTestComboBox.setModel(new javax.swing.DefaultComboBoxModel());
    variablesTestComboBox.setName("variablesTestComboBox"); // NOI18N
    testToolbar.add(variablesTestComboBox);

    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N
    testToolbar.add(jLabel2);

    hypothesisComboBox.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Not Equal", "Less Than", "Greater Than" }));
    hypothesisComboBox.setName("hypothesisComboBox"); // NOI18N
    testToolbar.add(hypothesisComboBox);

    mannWhitneyUTestButton.setAction(actionMap.get("runMannWhitneyUTest")); // NOI18N
    mannWhitneyUTestButton.setText(resourceMap.getString("mannWhitneyUTestButton.text")); // NOI18N
    mannWhitneyUTestButton.setFocusable(false);
    mannWhitneyUTestButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    mannWhitneyUTestButton.setName("mannWhitneyUTestButton"); // NOI18N
    mannWhitneyUTestButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    testToolbar.add(mannWhitneyUTestButton);

    testExperimentsScrollPane.setName("testExperimentsScrollPane"); // NOI18N

    testExperimentsTable.setAutoCreateRowSorter(true);
    testExperimentsTable.setModel(new SynopsisTableModel());
    testExperimentsTable.setColumnSelectionAllowed(true);
    testExperimentsTable.setName("testExperimentsTable"); // NOI18N
    testExperimentsScrollPane.setViewportView(testExperimentsTable);
    testExperimentsTable.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

    testResultsScrollPane.setName("testResultsScrollPane"); // NOI18N

    testResultsTable.setAutoCreateRowSorter(true);
    testResultsTable.setModel(new SynopsisTableModel());
    testResultsTable.setName("testResultsTable"); // NOI18N
    testResultsScrollPane.setViewportView(testResultsTable);
    testResultsTable.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(testToolbar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1000, Short.MAX_VALUE)
            .add(testExperimentsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1000, Short.MAX_VALUE)
            .add(testResultsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1000, Short.MAX_VALUE));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                    .add(testToolbar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(testExperimentsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 277,
                            Short.MAX_VALUE)
                    .add(128, 128, 128).add(testResultsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            277, Short.MAX_VALUE)));

    testPanel.addTab(resourceMap.getString("jPanel1.TabConstraints.tabTitle"), jPanel1); // NOI18N

    org.jdesktop.layout.GroupLayout mainPanelLayout = new org.jdesktop.layout.GroupLayout(mainPanel);
    mainPanel.setLayout(mainPanelLayout);
    mainPanelLayout
            .setHorizontalGroup(mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(mainPanelLayout.createSequentialGroup()
                            .add(testPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1012, Short.MAX_VALUE)
                            .addContainerGap()));
    mainPanelLayout
            .setVerticalGroup(mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(mainPanelLayout.createSequentialGroup()
                            .add(testPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 756, Short.MAX_VALUE)
                            .addContainerGap()));

    menuBar.setName("menuBar"); // NOI18N

    fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
    fileMenu.setName("fileMenu"); // NOI18N

    exitMenuItem.setName("exitMenuItem"); // NOI18N
    fileMenu.add(exitMenuItem);

    menuBar.add(fileMenu);

    helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
    helpMenu.setName("helpMenu"); // NOI18N

    aboutMenuItem.setName("aboutMenuItem"); // NOI18N
    helpMenu.add(aboutMenuItem);

    menuBar.add(helpMenu);

    statusPanel.setName("statusPanel"); // NOI18N

    statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

    statusMessageLabel.setName("statusMessageLabel"); // NOI18N

    statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

    progressBar.setName("progressBar"); // NOI18N

    org.jdesktop.layout.GroupLayout statusPanelLayout = new org.jdesktop.layout.GroupLayout(statusPanel);
    statusPanel.setLayout(statusPanelLayout);
    statusPanelLayout.setHorizontalGroup(statusPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 1446, Short.MAX_VALUE)
            .add(statusPanelLayout.createSequentialGroup().addContainerGap().add(statusMessageLabel)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 1262, Short.MAX_VALUE)
                    .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(statusAnimationLabel)
                    .addContainerGap()));
    statusPanelLayout
            .setVerticalGroup(statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(statusPanelLayout.createSequentialGroup()
                            .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 2,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                    .add(statusMessageLabel).add(statusAnimationLabel).add(progressBar,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(3, 3, 3)));

    setComponent(mainPanel);
}

From source file:canreg.client.gui.analysis.TableBuilderInternalFrame.java

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

    tabbedPane = new javax.swing.JTabbedPane();
    tableTypePanel = new javax.swing.JPanel();
    tableTypeScrollPane = new javax.swing.JScrollPane();
    tableTypeList = new javax.swing.JList();
    descriptionScrollPane = new javax.swing.JScrollPane();
    descriptionTextPane = new javax.swing.JTextPane();
    descriptionLabel = new javax.swing.JLabel();
    typeLabel = new javax.swing.JLabel();
    previewLabel = new javax.swing.JLabel();
    previewImageLabel = new javax.swing.JLabel();
    rangePanel = new javax.swing.JPanel();
    startYearChooser = new com.toedter.calendar.JYearChooser();
    startYearLabel = new javax.swing.JLabel();
    endYearLabel = new javax.swing.JLabel();
    endYearChooser = new com.toedter.calendar.JYearChooser();
    jLabel6 = new javax.swing.JLabel();
    midYearTextField = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    numberOfYearsTextField = new javax.swing.JTextField();
    warningLabel = new javax.swing.JLabel();
    populationDatasetChooserPanel = new javax.swing.JPanel();
    pleaseChooseLabel = new javax.swing.JLabel();
    populationDatasetsScrollPane = new javax.swing.JScrollPane();
    populationDatasetChoosersPanel = new javax.swing.JPanel();
    dontUsePopulationDatasetCheckBox = new javax.swing.JCheckBox();
    filterPanel = new javax.swing.JPanel();
    writeOutPanel = new javax.swing.JPanel();
    postScriptButton = new javax.swing.JButton();
    tabulatedButton = new javax.swing.JButton();
    headerOfTableLabel = new javax.swing.JLabel();
    headerOfTableTextField = new javax.swing.JTextField();
    imageButton = new javax.swing.JButton();
    pdfButton = new javax.swing.JButton();
    svgButton = new javax.swing.JButton();
    wmfButton = new javax.swing.JButton();
    chartViewerButton = new javax.swing.JButton();
    seerPrepButton = new javax.swing.JButton();
    csvButton = new javax.swing.JButton();
    tiffButton = new javax.swing.JButton();
    docxButton = new javax.swing.JButton();
    pptxButton = new javax.swing.JButton();
    backButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    nextButton = new javax.swing.JButton();

    setClosable(true);
    setResizable(true);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getResourceMap(TableBuilderInternalFrame.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setFrameIcon(resourceMap.getIcon("Form.frameIcon")); // NOI18N
    setName("Form"); // NOI18N
    try {
        setSelected(true);
    } catch (java.beans.PropertyVetoException e1) {
        e1.printStackTrace();
    }

    tabbedPane.setName("tabbedPane"); // NOI18N
    tabbedPane.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            tabbedPaneFocusLost(evt);
        }
    });

    tableTypePanel.setName("tableTypePanel"); // NOI18N
    tableTypePanel.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            tableTypePanelFocusLost(evt);
        }
    });

    tableTypeScrollPane.setName("tableTypeScrollPane"); // NOI18N

    tableTypeList.setModel(new javax.swing.AbstractListModel() {
        String[] strings = { "Incidence per 100000 by Age groups (Annual)",
                "Incidence per 100000 by Age groups (Period)" };

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

        public Object getElementAt(int i) {
            return strings[i];
        }
    });
    tableTypeList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    tableTypeList.setName("tableTypeList"); // NOI18N
    tableTypeList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            tableTypeListValueChanged(evt);
        }
    });
    tableTypeList.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            tableTypeListPropertyChange(evt);
        }
    });
    tableTypeScrollPane.setViewportView(tableTypeList);

    descriptionScrollPane.setName("descriptionScrollPane"); // NOI18N

    descriptionTextPane.setEditable(false);
    descriptionTextPane.setName("descriptionTextPane"); // NOI18N
    descriptionScrollPane.setViewportView(descriptionTextPane);

    descriptionLabel.setName("descriptionLabel"); // NOI18N

    typeLabel.setName("typeLabel"); // NOI18N

    previewLabel.setName("previewLabel"); // NOI18N

    previewImageLabel.setName("previewImageLabel"); // NOI18N

    javax.swing.GroupLayout tableTypePanelLayout = new javax.swing.GroupLayout(tableTypePanel);
    tableTypePanel.setLayout(tableTypePanelLayout);
    tableTypePanelLayout.setHorizontalGroup(tableTypePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tableTypePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(tableTypePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(tableTypeScrollPane, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                            .addComponent(typeLabel)
                            .addGroup(tableTypePanelLayout.createSequentialGroup()
                                    .addGroup(tableTypePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(descriptionLabel).addComponent(descriptionScrollPane,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 240,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(tableTypePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(previewLabel).addComponent(previewImageLabel,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 230,
                                                    Short.MAX_VALUE))))
                    .addContainerGap()));
    tableTypePanelLayout.setVerticalGroup(tableTypePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tableTypePanelLayout.createSequentialGroup().addContainerGap().addComponent(typeLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(tableTypeScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            tableTypePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(descriptionLabel).addComponent(previewLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            tableTypePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(previewImageLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 258,
                                            Short.MAX_VALUE)
                                    .addComponent(descriptionScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            258, Short.MAX_VALUE))
                    .addContainerGap()));

    tabbedPane.addTab(resourceMap.getString("tableTypePanel.TabConstraints.tabTitle"), tableTypePanel); // NOI18N

    rangePanel.setName("rangePanel"); // NOI18N

    startYearChooser.setName("startYearChooser"); // NOI18N
    startYearChooser.setStartYear(-292278994);
    startYearChooser.setValue(1999);
    startYearChooser.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            startYearChooserPropertyChange(evt);
        }
    });

    startYearLabel.setText(resourceMap.getString("startYearLabel.text")); // NOI18N
    startYearLabel.setName("startYearLabel"); // NOI18N

    endYearLabel.setText(resourceMap.getString("endYearLabel.text")); // NOI18N
    endYearLabel.setName("endYearLabel"); // NOI18N

    endYearChooser.setDayChooser(null);
    endYearChooser.setName("endYearChooser"); // NOI18N
    endYearChooser.setStartYear(-292278994);
    endYearChooser.setValue(2001);
    endYearChooser.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            endYearChooserPropertyChange(evt);
        }
    });

    jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N

    midYearTextField.setEditable(false);
    midYearTextField.setName("midYearTextField"); // NOI18N

    jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
    jLabel7.setName("jLabel7"); // NOI18N

    numberOfYearsTextField.setEditable(false);
    numberOfYearsTextField.setName("numberOfYearsTextField"); // NOI18N

    warningLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    warningLabel.setText(resourceMap.getString("warningLabel.text")); // NOI18N
    warningLabel.setName("warningLabel"); // NOI18N

    javax.swing.GroupLayout rangePanelLayout = new javax.swing.GroupLayout(rangePanel);
    rangePanel.setLayout(rangePanelLayout);
    rangePanelLayout
            .setHorizontalGroup(rangePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, rangePanelLayout
                            .createSequentialGroup().addContainerGap().addGroup(rangePanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(
                                            warningLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 474,
                                            Short.MAX_VALUE)
                                    .addGroup(rangePanelLayout.createSequentialGroup().addGroup(rangePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel6).addComponent(endYearLabel)
                                            .addComponent(startYearLabel).addComponent(jLabel7))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    179, Short.MAX_VALUE)
                                            .addGroup(rangePanelLayout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING, false)
                                                    .addComponent(startYearChooser,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE)
                                                    .addComponent(endYearChooser,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE)
                                                    .addComponent(numberOfYearsTextField,
                                                            javax.swing.GroupLayout.Alignment.TRAILING,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE, 211,
                                                            Short.MAX_VALUE)
                                                    .addComponent(midYearTextField,
                                                            javax.swing.GroupLayout.Alignment.TRAILING))))
                            .addContainerGap()));
    rangePanelLayout.setVerticalGroup(rangePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(rangePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(rangePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(startYearLabel).addComponent(startYearChooser,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(rangePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(endYearLabel)
                            .addComponent(endYearChooser, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(rangePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6).addComponent(midYearTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(rangePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7).addComponent(numberOfYearsTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(warningLabel).addContainerGap(308, Short.MAX_VALUE)));

    tabbedPane.addTab(resourceMap.getString("rangePanel.TabConstraints.tabTitle"), rangePanel); // NOI18N

    populationDatasetChooserPanel.setName("populationDatasetChooserPanel"); // NOI18N

    pleaseChooseLabel.setText(resourceMap.getString("pleaseChooseLabel.text")); // NOI18N
    pleaseChooseLabel.setName("pleaseChooseLabel"); // NOI18N

    populationDatasetsScrollPane.setName("populationDatasetsScrollPane"); // NOI18N

    populationDatasetChoosersPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
    populationDatasetChoosersPanel.setName("populationDatasetChoosersPanel"); // NOI18N
    populationDatasetChoosersPanel.setLayout(new java.awt.GridLayout(0, 1));
    populationDatasetsScrollPane.setViewportView(populationDatasetChoosersPanel);

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getActionMap(TableBuilderInternalFrame.class, this);
    dontUsePopulationDatasetCheckBox.setAction(actionMap.get("dontUsePopsCheckboxUpdated")); // NOI18N
    dontUsePopulationDatasetCheckBox.setText(resourceMap.getString("dontUsePopulationDatasetCheckBox.text")); // NOI18N
    dontUsePopulationDatasetCheckBox
            .setToolTipText(resourceMap.getString("dontUsePopulationDatasetCheckBox.toolTipText")); // NOI18N
    dontUsePopulationDatasetCheckBox.setName("dontUsePopulationDatasetCheckBox"); // NOI18N
    dontUsePopulationDatasetCheckBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            dontUsePopulationDatasetCheckBoxActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout populationDatasetChooserPanelLayout = new javax.swing.GroupLayout(
            populationDatasetChooserPanel);
    populationDatasetChooserPanel.setLayout(populationDatasetChooserPanelLayout);
    populationDatasetChooserPanelLayout.setHorizontalGroup(populationDatasetChooserPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(populationDatasetChooserPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(populationDatasetChooserPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(populationDatasetsScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    474, Short.MAX_VALUE)
                            .addComponent(pleaseChooseLabel).addComponent(dontUsePopulationDatasetCheckBox,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE))
                    .addContainerGap()));
    populationDatasetChooserPanelLayout.setVerticalGroup(populationDatasetChooserPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(populationDatasetChooserPanelLayout.createSequentialGroup().addContainerGap()
                    .addComponent(pleaseChooseLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(populationDatasetsScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 352,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)
                    .addComponent(dontUsePopulationDatasetCheckBox).addContainerGap()));

    tabbedPane.addTab(resourceMap.getString("populationDatasetChooserPanel.TabConstraints.tabTitle"),
            populationDatasetChooserPanel); // NOI18N

    filterPanel.setEnabled(false);
    filterPanel.setFocusable(false);
    filterPanel.setName("filterPanel"); // NOI18N
    filterPanel.setRequestFocusEnabled(false);
    tabbedPane.addTab(resourceMap.getString("filterPanel.TabConstraints.tabTitle"), filterPanel); // NOI18N

    writeOutPanel.setName("writeOutPanel"); // NOI18N

    postScriptButton.setAction(actionMap.get("generatePStable")); // NOI18N
    postScriptButton.setText(resourceMap.getString("postScriptButton.text")); // NOI18N
    postScriptButton.setToolTipText(resourceMap.getString("postScriptButton.toolTipText")); // NOI18N
    postScriptButton.setName("postScriptButton"); // NOI18N
    postScriptButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            postScriptButtonActionPerformed(evt);
        }
    });

    tabulatedButton.setAction(actionMap.get("generateTabulatedTables")); // NOI18N
    tabulatedButton.setText(resourceMap.getString("tabulatedButton.text")); // NOI18N
    tabulatedButton.setToolTipText(resourceMap.getString("tabulatedButton.toolTipText")); // NOI18N
    tabulatedButton.setName("tabulatedButton"); // NOI18N

    headerOfTableLabel.setText(resourceMap.getString("headerOfTableLabel.text")); // NOI18N
    headerOfTableLabel.setName("headerOfTableLabel"); // NOI18N

    headerOfTableTextField.setText(resourceMap.getString("headerOfTableTextField.text")); // NOI18N
    headerOfTableTextField.setName("headerOfTableTextField"); // NOI18N
    headerOfTableTextField.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            headerOfTableTextFieldMousePressed(evt);
        }

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

    imageButton.setAction(actionMap.get("generatePNGTable")); // NOI18N
    imageButton.setText(resourceMap.getString("imageButton.text")); // NOI18N
    imageButton.setToolTipText(resourceMap.getString("imageButton.toolTipText")); // NOI18N
    imageButton.setName("imageButton"); // NOI18N

    pdfButton.setAction(actionMap.get("generatePDFtable")); // NOI18N
    pdfButton.setText(resourceMap.getString("pdfButton.text")); // NOI18N
    pdfButton.setToolTipText(resourceMap.getString("pdfButton.toolTipText")); // NOI18N
    pdfButton.setName("pdfButton"); // NOI18N
    pdfButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            pdfButtonActionPerformed(evt);
        }
    });

    svgButton.setAction(actionMap.get("generateSVGFile")); // NOI18N
    svgButton.setText(resourceMap.getString("svgButton.text")); // NOI18N
    svgButton.setToolTipText(resourceMap.getString("svgButton.toolTipText")); // NOI18N
    svgButton.setName("svgButton"); // NOI18N
    svgButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            svgButtonActionPerformed(evt);
        }
    });

    wmfButton.setAction(actionMap.get("generateWMFAction")); // NOI18N
    wmfButton.setText(resourceMap.getString("wmfButton.text")); // NOI18N
    wmfButton.setToolTipText(resourceMap.getString("wmfButton.toolTipText")); // NOI18N
    wmfButton.setName("wmfButton"); // NOI18N
    wmfButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            wmfButtonActionPerformed(evt);
        }
    });

    chartViewerButton.setAction(actionMap.get("openInChartViewer")); // NOI18N
    chartViewerButton.setText(resourceMap.getString("chartViewerButton.text")); // NOI18N
    chartViewerButton.setToolTipText(resourceMap.getString("chartViewerButton.toolTipText")); // NOI18N
    chartViewerButton.setName("chartViewerButton"); // NOI18N

    seerPrepButton.setAction(actionMap.get("generateFilesForSEERPrepAction")); // NOI18N
    seerPrepButton.setText(resourceMap.getString("seerPrepButton.text")); // NOI18N
    seerPrepButton.setName("seerPrepButton"); // NOI18N

    csvButton.setAction(actionMap.get("generateCSV")); // NOI18N
    csvButton.setText(resourceMap.getString("csvButton.text")); // NOI18N
    csvButton.setToolTipText(resourceMap.getString("csvButton.toolTipText")); // NOI18N
    csvButton.setName("csvButton"); // NOI18N

    tiffButton.setAction(actionMap.get("generateTIFF")); // NOI18N
    tiffButton.setText(resourceMap.getString("tiffButton.text")); // NOI18N
    tiffButton.setToolTipText(resourceMap.getString("tiffButton.toolTipText")); // NOI18N
    tiffButton.setName("tiffButton"); // NOI18N

    docxButton.setAction(actionMap.get("generateDOCX")); // NOI18N
    docxButton.setText(resourceMap.getString("docxButton.text")); // NOI18N
    docxButton.setName("docxButton"); // NOI18N

    pptxButton.setAction(actionMap.get("generatePPTX")); // NOI18N
    pptxButton.setText(resourceMap.getString("pptxButton.text")); // NOI18N
    pptxButton.setToolTipText(resourceMap.getString("pptxButton.toolTipText")); // NOI18N
    pptxButton.setName("pptxButton"); // NOI18N

    javax.swing.GroupLayout writeOutPanelLayout = new javax.swing.GroupLayout(writeOutPanel);
    writeOutPanel.setLayout(writeOutPanelLayout);
    writeOutPanelLayout.setHorizontalGroup(writeOutPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(writeOutPanelLayout.createSequentialGroup().addContainerGap().addGroup(writeOutPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(writeOutPanelLayout.createSequentialGroup().addComponent(headerOfTableLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(headerOfTableTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 387,
                                    Short.MAX_VALUE))
                    .addComponent(pdfButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(postScriptButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(wmfButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(tabulatedButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(svgButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(imageButton, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(csvButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(chartViewerButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(seerPrepButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(tiffButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(docxButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE)
                    .addComponent(pptxButton, javax.swing.GroupLayout.DEFAULT_SIZE, 474, Short.MAX_VALUE))
                    .addContainerGap()));
    writeOutPanelLayout
            .setVerticalGroup(writeOutPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(writeOutPanelLayout.createSequentialGroup().addContainerGap()
                            .addGroup(writeOutPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(headerOfTableLabel).addComponent(headerOfTableTextField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(pdfButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(postScriptButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(svgButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(imageButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(wmfButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(tabulatedButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(tiffButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(docxButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(pptxButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(csvButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(chartViewerButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(seerPrepButton).addContainerGap(53, Short.MAX_VALUE)));

    tabbedPane.addTab(resourceMap.getString("writeOutPanel.TabConstraints.tabTitle"), writeOutPanel); // NOI18N

    backButton.setAction(actionMap.get("jumpToPreviousTabAction")); // NOI18N
    backButton.setName("backButton"); // NOI18N

    cancelButton.setAction(actionMap.get("cancelAction")); // NOI18N
    cancelButton.setName("cancelButton"); // NOI18N

    nextButton.setAction(actionMap.get("jumpToNextTabAction")); // NOI18N
    nextButton.setName("nextButton"); // NOI18N

    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(tabbedPane, javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addComponent(backButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cancelButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(nextButton)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap().addComponent(tabbedPane)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nextButton).addComponent(cancelButton).addComponent(backButton))
                    .addContainerGap()));

    pack();
}

From source file:au.org.ala.delta.intkey.ui.WebSearchDialog.java

/**
 * Create the dialog.//from   ww w  .j  a v  a2 s .c  o m
 */
public WebSearchDialog(Dialog owner) {

    super(owner);
    setName("WebSearchDialog");
    ResourceMap resourceMap = Application.getInstance().getContext().getResourceMap(WebSearchDialog.class);
    resourceMap.injectFields(this);
    ActionMap actionMap = Application.getInstance().getContext().getActionMap(WebSearchDialog.class, this);

    setTitle(websearchTitle);
    setBounds(100, 100, 450, 250);
    getContentPane().setLayout(new BorderLayout());
    contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
    getContentPane().add(contentPanel, BorderLayout.CENTER);
    {
        lblSearchFor = new JLabel(searchForLabel);
    }

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

    final JLabel lblUsing = new JLabel(usingLabel);

    cmbSearchEngine = new JComboBox();
    GroupLayout gl_contentPanel = new GroupLayout(contentPanel);
    gl_contentPanel.setHorizontalGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_contentPanel.createSequentialGroup().addContainerGap()
                    .addGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING)
                            .addComponent(lblSearchFor, GroupLayout.DEFAULT_SIZE, 404, Short.MAX_VALUE)
                            .addComponent(cmbSearchEngine, 0, 404, Short.MAX_VALUE)
                            .addComponent(txtSearch, GroupLayout.DEFAULT_SIZE, 404, Short.MAX_VALUE)
                            .addComponent(lblUsing, GroupLayout.DEFAULT_SIZE, 404, Short.MAX_VALUE))
                    .addContainerGap()));
    gl_contentPanel
            .setVerticalGroup(
                    gl_contentPanel.createParallelGroup(Alignment.LEADING)
                            .addGroup(gl_contentPanel.createSequentialGroup().addContainerGap()
                                    .addComponent(lblSearchFor).addPreferredGap(ComponentPlacement.UNRELATED)
                                    .addComponent(txtSearch, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                    .addGap(27).addComponent(lblUsing)
                                    .addPreferredGap(ComponentPlacement.UNRELATED)
                                    .addComponent(cmbSearchEngine, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap(41, Short.MAX_VALUE)));
    contentPanel.setLayout(gl_contentPanel);
    {
        JPanel buttonPane = new JPanel();
        buttonPane.setLayout(new FlowLayout(FlowLayout.CENTER));
        getContentPane().add(buttonPane, BorderLayout.SOUTH);
        {
            JButton okButton = new JButton("[OK]");
            okButton.setAction(actionMap.get("WebSearchDialog_search"));
            buttonPane.add(okButton);
            getRootPane().setDefaultButton(okButton);
        }
        {
            JButton cancelButton = new JButton("[Cancel]");
            cancelButton.setAction(actionMap.get("WebSearchDialog_cancel"));
            buttonPane.add(cancelButton);
        }
    }

    LocalConfigFiles files = new LocalConfigFiles("intkey");
    File f = files.getWebsearchIndexFile();
    if (f.exists()) {
        loadSearchEngines(f, cmbSearchEngine);
    }

    cmbSearchEngine.requestFocus();
}

From source file:canreg.client.gui.dataentry.PDSEditorInternalFrame.java

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

    saveGraphicsPopupMenu = new javax.swing.JPopupMenu();
    saveAsPNGMenuItem = new javax.swing.JMenuItem();
    saveAsSVGMenuItem = new javax.swing.JMenuItem();
    separator = new javax.swing.JPopupMenu.Separator();
    copyToClipboardMenuItem = new javax.swing.JMenuItem();
    tablePopupMenu = new javax.swing.JPopupMenu();
    copyMenuItem = new javax.swing.JMenuItem();
    pasteMenuItem = new javax.swing.JMenuItem();
    selectAllMenuItem = new javax.swing.JMenuItem();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    detailsPanel = new javax.swing.JPanel();
    dateLabel = new javax.swing.JLabel();
    dateChooser = new com.toedter.calendar.JDateChooser();
    ageGroupStructureComboBox = new javax.swing.JComboBox();
    ageGroupStructureLabel = new javax.swing.JLabel();
    descriptionScrollPane = new javax.swing.JScrollPane();
    descriptionTextArea = new javax.swing.JTextArea();
    descriptionLabel = new javax.swing.JLabel();
    sourceLabel = new javax.swing.JLabel();
    sourceTextField = new javax.swing.JTextField();
    filterTextField = new javax.swing.JTextField();
    filterWizardButton = new javax.swing.JButton();
    nameTextField = new javax.swing.JTextField();
    nameLabel = new javax.swing.JLabel();
    filterLabel = new javax.swing.JLabel();
    standardPopulationLabel = new javax.swing.JLabel();
    standardPopulationComboBox = new javax.swing.JComboBox();
    editStandardPopulationButton = new javax.swing.JButton();
    otherAgeGroupStructureButton = new javax.swing.JButton();
    dataSetPanel = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jSplitPane1 = new javax.swing.JSplitPane();
    jPanel1 = new javax.swing.JPanel();
    jSplitPane3 = new javax.swing.JSplitPane();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    pdsTable = new javax.swing.JTable();
    totalsTable = new javax.swing.JTable();
    jPanel2 = new javax.swing.JPanel();
    ageGroupjLabel = new javax.swing.JLabel();
    ageGroupLabelsTable = new javax.swing.JTable();
    totalLabel = new javax.swing.JLabel();
    pyramidPanel = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();
    pyramidPanelHolder = new javax.swing.JPanel();
    saveButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    lockedToggleButton = new javax.swing.JToggleButton();
    deleteButton = new javax.swing.JButton();
    jInternalFrame1 = new javax.swing.JInternalFrame();
    jTabbedPane2 = new javax.swing.JTabbedPane();
    detailsPanel1 = new javax.swing.JPanel();
    dateLabel1 = new javax.swing.JLabel();
    dateChooser1 = new com.toedter.calendar.JDateChooser();
    ageGroupStructureComboBox1 = new javax.swing.JComboBox();
    ageGroupStructureLabel1 = new javax.swing.JLabel();
    descriptionScrollPane1 = new javax.swing.JScrollPane();
    descriptionTextArea1 = new javax.swing.JTextArea();
    descriptionLabel1 = new javax.swing.JLabel();
    sourceLabel1 = new javax.swing.JLabel();
    sourceTextField1 = new javax.swing.JTextField();
    filterTextField1 = new javax.swing.JTextField();
    filterWizardButton1 = new javax.swing.JButton();
    nameTextField1 = new javax.swing.JTextField();
    nameLabel1 = new javax.swing.JLabel();
    filterLabel1 = new javax.swing.JLabel();
    standardPopulationLabel1 = new javax.swing.JLabel();
    standardPopulationComboBox1 = new javax.swing.JComboBox();
    editStandardPopulationButton1 = new javax.swing.JButton();
    otherAgeGroupStructureButton1 = new javax.swing.JButton();
    dataSetPanel1 = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    jSplitPane2 = new javax.swing.JSplitPane();
    jPanel4 = new javax.swing.JPanel();
    jSplitPane4 = new javax.swing.JSplitPane();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    pdsTable1 = new javax.swing.JTable();
    totalsTable1 = new javax.swing.JTable();
    jPanel5 = new javax.swing.JPanel();
    jLabel7 = new javax.swing.JLabel();
    ageGroupLabelsTable1 = new javax.swing.JTable();
    jLabel8 = new javax.swing.JLabel();
    jPanel6 = new javax.swing.JPanel();
    jButton2 = new javax.swing.JButton();
    pyramidLabel1 = new javax.swing.JLabel();
    saveButton1 = new javax.swing.JButton();
    cancelButton1 = new javax.swing.JButton();
    lockedToggleButton1 = new javax.swing.JToggleButton();
    deleteButton1 = new javax.swing.JButton();
    saveAsNewButton = new javax.swing.JButton();
    writeToFileButton = new javax.swing.JButton();

    saveGraphicsPopupMenu.setName("saveGraphicsPopupMenu"); // NOI18N

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getActionMap(PDSEditorInternalFrame.class, this);
    saveAsPNGMenuItem.setAction(actionMap.get("savePNGAction")); // NOI18N
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getResourceMap(PDSEditorInternalFrame.class);
    saveAsPNGMenuItem.setText(resourceMap.getString("saveAsPNGMenuItem.text")); // NOI18N
    saveAsPNGMenuItem.setToolTipText(resourceMap.getString("saveAsPNGMenuItem.toolTipText")); // NOI18N
    saveAsPNGMenuItem.setName("saveAsPNGMenuItem"); // NOI18N
    saveGraphicsPopupMenu.add(saveAsPNGMenuItem);

    saveAsSVGMenuItem.setAction(actionMap.get("saveSVGAction")); // NOI18N
    saveAsSVGMenuItem.setText(resourceMap.getString("saveAsSVGMenuItem.text")); // NOI18N
    saveAsSVGMenuItem.setName("saveAsSVGMenuItem"); // NOI18N
    saveGraphicsPopupMenu.add(saveAsSVGMenuItem);

    separator.setName("separator"); // NOI18N
    saveGraphicsPopupMenu.add(separator);

    copyToClipboardMenuItem.setAction(actionMap.get("copyPyramidToClipboard")); // NOI18N
    copyToClipboardMenuItem.setText(resourceMap.getString("copyToClipboardMenuItem.text")); // NOI18N
    copyToClipboardMenuItem.setName("copyToClipboardMenuItem"); // NOI18N
    saveGraphicsPopupMenu.add(copyToClipboardMenuItem);

    tablePopupMenu.setName("tablePopupMenu"); // NOI18N

    copyMenuItem.setAction(actionMap.get("copyTableAction")); // NOI18N
    copyMenuItem.setText(resourceMap.getString("copyMenuItem.text")); // NOI18N
    copyMenuItem.setName("copyMenuItem"); // NOI18N
    tablePopupMenu.add(copyMenuItem);

    pasteMenuItem.setAction(actionMap.get("pasteTableAction")); // NOI18N
    pasteMenuItem.setText(resourceMap.getString("pasteMenuItem.text")); // NOI18N
    pasteMenuItem.setName("pasteMenuItem"); // NOI18N
    tablePopupMenu.add(pasteMenuItem);

    selectAllMenuItem.setAction(actionMap.get("selectAllTableAction")); // NOI18N
    selectAllMenuItem.setText(resourceMap.getString("selectAllMenuItem.text")); // NOI18N
    selectAllMenuItem.setName("selectAllMenuItem"); // NOI18N
    tablePopupMenu.add(selectAllMenuItem);

    setClosable(true);
    setMaximizable(true);
    setResizable(true);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setFrameIcon(resourceMap.getIcon("Form.frameIcon")); // NOI18N
    setName("Form"); // NOI18N
    addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentResized(java.awt.event.ComponentEvent evt) {
            formComponentResized(evt);
        }
    });

    jTabbedPane1.setName("jTabbedPane1"); // NOI18N
    jTabbedPane1.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            jTabbedPane1FocusGained(evt);
        }
    });

    detailsPanel.setName("detailsPanel"); // NOI18N

    dateLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    dateLabel.setText(resourceMap.getString("dateLabel.text")); // NOI18N
    dateLabel.setName("dateLabel"); // NOI18N

    dateChooser.setName("dateChooser"); // NOI18N
    dateChooser.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            dateChooserMousePressed(evt);
        }

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

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

    ageGroupStructureLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    ageGroupStructureLabel.setText(resourceMap.getString("ageGroupStructureLabel.text")); // NOI18N
    ageGroupStructureLabel.setName("ageGroupStructureLabel"); // NOI18N

    descriptionScrollPane.setName("descriptionScrollPane"); // NOI18N

    descriptionTextArea.setColumns(20);
    descriptionTextArea.setRows(5);
    descriptionTextArea.setName("descriptionTextArea"); // NOI18N
    descriptionTextArea.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            descriptionTextAreaMousePressed(evt);
        }

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            descriptionTextAreaMouseReleased(evt);
        }
    });
    descriptionScrollPane.setViewportView(descriptionTextArea);

    descriptionLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    descriptionLabel.setText(resourceMap.getString("descriptionLabel.text")); // NOI18N
    descriptionLabel.setName("descriptionLabel"); // NOI18N

    sourceLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    sourceLabel.setText(resourceMap.getString("sourceLabel.text")); // NOI18N
    sourceLabel.setName("sourceLabel"); // NOI18N

    sourceTextField.setText(resourceMap.getString("sourceTextField.text")); // NOI18N
    sourceTextField.setName("sourceTextField"); // NOI18N
    sourceTextField.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            sourceTextFieldMousePressed(evt);
        }

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

    filterTextField.setText(resourceMap.getString("filterTextField.text")); // NOI18N
    filterTextField.setName("filterTextField"); // NOI18N
    filterTextField.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            filterTextFieldMousePressed(evt);
        }

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

    filterWizardButton.setAction(actionMap.get("filterWizardAction")); // NOI18N
    filterWizardButton.setName("filterWizardButton"); // NOI18N

    nameTextField.setText(resourceMap.getString("nameTextField.text")); // NOI18N
    nameTextField.setToolTipText(
            resourceMap.getString("nameTextField.toolTipText") + Globals.PDS_DATABASE_NAME_LENGTH);
    nameTextField.setAction(actionMap.get("titleUpdatedAction")); // NOI18N
    nameTextField.setName("nameTextField"); // NOI18N
    nameTextField.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            nameTextFieldMousePressed(evt);
        }

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            nameTextFieldMouseReleased(evt);
        }
    });
    nameTextField.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            nameTextFieldFocusLost(evt);
        }
    });

    nameLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    nameLabel.setText(resourceMap.getString("nameLabel.text")); // NOI18N
    nameLabel.setName("nameLabel"); // NOI18N

    filterLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    filterLabel.setText(resourceMap.getString("filterLabel.text")); // NOI18N
    filterLabel.setName("filterLabel"); // NOI18N

    standardPopulationLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    standardPopulationLabel.setText(resourceMap.getString("standardPopulationLabel.text")); // NOI18N
    standardPopulationLabel.setName("standardPopulationLabel"); // NOI18N

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

    editStandardPopulationButton.setAction(actionMap.get("editWorldPopulation")); // NOI18N
    editStandardPopulationButton.setName("editStandardPopulationButton"); // NOI18N

    otherAgeGroupStructureButton.setAction(actionMap.get("otherAction")); // NOI18N
    otherAgeGroupStructureButton.setName("otherAgeGroupStructureButton"); // NOI18N

    javax.swing.GroupLayout detailsPanelLayout = new javax.swing.GroupLayout(detailsPanel);
    detailsPanel.setLayout(detailsPanelLayout);
    detailsPanelLayout.setHorizontalGroup(detailsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(detailsPanelLayout.createSequentialGroup().addContainerGap().addGroup(
                    detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(nameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
                            .addComponent(filterLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(sourceLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(descriptionLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(ageGroupStructureLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(dateLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(standardPopulationLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    detailsPanelLayout.createSequentialGroup()
                                            .addComponent(standardPopulationComboBox, 0, 410, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(editStandardPopulationButton))
                            .addComponent(dateChooser, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 467, Short.MAX_VALUE)
                            .addComponent(descriptionScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 467,
                                    Short.MAX_VALUE)
                            .addComponent(sourceTextField, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 467, Short.MAX_VALUE)
                            .addGroup(detailsPanelLayout.createSequentialGroup()
                                    .addComponent(filterTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 368,
                                            Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(filterWizardButton))
                            .addComponent(nameTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 467,
                                    Short.MAX_VALUE)
                            .addGroup(detailsPanelLayout.createSequentialGroup()
                                    .addComponent(ageGroupStructureComboBox, 0, 400, Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(otherAgeGroupStructureButton)))
                    .addContainerGap()));
    detailsPanelLayout.setVerticalGroup(detailsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(detailsPanelLayout.createSequentialGroup()
                    .addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nameTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(nameLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(filterWizardButton)
                            .addComponent(filterTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(filterLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(sourceTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(sourceLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(descriptionScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(descriptionLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(ageGroupStructureComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ageGroupStructureLabel).addComponent(otherAgeGroupStructureButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(dateChooser, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dateLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(editStandardPopulationButton)
                            .addComponent(standardPopulationComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(standardPopulationLabel))
                    .addContainerGap(216, Short.MAX_VALUE)));

    jTabbedPane1.addTab(resourceMap.getString("detailsPanel.TabConstraints.tabTitle"), detailsPanel); // NOI18N

    dataSetPanel.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("dataSetPanel.border.title"))); // NOI18N
    dataSetPanel.setName("dataSetPanel"); // NOI18N
    dataSetPanel.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            dataSetPanelFocusLost(evt);
        }
    });

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    jSplitPane1.setDividerLocation(60);
    jSplitPane1.setName("jSplitPane1"); // NOI18N

    jPanel1.setName("jPanel1"); // NOI18N

    jSplitPane3.setBorder(null);
    jSplitPane3.setDividerLocation(250);
    jSplitPane3.setDividerSize(0);
    jSplitPane3.setResizeWeight(0.5);
    jSplitPane3.setName("jSplitPane3"); // NOI18N

    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N
    jSplitPane3.setLeftComponent(jLabel1);

    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N
    jSplitPane3.setRightComponent(jLabel2);

    pdsTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) } },
            new String[] { "Male", "Female" }) {
        Class[] types = new Class[] { java.lang.Integer.class, java.lang.Integer.class };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }
    });
    pdsTable.setColumnSelectionAllowed(true);
    pdsTable.setName("pdsTable"); // NOI18N
    pdsTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    pdsTable.getTableHeader().setReorderingAllowed(false);
    pdsTable.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            pdsTableMousePressed(evt);
        }

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            pdsTableMouseReleased(evt);
        }
    });
    pdsTable.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            pdsTablePropertyChange(evt);
        }
    });

    totalsTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) } },
            new String[] { "Male", "Female" }) {
        Class[] types = new Class[] { java.lang.Integer.class, java.lang.Integer.class };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }
    });
    totalsTable.setEnabled(false);
    totalsTable.setFocusable(false);
    totalsTable.setName("totalsTable"); // NOI18N
    totalsTable.getTableHeader().setReorderingAllowed(false);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(totalsTable, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(pdsTable, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jSplitPane3, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 491,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap(43, Short.MAX_VALUE)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jSplitPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 13,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(pdsTable, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(totalsTable, javax.swing.GroupLayout.PREFERRED_SIZE, 16,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    pdsTable.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    if (pdsTable.getColumnModel().getColumnCount() > 0) {
        pdsTable.getColumnModel().getColumn(0)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title1")); // NOI18N
        pdsTable.getColumnModel().getColumn(1)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title2")); // NOI18N
    }
    myAd = new ExcelAdapter(pdsTable);
    totalsTable.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    if (totalsTable.getColumnModel().getColumnCount() > 0) {
        totalsTable.getColumnModel().getColumn(0)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title1")); // NOI18N
        totalsTable.getColumnModel().getColumn(1)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title2")); // NOI18N
    }

    jSplitPane1.setRightComponent(jPanel1);

    jPanel2.setName("jPanel2"); // NOI18N

    ageGroupjLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    ageGroupjLabel.setText(resourceMap.getString("ageGroupjLabel.text")); // NOI18N
    ageGroupjLabel.setName("ageGroupjLabel"); // NOI18N

    ageGroupLabelsTable
            .setModel(
                    new javax.swing.table.DefaultTableModel(
                            new Object[][] { { null }, { null }, { null }, { null }, { null }, { null },
                                    { null }, { null }, { null }, { null }, { null }, { null }, { null },
                                    { null }, { null }, { null }, { null }, { null }, { null }, { null } },
                            new String[] { "Age group" }) {
                        Class[] types = new Class[] { java.lang.String.class };
                        boolean[] canEdit = new boolean[] { false };

                        public Class getColumnClass(int columnIndex) {
                            return types[columnIndex];
                        }

                        public boolean isCellEditable(int rowIndex, int columnIndex) {
                            return canEdit[columnIndex];
                        }
                    });
    ageGroupLabelsTable.setEnabled(false);
    ageGroupLabelsTable.setFocusable(false);
    ageGroupLabelsTable.setName("ageGroupLabelsTable"); // NOI18N
    ageGroupLabelsTable.setRequestFocusEnabled(false);
    ageGroupLabelsTable.getTableHeader().setReorderingAllowed(false);

    totalLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    totalLabel.setText(resourceMap.getString("totalLabel.text")); // NOI18N
    totalLabel.setName("totalLabel"); // NOI18N

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout
            .setHorizontalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(ageGroupjLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE)
                    .addComponent(ageGroupLabelsTable, javax.swing.GroupLayout.DEFAULT_SIZE, 59,
                            Short.MAX_VALUE)
                    .addComponent(totalLabel, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                    .addComponent(ageGroupjLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 13,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ageGroupLabelsTable, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(totalLabel).addContainerGap(202, Short.MAX_VALUE)));

    ageGroupLabelsTable.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    if (ageGroupLabelsTable.getColumnModel().getColumnCount() > 0) {
        ageGroupLabelsTable.getColumnModel().getColumn(0)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title0")); // NOI18N
    }

    jSplitPane1.setLeftComponent(jPanel2);

    jScrollPane1.setViewportView(jSplitPane1);

    javax.swing.GroupLayout dataSetPanelLayout = new javax.swing.GroupLayout(dataSetPanel);
    dataSetPanel.setLayout(dataSetPanelLayout);
    dataSetPanelLayout.setHorizontalGroup(
            dataSetPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 619, Short.MAX_VALUE));
    dataSetPanelLayout
            .setVerticalGroup(dataSetPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 459, Short.MAX_VALUE));

    jTabbedPane1.addTab(resourceMap.getString("dataSetPanel.TabConstraints.tabTitle"), dataSetPanel); // NOI18N

    pyramidPanel.setName("pyramidPanel"); // NOI18N
    pyramidPanel.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            pyramidPanelFocusGained(evt);
        }
    });

    jButton1.setAction(actionMap.get("updatePyramid")); // NOI18N
    jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
    jButton1.setName("jButton1"); // NOI18N

    pyramidPanelHolder.setName("pyramidPanelHolder"); // NOI18N
    pyramidPanelHolder.setLayout(new java.awt.GridLayout(1, 0));

    javax.swing.GroupLayout pyramidPanelLayout = new javax.swing.GroupLayout(pyramidPanel);
    pyramidPanel.setLayout(pyramidPanelLayout);
    pyramidPanelLayout.setHorizontalGroup(pyramidPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 631, Short.MAX_VALUE)
            .addComponent(pyramidPanelHolder, javax.swing.GroupLayout.DEFAULT_SIZE, 631, Short.MAX_VALUE));
    pyramidPanelLayout
            .setVerticalGroup(
                    pyramidPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                    pyramidPanelLayout.createSequentialGroup().addComponent(jButton1)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(pyramidPanelHolder,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)
                                            .addContainerGap()));

    jTabbedPane1.addTab(resourceMap.getString("pyramidPanel.TabConstraints.tabTitle"), pyramidPanel); // NOI18N

    saveButton.setAction(actionMap.get("saveAction")); // NOI18N
    saveButton.setName("saveButton"); // NOI18N

    cancelButton.setAction(actionMap.get("cancelAction")); // NOI18N
    cancelButton.setText(resourceMap.getString("cancelButton.text")); // NOI18N
    cancelButton.setName("cancelButton"); // NOI18N

    lockedToggleButton.setAction(actionMap.get("lockedAction")); // NOI18N
    lockedToggleButton.setText(resourceMap.getString("lockedToggleButton.text")); // NOI18N
    lockedToggleButton.setName("lockedToggleButton"); // NOI18N
    lockedToggleButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            lockedToggleButtonActionPerformed(evt);
        }
    });

    deleteButton.setAction(actionMap.get("deletePopulationDataSetAction")); // NOI18N
    deleteButton.setToolTipText(resourceMap.getString("deleteButton.toolTipText")); // NOI18N
    deleteButton.setName("deleteButton"); // NOI18N

    jInternalFrame1.setClosable(true);
    jInternalFrame1.setMaximizable(true);
    jInternalFrame1.setResizable(true);
    jInternalFrame1.setTitle(resourceMap.getString("jInternalFrame1.title")); // NOI18N
    jInternalFrame1.setFrameIcon(null);
    jInternalFrame1.setName("jInternalFrame1"); // NOI18N

    jTabbedPane2.setName("jTabbedPane2"); // NOI18N
    jTabbedPane2.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            jTabbedPane2FocusGained(evt);
        }
    });

    detailsPanel1.setName("detailsPanel1"); // NOI18N

    dateLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    dateLabel1.setText(resourceMap.getString("dateLabel1.text")); // NOI18N
    dateLabel1.setName("dateLabel1"); // NOI18N

    dateChooser1.setName("dateChooser1"); // NOI18N

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

    ageGroupStructureLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    ageGroupStructureLabel1.setText(resourceMap.getString("ageGroupStructureLabel1.text")); // NOI18N
    ageGroupStructureLabel1.setName("ageGroupStructureLabel1"); // NOI18N

    descriptionScrollPane1.setName("descriptionScrollPane1"); // NOI18N

    descriptionTextArea1.setColumns(20);
    descriptionTextArea1.setRows(5);
    descriptionTextArea1.setName("descriptionTextArea1"); // NOI18N
    descriptionScrollPane1.setViewportView(descriptionTextArea1);

    descriptionLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    descriptionLabel1.setText(resourceMap.getString("descriptionLabel1.text")); // NOI18N
    descriptionLabel1.setName("descriptionLabel1"); // NOI18N

    sourceLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    sourceLabel1.setText(resourceMap.getString("sourceLabel1.text")); // NOI18N
    sourceLabel1.setName("sourceLabel1"); // NOI18N

    sourceTextField1.setName("sourceTextField1"); // NOI18N

    filterTextField1.setName("filterTextField1"); // NOI18N

    filterWizardButton1.setAction(actionMap.get("filterWizardAction")); // NOI18N
    filterWizardButton1.setName("filterWizardButton1"); // NOI18N

    nameTextField1.setToolTipText(
            resourceMap.getString("nameTextField.toolTipText") + Globals.PDS_DATABASE_NAME_LENGTH);
    nameTextField1.setName("nameTextField1"); // NOI18N

    nameLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    nameLabel1.setText(resourceMap.getString("nameLabel1.text")); // NOI18N
    nameLabel1.setName("nameLabel1"); // NOI18N

    filterLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    filterLabel1.setText(resourceMap.getString("filterLabel1.text")); // NOI18N
    filterLabel1.setName("filterLabel1"); // NOI18N

    standardPopulationLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    standardPopulationLabel1.setText(resourceMap.getString("standardPopulationLabel1.text")); // NOI18N
    standardPopulationLabel1.setName("standardPopulationLabel1"); // NOI18N

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

    editStandardPopulationButton1.setAction(actionMap.get("editWorldPopulation")); // NOI18N
    editStandardPopulationButton1.setName("editStandardPopulationButton1"); // NOI18N

    otherAgeGroupStructureButton1.setAction(actionMap.get("otherAction")); // NOI18N
    otherAgeGroupStructureButton1.setName("otherAgeGroupStructureButton1"); // NOI18N

    javax.swing.GroupLayout detailsPanel1Layout = new javax.swing.GroupLayout(detailsPanel1);
    detailsPanel1.setLayout(detailsPanel1Layout);
    detailsPanel1Layout.setHorizontalGroup(detailsPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(detailsPanel1Layout.createSequentialGroup().addContainerGap().addGroup(detailsPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(nameLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
                    .addComponent(filterLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(sourceLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(descriptionLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(ageGroupStructureLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(dateLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(standardPopulationLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(detailsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    detailsPanel1Layout.createSequentialGroup()
                                            .addComponent(standardPopulationComboBox1, 0, 62, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(editStandardPopulationButton1))
                            .addComponent(dateChooser1, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE)
                            .addComponent(descriptionScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 119,
                                    Short.MAX_VALUE)
                            .addComponent(sourceTextField1, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE)
                            .addGroup(detailsPanel1Layout.createSequentialGroup()
                                    .addComponent(filterTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 20,
                                            Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(filterWizardButton1))
                            .addComponent(nameTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 119,
                                    Short.MAX_VALUE)
                            .addGroup(detailsPanel1Layout.createSequentialGroup()
                                    .addComponent(ageGroupStructureComboBox1, 0, 52, Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(otherAgeGroupStructureButton1)))
                    .addContainerGap()));
    detailsPanel1Layout.setVerticalGroup(detailsPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(detailsPanel1Layout.createSequentialGroup().addGroup(detailsPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nameTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(nameLabel1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            detailsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(filterWizardButton1)
                                    .addComponent(filterTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(filterLabel1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            detailsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(sourceTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(sourceLabel1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(detailsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(descriptionScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(descriptionLabel1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(detailsPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(ageGroupStructureComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ageGroupStructureLabel1).addComponent(otherAgeGroupStructureButton1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            detailsPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(dateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(dateLabel1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(detailsPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(editStandardPopulationButton1)
                            .addComponent(standardPopulationComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(standardPopulationLabel1))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jTabbedPane2.addTab(resourceMap.getString("detailsPanel1.TabConstraints.tabTitle"), detailsPanel1); // NOI18N

    dataSetPanel1.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("dataSetPanel1.border.title"))); // NOI18N
    dataSetPanel1.setName("dataSetPanel1"); // NOI18N

    jScrollPane2.setName("jScrollPane2"); // NOI18N

    jSplitPane2.setDividerLocation(60);
    jSplitPane2.setName("jSplitPane2"); // NOI18N

    jPanel4.setName("jPanel4"); // NOI18N

    jSplitPane4.setBorder(null);
    jSplitPane4.setDividerLocation(250);
    jSplitPane4.setDividerSize(0);
    jSplitPane4.setResizeWeight(0.5);
    jSplitPane4.setName("jSplitPane4"); // NOI18N

    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
    jLabel5.setName("jLabel5"); // NOI18N
    jSplitPane4.setLeftComponent(jLabel5);

    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N
    jSplitPane4.setRightComponent(jLabel6);

    pdsTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) } },
            new String[] { "Male", "Female" }) {
        Class[] types = new Class[] { java.lang.Integer.class, java.lang.Integer.class };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }
    });
    pdsTable1.setName("pdsTable1"); // NOI18N
    pdsTable1.getTableHeader().setReorderingAllowed(false);
    pdsTable1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            pdsTable1PropertyChange(evt);
        }
    });

    totalsTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) },
                    { new Integer(0), new Integer(0) }, { new Integer(0), new Integer(0) } },
            new String[] { "Male", "Female" }) {
        Class[] types = new Class[] { java.lang.Integer.class, java.lang.Integer.class };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }
    });
    totalsTable1.setFocusable(false);
    totalsTable1.setName("totalsTable1"); // NOI18N
    totalsTable1.getTableHeader().setReorderingAllowed(false);

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout
            .setHorizontalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                            .addGroup(jPanel4Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(totalsTable1, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(pdsTable1, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jSplitPane4, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 491,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap(18, Short.MAX_VALUE)));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                    .addComponent(jSplitPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 13,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(pdsTable1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(totalsTable1, javax.swing.GroupLayout.PREFERRED_SIZE, 16,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    pdsTable1.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    if (pdsTable1.getColumnModel().getColumnCount() > 0) {
        pdsTable1.getColumnModel().getColumn(0)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title1")); // NOI18N
        pdsTable1.getColumnModel().getColumn(1)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title2")); // NOI18N
    }
    totalsTable1.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    if (totalsTable1.getColumnModel().getColumnCount() > 0) {
        totalsTable1.getColumnModel().getColumn(0)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title1")); // NOI18N
        totalsTable1.getColumnModel().getColumn(1)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title2")); // NOI18N
    }

    jSplitPane2.setRightComponent(jPanel4);

    jPanel5.setName("jPanel5"); // NOI18N

    jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
    jLabel7.setName("jLabel7"); // NOI18N

    ageGroupLabelsTable1
            .setModel(
                    new javax.swing.table.DefaultTableModel(
                            new Object[][] { { null }, { null }, { null }, { null }, { null }, { null },
                                    { null }, { null }, { null }, { null }, { null }, { null }, { null },
                                    { null }, { null }, { null }, { null }, { null }, { null }, { null } },
                            new String[] { "Age group" }) {
                        Class[] types = new Class[] { java.lang.String.class };
                        boolean[] canEdit = new boolean[] { false };

                        public Class getColumnClass(int columnIndex) {
                            return types[columnIndex];
                        }

                        public boolean isCellEditable(int rowIndex, int columnIndex) {
                            return canEdit[columnIndex];
                        }
                    });
    ageGroupLabelsTable1.setFocusable(false);
    ageGroupLabelsTable1.setName("ageGroupLabelsTable1"); // NOI18N
    ageGroupLabelsTable1.getTableHeader().setReorderingAllowed(false);

    jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
    jLabel8.setName("jLabel8"); // NOI18N

    javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
    jPanel5.setLayout(jPanel5Layout);
    jPanel5Layout
            .setHorizontalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE)
                    .addComponent(ageGroupLabelsTable1, javax.swing.GroupLayout.DEFAULT_SIZE, 59,
                            Short.MAX_VALUE)
                    .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE));
    jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                    .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 13,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ageGroupLabelsTable1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel8)
                    .addContainerGap(202, Short.MAX_VALUE)));

    ageGroupLabelsTable1.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    if (ageGroupLabelsTable1.getColumnModel().getColumnCount() > 0) {
        ageGroupLabelsTable1.getColumnModel().getColumn(0)
                .setHeaderValue(resourceMap.getString("pdsTable.columnModel.title0")); // NOI18N
    }

    jSplitPane2.setLeftComponent(jPanel5);

    jScrollPane2.setViewportView(jSplitPane2);

    javax.swing.GroupLayout dataSetPanel1Layout = new javax.swing.GroupLayout(dataSetPanel1);
    dataSetPanel1.setLayout(dataSetPanel1Layout);
    dataSetPanel1Layout.setHorizontalGroup(
            dataSetPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE));
    dataSetPanel1Layout
            .setVerticalGroup(dataSetPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 254, Short.MAX_VALUE));

    jTabbedPane2.addTab(resourceMap.getString("dataSetPanel1.TabConstraints.tabTitle"), dataSetPanel1); // NOI18N

    jPanel6.setName("jPanel6"); // NOI18N

    jButton2.setAction(actionMap.get("updatePyramid")); // NOI18N
    jButton2.setName("jButton2"); // NOI18N

    pyramidLabel1.setName("pyramidLabel1"); // NOI18N

    javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout
            .setHorizontalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE)
                    .addComponent(pyramidLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 283, Short.MAX_VALUE));
    jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup().addComponent(jButton2)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(pyramidLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE)));

    jTabbedPane2.addTab(resourceMap.getString("jPanel6.TabConstraints.tabTitle"), jPanel6); // NOI18N

    saveButton1.setAction(actionMap.get("saveAction")); // NOI18N
    saveButton1.setName("saveButton1"); // NOI18N

    cancelButton1.setAction(actionMap.get("cancelAction")); // NOI18N
    cancelButton1.setName("cancelButton1"); // NOI18N

    lockedToggleButton1.setAction(actionMap.get("lockedAction")); // NOI18N
    lockedToggleButton1.setName("lockedToggleButton1"); // NOI18N
    lockedToggleButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            lockedToggleButton1ActionPerformed(evt);
        }
    });

    deleteButton1.setAction(actionMap.get("deletePopulationDataSetAction")); // NOI18N
    deleteButton1.setName("deleteButton1"); // NOI18N

    javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(
            jInternalFrame1.getContentPane());
    jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);
    jInternalFrame1Layout.setHorizontalGroup(
            jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jInternalFrame1Layout.createSequentialGroup().addContainerGap()
                            .addComponent(deleteButton1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lockedToggleButton1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(cancelButton1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(saveButton1).addContainerGap())
                    .addComponent(jTabbedPane2));
    jInternalFrame1Layout.setVerticalGroup(
            jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    jInternalFrame1Layout.createSequentialGroup().addComponent(jTabbedPane2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jInternalFrame1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(saveButton1).addComponent(cancelButton1)
                                    .addComponent(lockedToggleButton1).addComponent(deleteButton1))
                            .addContainerGap()));

    saveAsNewButton.setAction(actionMap.get("saveAsNewAction")); // NOI18N
    saveAsNewButton.setName("saveAsNewButton"); // NOI18N

    writeToFileButton.setAction(actionMap.get("writeToFile")); // NOI18N
    writeToFileButton.setName("writeToFileButton"); // NOI18N

    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().addComponent(deleteButton)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(writeToFileButton)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lockedToggleButton)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(cancelButton).addGap(11, 11, 11).addComponent(saveAsNewButton)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(saveButton).addContainerGap())
            .addComponent(jTabbedPane1).addGroup(
                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addGap(0, 318, Short.MAX_VALUE)
                                    .addComponent(jInternalFrame1, javax.swing.GroupLayout.PREFERRED_SIZE, 0,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 318, Short.MAX_VALUE))));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addComponent(jTabbedPane1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(saveButton).addComponent(deleteButton).addComponent(cancelButton)
                            .addComponent(lockedToggleButton).addComponent(saveAsNewButton)
                            .addComponent(writeToFileButton))
                    .addContainerGap())
            .addGroup(
                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addGap(0, 275, Short.MAX_VALUE)
                                    .addComponent(jInternalFrame1, javax.swing.GroupLayout.PREFERRED_SIZE, 0,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 275, Short.MAX_VALUE))));

    pack();
}