Example usage for java.awt FlowLayout LEFT

List of usage examples for java.awt FlowLayout LEFT

Introduction

In this page you can find the example usage for java.awt FlowLayout LEFT.

Prototype

int LEFT

To view the source code for java.awt FlowLayout LEFT.

Click Source Link

Document

This value indicates that each row of components should be left-justified.

Usage

From source file:org.apache.jmeter.visualizers.StatGraphVisualizer.java

/**
 * Create pane for Y Axis options//  ww  w .jav  a  2 s  .  c  om
 * @return Y Axis pane
 */
private JPanel createGraphYAxisPane() {
    JPanel yAxisPane = new JPanel();
    yAxisPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
    yAxisPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("aggregate_graph_yaxis_group"))); // $NON-NLS-1$
    yAxisPane.add(maxValueYAxisLabel);
    return yAxisPane;
}

From source file:org.apache.jmeter.visualizers.StatGraphVisualizer.java

/**
 * Create pane for legend settings//  w ww. j  a v  a2 s . c o m
 * @return Legend pane
 */
private JPanel createLegendPane() {
    JPanel legendPanel = new JPanel();
    legendPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
    legendPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("aggregate_graph_legend"))); // $NON-NLS-1$

    legendPanel.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_legend_placement"), //$NON-NLS-1$
            legendPlacementList));
    legendPlacementList.setSelectedItem(JMeterUtils.getResString("aggregate_graph_legend.placement.bottom")); // $NON-NLS-1$ // default: bottom
    legendPanel.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_font"), //$NON-NLS-1$
            fontNameList));
    fontNameList.setSelectedIndex(0); // default: sans serif
    legendPanel.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_size"), //$NON-NLS-1$
            fontSizeList));
    fontSizeList.setSelectedItem(StatGraphProperties.fontSize[2]); // default: 10
    legendPanel.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_style"), //$NON-NLS-1$
            fontStyleList));
    fontStyleList.setSelectedItem(JMeterUtils.getResString("fontstyle.normal")); // $NON-NLS-1$ // default: normal

    return legendPanel;
}

From source file:org.apache.jmeter.visualizers.RespTimeGraphVisualizer.java

/**
 * Create pane for X Axis options/*from  ww w  .  ja va  2s.  c  om*/
 * @return X Axis pane
 */
private JPanel createGraphXAxisPane() {
    JPanel xAxisPane = new JPanel();
    xAxisPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
    xAxisPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("aggregate_graph_xaxis_group"))); // $NON-NLS-1$
    xAxisTimeFormat.setText(DEFAULT_XAXIS_TIME_FORMAT); // $NON-NLS-1$
    xAxisPane.add(xAxisTimeFormat);
    return xAxisPane;
}

From source file:org.apache.jmeter.visualizers.RespTimeGraphVisualizer.java

/**
 * Create pane for Y Axis options/*from   w  w  w.j av a2s  .c om*/
 * @return Y Axis pane
 */
private JPanel createGraphYAxisPane() {
    JPanel yAxisPane = new JPanel();
    yAxisPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
    yAxisPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("aggregate_graph_yaxis_group"))); // $NON-NLS-1$
    yAxisPane.add(maxValueYAxisLabel);
    yAxisPane.add(incrScaleYAxis);
    yAxisPane.add(numberShowGrouping);
    return yAxisPane;
}

From source file:de.tbuchloh.kiskis.gui.MainFramePanel.java

private void initToolBar() {
    final JPanel bars = new JPanel(new FlowLayout(FlowLayout.LEFT));
    _toolbar = new JToolBar();
    _toolbar.setFloatable(false);/*from   w  w  w .j  a  va 2  s  .c om*/
    final Action[] actions = { _newFileAction, _openFileAction, _saveAction, _saveAsAction, _closeDocAction,
            null, _lockScreenAction, null, _quitAction };
    addActions(_toolbar, actions);
    _toolbar.addSeparator();
    bars.add(_toolbar);
    bars.add(_editHandler.getToolBar());
    bars.add(_reportHandler.getToolBar());
    this.add(bars, BorderLayout.NORTH);
}

From source file:org.apache.jmeter.visualizers.RespTimeGraphVisualizer.java

/**
 * Create pane for legend settings/* w w  w .j a  va2s .  c  o  m*/
 * @return Legend pane
 */
private JPanel createLegendPane() {
    JPanel legendPanel = new JPanel();
    legendPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
    legendPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            JMeterUtils.getResString("aggregate_graph_legend"))); // $NON-NLS-1$

    legendPanel.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_legend_placement"), //$NON-NLS-1$
            legendPlacementList));
    legendPlacementList.setSelectedIndex(DEFAULT_LEGEND_PLACEMENT);
    legendPanel.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_font"), //$NON-NLS-1$
            fontNameList));
    fontNameList.setSelectedIndex(DEFAULT_LEGEND_FONT);
    legendPanel.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_size"), //$NON-NLS-1$
            fontSizeList));
    fontSizeList.setSelectedItem(StatGraphProperties.fontSize[DEFAULT_LEGEND_SIZE]);
    legendPanel.add(GuiUtils.createLabelCombo(JMeterUtils.getResString("aggregate_graph_style"), //$NON-NLS-1$
            fontStyleList));
    fontStyleList.setSelectedIndex(DEFAULT_LEGEND_STYLE);

    return legendPanel;
}

From source file:org.nyu.edu.dlts.dbCopyFrame.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    apiLabel = new JLabel();
    panel4 = new JPanel();
    label9 = new JLabel();
    beanShellRadioButton = new JRadioButton();
    jrubyRadioButton = new JRadioButton();
    pythonRadioButton = new JRadioButton();
    javascriptRadioButton = new JRadioButton();
    loadExcelFileButton = new JButton();
    excelTextField = new JTextField();
    loadMapperScriptButton = new JButton();
    mapperScriptTextField = new JTextField();
    editScriptButton = new JButton();
    separator2 = new JSeparator();
    panel5 = new JPanel();
    createRepositoryCheckBox = new JCheckBox();
    repoShortNameTextField = new JTextField();
    repoNameTextField = new JTextField();
    repoCodeTextField = new JTextField();
    repoURLTextField = new JTextField();
    panel2 = new JPanel();
    label1 = new JLabel();
    label3 = new JLabel();
    label10 = new JLabel();
    locationsTextField = new JTextField();
    locationsLabel = new JLabel();
    label5 = new JLabel();
    subjectsTextField = new JTextField();
    subjectsLabel = new JLabel();
    label4 = new JLabel();
    namesTextField = new JTextField();
    namesLabel = new JLabel();
    label6 = new JLabel();
    accessionsTextField = new JTextField();
    accessionsLabel = new JLabel();
    label7 = new JLabel();
    digitalObjectsTextField = new JTextField();
    digitalObjectLabel = new JLabel();
    label8 = new JLabel();
    resourcesTextField = new JTextField();
    resourcesLabel = new JLabel();
    separator1 = new JSeparator();
    copyToASpaceButton = new JButton();
    hostLabel = new JLabel();
    hostTextField = new JTextField();
    simulateCheckBox = new JCheckBox();
    adminLabel = new JLabel();
    adminTextField = new JTextField();
    adminPasswordLabel = new JLabel();
    adminPasswordTextField = new JTextField();
    label2 = new JLabel();
    repositoryURITextField = new JTextField();
    developerModeCheckBox = new JCheckBox();
    outputConsoleLabel = new JLabel();
    copyProgressBar = new JProgressBar();
    scrollPane1 = new JScrollPane();
    consoleTextArea = new JTextArea();
    recordURIComboBox = new JComboBox();
    panel1 = new JPanel();
    paramsLabel = new JLabel();
    paramsTextField = new JTextField();
    viewRecordButton = new JButton();
    buttonBar = new JPanel();
    errorLogButton = new JButton();
    saveErrorsLabel = new JLabel();
    errorCountLabel = new JLabel();
    stopButton = new JButton();
    utillitiesButton = new JButton();
    okButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle("Archives Space Excel Data Migrator");
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {/*from  w  ww.  j  a  v  a  2 s  .  com*/
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //---- apiLabel ----
            apiLabel.setText("  Archives Space Version: v1.1.0");
            apiLabel.setHorizontalTextPosition(SwingConstants.CENTER);
            apiLabel.setFont(new Font("Lucida Grande", Font.BOLD, 14));
            contentPanel.add(apiLabel, cc.xy(1, 1));

            //======== panel4 ========
            {
                panel4.setLayout(new FormLayout(
                        new ColumnSpec[] {
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        RowSpec.decodeSpecs("default")));

                //---- label9 ----
                label9.setText("Select Script Type");
                panel4.add(label9, cc.xy(1, 1));

                //---- beanShellRadioButton ----
                beanShellRadioButton.setText("Beanshell");
                beanShellRadioButton.setSelected(true);
                beanShellRadioButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        clearMapperScript();
                    }
                });
                panel4.add(beanShellRadioButton, cc.xy(3, 1));

                //---- jrubyRadioButton ----
                jrubyRadioButton.setText("JRuby");
                jrubyRadioButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        clearMapperScript();
                    }
                });
                panel4.add(jrubyRadioButton, cc.xy(5, 1));

                //---- pythonRadioButton ----
                pythonRadioButton.setText("Jython");
                pythonRadioButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        clearMapperScript();
                    }
                });
                panel4.add(pythonRadioButton, cc.xy(7, 1));

                //---- javascriptRadioButton ----
                javascriptRadioButton.setText("Javascript");
                javascriptRadioButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        clearMapperScript();
                    }
                });
                panel4.add(javascriptRadioButton, cc.xy(9, 1));
            }
            contentPanel.add(panel4, cc.xywh(3, 1, 7, 1));

            //---- loadExcelFileButton ----
            loadExcelFileButton.setText("Load Excel File");
            loadExcelFileButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    loadExcelFileButtonActionPerformed();
                }
            });
            contentPanel.add(loadExcelFileButton, cc.xy(1, 3));
            contentPanel.add(excelTextField, cc.xywh(3, 3, 5, 1));

            //---- loadMapperScriptButton ----
            loadMapperScriptButton.setText("Load Mapper Script");
            loadMapperScriptButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    loadMapperScriptButtonActionPerformed();
                }
            });
            contentPanel.add(loadMapperScriptButton, cc.xy(1, 5));

            //---- mapperScriptTextField ----
            mapperScriptTextField.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    loadMapperScript();
                }
            });
            contentPanel.add(mapperScriptTextField, cc.xywh(3, 5, 5, 1));

            //---- editScriptButton ----
            editScriptButton.setText("Edit");
            editScriptButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    editScriptButtonActionPerformed();
                }
            });
            contentPanel.add(editScriptButton, cc.xy(9, 5));
            contentPanel.add(separator2, cc.xywh(1, 7, 9, 1));

            //======== panel5 ========
            {
                panel5.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC }));

                //---- createRepositoryCheckBox ----
                createRepositoryCheckBox.setText("Create Repository");
                createRepositoryCheckBox.setSelected(true);
                panel5.add(createRepositoryCheckBox, cc.xy(1, 1));

                //---- repoShortNameTextField ----
                repoShortNameTextField.setText("Repo Short Name 1");
                panel5.add(repoShortNameTextField, cc.xy(1, 3));

                //---- repoNameTextField ----
                repoNameTextField.setText("Repo Name 1");
                panel5.add(repoNameTextField, cc.xy(1, 5));

                //---- repoCodeTextField ----
                repoCodeTextField.setText("Organization Code 1");
                panel5.add(repoCodeTextField, cc.xy(1, 7));

                //---- repoURLTextField ----
                repoURLTextField.setText("http://repository.url.org");
                panel5.add(repoURLTextField, cc.xy(1, 9));
            }
            contentPanel.add(panel5, cc.xy(1, 9));

            //======== panel2 ========
            {
                panel2.setLayout(new FormLayout("default, default:grow, right:default",
                        "default, default, default, fill:default:grow, fill:default:grow, default, fill:default:grow"));

                //---- label1 ----
                label1.setText("Record Type");
                panel2.add(label1, cc.xy(1, 1));

                //---- label3 ----
                label3.setText("Spreadsheet Number (starting at 1)");
                panel2.add(label3, cc.xy(2, 1));

                //---- label10 ----
                label10.setText("Locations");
                panel2.add(label10, cc.xy(1, 2));

                //---- locationsTextField ----
                locationsTextField.setText("1");
                panel2.add(locationsTextField, cc.xy(2, 2));

                //---- locationsLabel ----
                locationsLabel.setText("not supported");
                panel2.add(locationsLabel, cc.xy(3, 2));

                //---- label5 ----
                label5.setText("Subjects");
                panel2.add(label5, cc.xy(1, 3));

                //---- subjectsTextField ----
                subjectsTextField.setColumns(2);
                subjectsTextField.setText("2");
                panel2.add(subjectsTextField, cc.xy(2, 3));

                //---- subjectsLabel ----
                subjectsLabel.setText("not supported");
                panel2.add(subjectsLabel, cc.xy(3, 3));

                //---- label4 ----
                label4.setText("Names");
                panel2.add(label4, cc.xy(1, 4));

                //---- namesTextField ----
                namesTextField.setColumns(12);
                namesTextField.setText("3");
                panel2.add(namesTextField, cc.xy(2, 4));

                //---- namesLabel ----
                namesLabel.setText("not supported");
                panel2.add(namesLabel, cc.xy(3, 4));

                //---- label6 ----
                label6.setText("Accessions");
                panel2.add(label6, cc.xy(1, 5));

                //---- accessionsTextField ----
                accessionsTextField.setColumns(2);
                accessionsTextField.setText("4");
                panel2.add(accessionsTextField, cc.xy(2, 5));

                //---- accessionsLabel ----
                accessionsLabel.setText("not supported");
                panel2.add(accessionsLabel, cc.xy(3, 5));

                //---- label7 ----
                label7.setText("Digital Objects");
                panel2.add(label7, cc.xy(1, 6));

                //---- digitalObjectsTextField ----
                digitalObjectsTextField.setColumns(2);
                digitalObjectsTextField.setText("5");
                panel2.add(digitalObjectsTextField, cc.xy(2, 6));

                //---- digitalObjectLabel ----
                digitalObjectLabel.setText("not supported");
                panel2.add(digitalObjectLabel, cc.xy(3, 6));

                //---- label8 ----
                label8.setText("Resources");
                panel2.add(label8, cc.xy(1, 7));

                //---- resourcesTextField ----
                resourcesTextField.setText("6, 7");
                resourcesTextField.setColumns(2);
                panel2.add(resourcesTextField, cc.xy(2, 7));

                //---- resourcesLabel ----
                resourcesLabel.setText("not supported");
                panel2.add(resourcesLabel, cc.xy(3, 7));
            }
            contentPanel.add(panel2, cc.xywh(3, 9, 7, 1));
            contentPanel.add(separator1, cc.xywh(1, 11, 9, 1));

            //---- copyToASpaceButton ----
            copyToASpaceButton.setText("Copy To Archives Space");
            copyToASpaceButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    CopyToASpaceButtonActionPerformed();
                }
            });
            contentPanel.add(copyToASpaceButton, cc.xy(1, 13));

            //---- hostLabel ----
            hostLabel.setText("Archives Space Host");
            contentPanel.add(hostLabel, cc.xywh(3, 13, 2, 1));

            //---- hostTextField ----
            hostTextField.setText("http://localhost:8089");
            contentPanel.add(hostTextField, cc.xywh(5, 13, 5, 1));

            //---- simulateCheckBox ----
            simulateCheckBox.setText("Simulate REST Calls");
            simulateCheckBox.setSelected(true);
            contentPanel.add(simulateCheckBox, cc.xy(1, 15));

            //---- adminLabel ----
            adminLabel.setText("Administrator User ID");
            contentPanel.add(adminLabel, cc.xy(3, 15));

            //---- adminTextField ----
            adminTextField.setText("admin");
            contentPanel.add(adminTextField, cc.xywh(5, 15, 2, 1));

            //---- adminPasswordLabel ----
            adminPasswordLabel.setText("Password");
            contentPanel.add(adminPasswordLabel, cc.xy(7, 15));

            //---- adminPasswordTextField ----
            adminPasswordTextField.setText("admin");
            contentPanel.add(adminPasswordTextField, cc.xy(9, 15));

            //---- label2 ----
            label2.setText("Target Repository URI");
            contentPanel.add(label2, cc.xy(3, 17));
            contentPanel.add(repositoryURITextField, cc.xywh(5, 17, 5, 1));

            //---- developerModeCheckBox ----
            developerModeCheckBox.setText(
                    "Developer Mode (Locations/Names/Subjects are copied once and random IDs are used other records)");
            contentPanel.add(developerModeCheckBox, cc.xywh(1, 19, 9, 1));

            //---- outputConsoleLabel ----
            outputConsoleLabel.setText("Output Console:");
            contentPanel.add(outputConsoleLabel, cc.xy(1, 21));
            contentPanel.add(copyProgressBar, cc.xywh(3, 21, 7, 1));

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

                //---- consoleTextArea ----
                consoleTextArea.setRows(12);
                scrollPane1.setViewportView(consoleTextArea);
            }
            contentPanel.add(scrollPane1, cc.xywh(1, 23, 9, 1));

            //---- recordURIComboBox ----
            recordURIComboBox.setModel(new DefaultComboBoxModel(new String[] { "/repositories", "/users",
                    "/subjects", "/agents/families/1", "/agents/people/1", "/agents/corporate_entities/1",
                    "/repositories/2/accessions/1", "/repositories/2/resources/1",
                    "/repositories/2/archival_objects/1", "/config/enumerations" }));
            recordURIComboBox.setEditable(true);
            contentPanel.add(recordURIComboBox, cc.xy(1, 25));

            //======== panel1 ========
            {
                panel1.setLayout(new FlowLayout(FlowLayout.LEFT));

                //---- paramsLabel ----
                paramsLabel.setText("Params");
                panel1.add(paramsLabel);

                //---- paramsTextField ----
                paramsTextField.setColumns(20);
                panel1.add(paramsTextField);
            }
            contentPanel.add(panel1, cc.xywh(3, 25, 3, 1));

            //---- viewRecordButton ----
            viewRecordButton.setText("View");
            viewRecordButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    viewRecordButtonActionPerformed();
                }
            });
            contentPanel.add(viewRecordButton, cc.xywh(7, 25, 3, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
            buttonBar.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.GLUE_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.BUTTON_COLSPEC },
                    RowSpec.decodeSpecs("pref")));

            //---- errorLogButton ----
            errorLogButton.setText("View Error Log");
            errorLogButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    errorLogButtonActionPerformed();
                }
            });
            buttonBar.add(errorLogButton, cc.xy(2, 1));

            //---- saveErrorsLabel ----
            saveErrorsLabel.setText(" Errors: ");
            buttonBar.add(saveErrorsLabel, cc.xy(4, 1));

            //---- errorCountLabel ----
            errorCountLabel.setText("N/A ");
            errorCountLabel.setForeground(Color.red);
            errorCountLabel.setFont(new Font("Lucida Grande", Font.BOLD, 13));
            buttonBar.add(errorCountLabel, cc.xy(6, 1));

            //---- stopButton ----
            stopButton.setText("Cancel Copy");
            stopButton.setEnabled(false);
            stopButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    stopButtonActionPerformed();
                    stopButtonActionPerformed();
                }
            });
            buttonBar.add(stopButton, cc.xy(9, 1));

            //---- utillitiesButton ----
            utillitiesButton.setText("Utilities");
            buttonBar.add(utillitiesButton, cc.xy(11, 1));

            //---- okButton ----
            okButton.setText("Close");
            okButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    okButtonActionPerformed();
                }
            });
            buttonBar.add(okButton, cc.xy(14, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());

    //---- buttonGroup1 ----
    ButtonGroup buttonGroup1 = new ButtonGroup();
    buttonGroup1.add(beanShellRadioButton);
    buttonGroup1.add(jrubyRadioButton);
    buttonGroup1.add(pythonRadioButton);
    buttonGroup1.add(javascriptRadioButton);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:us.daveread.basicquery.BasicQuery.java

/**
 * Builds the GUI for the application//  ww  w .j  a v  a  2  s .  c  om
 */
private void setup() {
    JPanel panel;
    JPanel gridPanel;
    JPanel outerPanel;
    JPanel flowPanel;
    JPanel boxedPanel;
    ButtonGroup bGroup;
    MaxHeightJScrollPane maxHeightJScrollPane;

    setupComponents();

    getContentPane().setLayout(new BorderLayout());

    // table.getTableHeader().setFont(new Font(table.getTableHeader().getFont().
    // getName(), table.getTableHeader().getFont().getStyle(),
    // MessageStyleFactory.instance().getFontSize()));
    getContentPane().add(new JScrollPane(table), BorderLayout.CENTER);

    panel = new JPanel();
    panel.setLayout(new BorderLayout());

    outerPanel = new JPanel();
    outerPanel.setLayout(new BorderLayout());

    gridPanel = new JPanel();
    gridPanel.setLayout(new GridLayout(0, 1));

    gridPanel.add(connectString = new JComboBox());
    connectString.setEditable(true);
    gridPanel.add(querySelection = new JComboBox());
    querySelection.setEditable(false);
    querySelection.addActionListener(this);
    outerPanel.add(gridPanel, BorderLayout.NORTH);

    outerPanel.add(new JScrollPane(queryText = new JTextArea(QUERY_AREA_ROWS, QUERY_AREA_COLUMNS)),
            BorderLayout.SOUTH);
    queryText.setLineWrap(true);
    queryText.setWrapStyleWord(true);
    queryText.addKeyListener(this);

    panel.add(outerPanel, BorderLayout.CENTER);

    outerPanel = new JPanel();
    outerPanel.setLayout(new BorderLayout());

    boxedPanel = new JPanel();
    boxedPanel.setLayout(new GridLayout(0, 2));
    boxedPanel.add(new JLabel(Resources.getString("proUserId")));
    boxedPanel.add(userId = new JTextField(10));
    boxedPanel.add(new JLabel(Resources.getString("proPassword")));
    boxedPanel.add(password = new JPasswordField(10));
    outerPanel.add(boxedPanel, BorderLayout.WEST);

    // Prev/Next and the checkboxes are all on the flowPanel - Center of
    // outerPanel
    flowPanel = new JPanel();
    flowPanel.setLayout(new FlowLayout(FlowLayout.CENTER));

    // Previous/Next buttons
    boxedPanel = new JPanel();
    boxedPanel.setLayout(new FlowLayout());
    boxedPanel.add(previousQuery = new JButton(Resources.getString("ctlPrev"),
            new ImageIcon(ImageUtility.getImageAsByteArray("ArrowLeftGreen.gif"))));
    previousQuery.setToolTipText(Resources.getString("tipPrev"));
    previousQuery.addActionListener(this);
    boxedPanel.add(nextQuery = new JButton(Resources.getString("ctlNext"),
            new ImageIcon(ImageUtility.getImageAsByteArray("ArrowRightGreen.gif"))));
    nextQuery.setToolTipText(Resources.getString("tipNext"));
    nextQuery.addActionListener(this);
    flowPanel.add(boxedPanel);

    // Checkboxes: Autocommit, Read Only and Pooling
    boxedPanel = new JPanel();
    boxedPanel.setLayout(new FlowLayout());
    boxedPanel.setBorder(getStandardBorder());
    boxedPanel.add(autoCommit = new JCheckBox(Resources.getString("ctlAutoCommit"), true));
    boxedPanel.add(readOnly = new JCheckBox(Resources.getString("ctlReadOnly"), false));
    boxedPanel.add(poolConnect = new JCheckBox(Resources.getString("ctlConnPool"), false));
    poolConnect.setEnabled(false);
    flowPanel.add(boxedPanel);
    outerPanel.add(flowPanel, BorderLayout.CENTER);

    boxedPanel = new JPanel();
    boxedPanel.setLayout(new GridLayout(0, 1));
    boxedPanel.setBorder(getStandardBorder());
    boxedPanel.add(runIndicator = new JLabel(Resources.getString("ctlRunning"), JLabel.CENTER));
    runIndicator.setForeground(Color.lightGray);
    boxedPanel.add(timeIndicator = new JLabel("", JLabel.RIGHT));
    outerPanel.add(boxedPanel, BorderLayout.EAST);

    panel.add(outerPanel, BorderLayout.NORTH);

    flowPanel = new JPanel();
    flowPanel.setLayout(new FlowLayout(FlowLayout.LEFT));

    boxedPanel = new JPanel();
    boxedPanel.setLayout(new FlowLayout());
    boxedPanel.setBorder(getStandardBorder());
    boxedPanel.add(new JLabel(Resources.getString("proQueryType")));
    boxedPanel.add(asQuery = new JRadioButton(Resources.getString("ctlSelect"), true));
    boxedPanel.add(asUpdate = new JRadioButton(Resources.getString("ctlUpdate")));
    boxedPanel.add(asDescribe = new JRadioButton(Resources.getString("ctlDescribe")));
    bGroup = new ButtonGroup();
    bGroup.add(asQuery);
    bGroup.add(asUpdate);
    bGroup.add(asDescribe);
    asQuery.addActionListener(this);
    asUpdate.addActionListener(this);
    asDescribe.addActionListener(this);
    flowPanel.add(boxedPanel);

    flowPanel.add(new JLabel("     "));

    boxedPanel = new JPanel();
    boxedPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    boxedPanel.setBorder(getStandardBorder());
    boxedPanel.add(new JLabel(Resources.getString("proMaxRows")));
    boxedPanel.add(maxRows);
    flowPanel.add(boxedPanel);

    flowPanel.add(new JLabel("     "));

    flowPanel.add(execute = new JButton(Resources.getString("ctlExecute")));
    execute.addActionListener(this);
    flowPanel.add(remove = new JButton(Resources.getString("ctlRemove")));
    remove.addActionListener(this);
    flowPanel.add(commentToggle = new JButton(Resources.getString("ctlComment")));
    commentToggle.addActionListener(this);
    flowPanel.add(nextInList = new JButton(Resources.getString("ctlDown")));
    nextInList.addActionListener(this);

    panel.add(flowPanel, BorderLayout.SOUTH);

    getContentPane().add(panel, BorderLayout.NORTH);
    getRootPane().setDefaultButton(execute);

    messageDocument = new DefaultStyledDocument();
    getContentPane().add(
            maxHeightJScrollPane = new MaxHeightJScrollPane(message = new JTextPane(messageDocument)),
            BorderLayout.SOUTH);
    message.setEditable(false);

    loadedDBDriver = false;

    loadMenu();

    setupTextStyles();
    loadProperties();
    setupUserDefinedColoring();
    setupResultsTableColoring();
    loadConfig();
    loadConnectStrings();
    loadQueries();

    loadDrivers();

    // Check for avail of pool - enable/disable pooling option as appropriate
    // Not really useful until we get the pooling classes out of this code
    try {
        new GenericObjectPool(null);
        poolConnect.setEnabled(true);
        poolConnect.setSelected(true);
    } catch (Throwable any) {
        // No Apache Commons DB Pooling Library Found (DBCP)
        LOGGER.error(Resources.getString("errNoPoolLib"), any);
    }

    setDefaults();

    maxHeightJScrollPane.lockHeight(getHeight() / MAX_SCROLL_PANE_DIVISOR_FOR_MAX_HEIGHT);

    // Font
    setFontFromConfig(Configuration.instance());

    setVisible(true);
}

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

private JPanel getJPanel1() {
    if (jPanel1 == null) {
        jPanel1 = new JPanel();
        FlowLayout jPanel1Layout = new FlowLayout();
        jPanel1Layout.setHgap(0);/*w  w  w . j a  v  a2  s.c  om*/
        jPanel1Layout.setVgap(0);
        jPanel1Layout.setAlignment(FlowLayout.LEFT);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1.add(getJZoomOutAutoRangeButton());
        jPanel1.add(getJZoomOutButton());
        jPanel1.add(getJButton1());
    }
    return jPanel1;
}

From source file:com.jtstand.swing.StatsPanel.java

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

    buttonGroupType = new javax.swing.ButtonGroup();
    buttonGroupStatusFilter = new javax.swing.ButtonGroup();
    buttonGroupCountFilter = new javax.swing.ButtonGroup();
    jPanel1 = new javax.swing.JPanel();
    jPanelMainStats = new javax.swing.JPanel();
    jPanel3 = new javax.swing.JPanel();
    jLabelLSL = new javax.swing.JLabel();
    jPanel4 = new javax.swing.JPanel();
    jLabelUSL = new javax.swing.JLabel();
    jPanelChartType = new javax.swing.JPanel();
    jPanel5 = new javax.swing.JPanel();
    jRadioButtonStepTime = new javax.swing.JRadioButton();
    jPanel6 = new javax.swing.JPanel();
    jRadioButtonSequenceTime = new javax.swing.JRadioButton();
    jPanel7 = new javax.swing.JPanel();
    jRadioButtonList = new javax.swing.JRadioButton();
    jPanel8 = new javax.swing.JPanel();
    jRadioButtonDistribution = new javax.swing.JRadioButton();
    jPanelSeparate = new javax.swing.JPanel();
    jPanel17 = new javax.swing.JPanel();
    jCheckBoxStation = new javax.swing.JCheckBox();
    jPanel19 = new javax.swing.JPanel();
    jCheckBoxFixture = new javax.swing.JCheckBox();
    jPanel22 = new javax.swing.JPanel();
    jCheckBoxOperator = new javax.swing.JCheckBox();
    jPanel18 = new javax.swing.JPanel();
    jCheckBoxPartNumber = new javax.swing.JCheckBox();
    jPanel23 = new javax.swing.JPanel();
    jCheckBoxPartRevision = new javax.swing.JCheckBox();
    jPanel21 = new javax.swing.JPanel();
    jCheckBoxTestType = new javax.swing.JCheckBox();
    jPanel20 = new javax.swing.JPanel();
    jCheckBoxSerialNumber = new javax.swing.JCheckBox();
    jPanelStatusFilter = new javax.swing.JPanel();
    jPanel9 = new javax.swing.JPanel();
    jRadioButtonAllStatus = new javax.swing.JRadioButton();
    jPanel10 = new javax.swing.JPanel();
    jRadioButtonPassedStep = new javax.swing.JRadioButton();
    jPanel11 = new javax.swing.JPanel();
    jRadioButtonPassedSequence = new javax.swing.JRadioButton();
    jPanelCountFilter = new javax.swing.JPanel();
    jPanel12 = new javax.swing.JPanel();
    jRadioButtonAllCount = new javax.swing.JRadioButton();
    jPanel13 = new javax.swing.JPanel();
    jRadioButtonFirst = new javax.swing.JRadioButton();
    jPanel14 = new javax.swing.JPanel();
    jRadioButtonSecond = new javax.swing.JRadioButton();
    jPanel15 = new javax.swing.JPanel();
    jRadioButtonThird = new javax.swing.JRadioButton();
    jPanel16 = new javax.swing.JPanel();
    jRadioButtonLast = new javax.swing.JRadioButton();
    jPanel2 = new javax.swing.JPanel();
    jSplitPane = new javax.swing.JSplitPane();
    jScrollPaneTop = new javax.swing.JScrollPane();
    jTable = new org.jdesktop.swingx.JXTable();
    jScrollPaneBottom = new javax.swing.JScrollPane();

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

    jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.Y_AXIS));

    jPanelMainStats.setBorder(javax.swing.BorderFactory
            .createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Limits"));
    jPanelMainStats.setLayout(new javax.swing.BoxLayout(jPanelMainStats, javax.swing.BoxLayout.Y_AXIS));

    jPanel3.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

    jLabelLSL.setText("LSL:...");
    jPanel3.add(jLabelLSL);

    jPanelMainStats.add(jPanel3);

    jPanel4.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));

    jLabelUSL.setText("USL:...");
    jPanel4.add(jLabelUSL);

    jPanelMainStats.add(jPanel4);

    jPanel1.add(jPanelMainStats);

    jPanelChartType.setBorder(javax.swing.BorderFactory
            .createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Chart Type"));
    jPanelChartType.setLayout(new javax.swing.BoxLayout(jPanelChartType, javax.swing.BoxLayout.Y_AXIS));

    jPanel5.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupType.add(jRadioButtonStepTime);
    jRadioButtonStepTime.setText("Step Started Time");
    jRadioButtonStepTime.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonStepTime.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonStepTimeActionPerformed(evt);
        }
    });
    jPanel5.add(jRadioButtonStepTime);

    jPanelChartType.add(jPanel5);

    jPanel6.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupType.add(jRadioButtonSequenceTime);
    jRadioButtonSequenceTime.setText("Sequence Started Time");
    jRadioButtonSequenceTime.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonSequenceTime.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonSequenceTimeActionPerformed(evt);
        }
    });
    jPanel6.add(jRadioButtonSequenceTime);

    jPanelChartType.add(jPanel6);

    jPanel7.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupType.add(jRadioButtonList);
    jRadioButtonList.setText("As Listed");
    jRadioButtonList.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonList.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonListActionPerformed(evt);
        }
    });
    jPanel7.add(jRadioButtonList);

    jPanelChartType.add(jPanel7);

    jPanel8.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupType.add(jRadioButtonDistribution);
    jRadioButtonDistribution.setSelected(true);
    jRadioButtonDistribution.setText("Distribution");
    jRadioButtonDistribution.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonDistribution.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonDistributionActionPerformed(evt);
        }
    });
    jPanel8.add(jRadioButtonDistribution);

    jPanelChartType.add(jPanel8);

    jPanel1.add(jPanelChartType);

    jPanelSeparate.setBorder(javax.swing.BorderFactory
            .createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Categories"));
    jPanelSeparate.setLayout(new javax.swing.BoxLayout(jPanelSeparate, javax.swing.BoxLayout.Y_AXIS));

    jPanel17.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 1, 0));

    jCheckBoxStation.setText("Station");
    jCheckBoxStation.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBoxStationActionPerformed(evt);
        }
    });
    jPanel17.add(jCheckBoxStation);

    jPanelSeparate.add(jPanel17);

    jPanel19.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 1, 0));

    jCheckBoxFixture.setText("Fixture");
    jCheckBoxFixture.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBoxFixtureActionPerformed(evt);
        }
    });
    jPanel19.add(jCheckBoxFixture);

    jPanelSeparate.add(jPanel19);

    jPanel22.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 1, 0));

    jCheckBoxOperator.setText("Operator");
    jCheckBoxOperator.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBoxOperatorActionPerformed(evt);
        }
    });
    jPanel22.add(jCheckBoxOperator);

    jPanelSeparate.add(jPanel22);

    jPanel18.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 1, 0));

    jCheckBoxPartNumber.setText("Part Number");
    jCheckBoxPartNumber.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBoxPartNumberActionPerformed(evt);
        }
    });
    jPanel18.add(jCheckBoxPartNumber);

    jPanelSeparate.add(jPanel18);

    jPanel23.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 1, 0));

    jCheckBoxPartRevision.setText("Part Revision");
    jCheckBoxPartRevision.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBoxPartRevisionActionPerformed(evt);
        }
    });
    jPanel23.add(jCheckBoxPartRevision);

    jPanelSeparate.add(jPanel23);

    jPanel21.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 1, 0));

    jCheckBoxTestType.setText("Test Type");
    jCheckBoxTestType.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBoxTestTypeActionPerformed(evt);
        }
    });
    jPanel21.add(jCheckBoxTestType);

    jPanelSeparate.add(jPanel21);

    jPanel20.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 1, 0));

    jCheckBoxSerialNumber.setText("Serial Number");
    jCheckBoxSerialNumber.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCheckBoxSerialNumberActionPerformed(evt);
        }
    });
    jPanel20.add(jCheckBoxSerialNumber);

    jPanelSeparate.add(jPanel20);

    jPanel1.add(jPanelSeparate);

    jPanelStatusFilter.setBorder(javax.swing.BorderFactory
            .createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Test Status Filter"));
    jPanelStatusFilter.setLayout(new javax.swing.BoxLayout(jPanelStatusFilter, javax.swing.BoxLayout.Y_AXIS));

    jPanel9.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupStatusFilter.add(jRadioButtonAllStatus);
    jRadioButtonAllStatus.setSelected(true);
    jRadioButtonAllStatus.setText("All");
    jRadioButtonAllStatus.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonAllStatus.setPreferredSize(null);
    jRadioButtonAllStatus.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonAllStatusActionPerformed(evt);
        }
    });
    jPanel9.add(jRadioButtonAllStatus);

    jPanelStatusFilter.add(jPanel9);

    jPanel10.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupStatusFilter.add(jRadioButtonPassedStep);
    jRadioButtonPassedStep.setText("Passed Step");
    jRadioButtonPassedStep.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonPassedStep.setPreferredSize(null);
    jRadioButtonPassedStep.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonPassedStepActionPerformed(evt);
        }
    });
    jPanel10.add(jRadioButtonPassedStep);

    jPanelStatusFilter.add(jPanel10);

    jPanel11.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupStatusFilter.add(jRadioButtonPassedSequence);
    jRadioButtonPassedSequence.setText("Passed Sequence");
    jRadioButtonPassedSequence.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonPassedSequence.setPreferredSize(null);
    jRadioButtonPassedSequence.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonPassedSequenceActionPerformed(evt);
        }
    });
    jPanel11.add(jRadioButtonPassedSequence);

    jPanelStatusFilter.add(jPanel11);

    jPanel1.add(jPanelStatusFilter);

    jPanelCountFilter.setBorder(javax.swing.BorderFactory
            .createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Test Count Filter"));
    jPanelCountFilter.setLayout(new javax.swing.BoxLayout(jPanelCountFilter, javax.swing.BoxLayout.Y_AXIS));

    jPanel12.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupCountFilter.add(jRadioButtonAllCount);
    jRadioButtonAllCount.setSelected(true);
    jRadioButtonAllCount.setText("All");
    jRadioButtonAllCount.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonAllCount.setPreferredSize(null);
    jRadioButtonAllCount.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonAllCountActionPerformed(evt);
        }
    });
    jPanel12.add(jRadioButtonAllCount);

    jPanelCountFilter.add(jPanel12);

    jPanel13.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupCountFilter.add(jRadioButtonFirst);
    jRadioButtonFirst.setText("First");
    jRadioButtonFirst.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonFirst.setPreferredSize(null);
    jRadioButtonFirst.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonFirstActionPerformed(evt);
        }
    });
    jPanel13.add(jRadioButtonFirst);

    jPanelCountFilter.add(jPanel13);

    jPanel14.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupCountFilter.add(jRadioButtonSecond);
    jRadioButtonSecond.setText("Second");
    jRadioButtonSecond.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonSecond.setPreferredSize(null);
    jRadioButtonSecond.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonSecondActionPerformed(evt);
        }
    });
    jPanel14.add(jRadioButtonSecond);

    jPanelCountFilter.add(jPanel14);

    jPanel15.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupCountFilter.add(jRadioButtonThird);
    jRadioButtonThird.setText("Third");
    jRadioButtonThird.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonThird.setPreferredSize(null);
    jRadioButtonThird.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonThirdActionPerformed(evt);
        }
    });
    jPanel15.add(jRadioButtonThird);

    jPanelCountFilter.add(jPanel15);

    jPanel16.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 2));

    buttonGroupCountFilter.add(jRadioButtonLast);
    jRadioButtonLast.setText("Last");
    jRadioButtonLast.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRadioButtonLast.setPreferredSize(null);
    jRadioButtonLast.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButtonLastActionPerformed(evt);
        }
    });
    jPanel16.add(jRadioButtonLast);

    jPanelCountFilter.add(jPanel16);

    jPanel1.add(jPanelCountFilter);

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

    add(jPanel1, java.awt.BorderLayout.WEST);

    jSplitPane.setBorder(null);
    jSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

    jScrollPaneTop.setBorder(null);

    jTable.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" }));
    jTable.setName("Categories"); // NOI18N
    jTable.getTableHeader().setReorderingAllowed(false);
    jScrollPaneTop.setViewportView(jTable);

    jSplitPane.setTopComponent(jScrollPaneTop);

    jScrollPaneBottom.setBorder(null);
    jSplitPane.setBottomComponent(jScrollPaneBottom);

    add(jSplitPane, java.awt.BorderLayout.CENTER);
}