Example usage for com.jgoodies.forms.layout Sizes dluX

List of usage examples for com.jgoodies.forms.layout Sizes dluX

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout Sizes dluX.

Prototype

public static ConstantSize dluX(int value) 

Source Link

Document

Creates and returns a ConstantSize for the specified value in horizontal dialog units.

Usage

From source file:org.antlr.works.debugger.remote.DBRemoteConnectDialog.java

License:BSD License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - ANTLR (www.antlr.org)
    dialogPane = new JPanel();
    contentPane = new JPanel();
    label1 = new JLabel();
    addressField = new JTextField();
    label2 = new JLabel();
    portField = new JTextField();
    buttonBar = new JPanel();
    connectButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle("Connect to Remote Parser");
    setResizable(false);//from  www  .j  a  v a  2 s . com
    Container contentPane2 = getContentPane();
    contentPane2.setLayout(new BorderLayout());

    //======== dialogPane ========
    {
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPane ========
        {
            contentPane.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(120)) },
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC }));

            //---- label1 ----
            label1.setText("Address:");
            label1.setHorizontalAlignment(SwingConstants.RIGHT);
            contentPane.add(label1, cc.xy(1, 1));

            //---- addressField ----
            addressField.setText("localhost");
            contentPane.add(addressField, cc.xy(3, 1));

            //---- label2 ----
            label2.setText("Port:");
            label2.setHorizontalAlignment(SwingConstants.RIGHT);
            contentPane.add(label2, cc.xy(1, 3));

            //---- portField ----
            portField.setText("2005");
            contentPane.add(portField, cc.xy(3, 3));
        }
        dialogPane.add(contentPane, BorderLayout.CENTER);

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

            //---- connectButton ----
            connectButton.setText("Connect");
            buttonBar.add(connectButton, cc.xy(2, 1));

            //---- cancelButton ----
            cancelButton.setText("Cancel");
            buttonBar.add(cancelButton, cc.xy(4, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane2.add(dialogPane, BorderLayout.CENTER);
    pack();
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.antlr.works.dialog.AWPrefsDialog.java

License:BSD License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - ANTLR (www.antlr.org)
    dialogPane = new JPanel();
    contentPane = new JPanel();
    tabbedPane1 = new JTabbedPane();
    tabGeneral = new JPanel();
    label2 = new JLabel();
    label5 = new JLabel();
    lafCombo = new JComboBox();
    startupActionCombo = new JComboBox();
    restoreWindowsBoundButton = new JCheckBox();
    desktopModeButton = new JCheckBox();
    label25 = new JLabel();
    outputPathField = new JTextField();
    browseOutputPathButton = new JButton();
    label24 = new JLabel();
    dotToolPathField = new JTextField();
    browseDotToolPathButton = new JButton();
    label37 = new JLabel();
    antlr3OptionsField = new JTextField();
    tabEditor = new JPanel();
    label3 = new JLabel();
    editorFontCombo = new JComboBox();
    editorFontSizeSpinner = new JSpinner();
    autoSaveButton = new JCheckBox();
    autoSaveDelayField = new JTextField();
    label11 = new JLabel();
    backupFileButton = new JCheckBox();
    highlightCursorLineButton = new JCheckBox();
    smoothScrollingButton = new JCheckBox();
    autoIndentColonInRuleButton = new JCheckBox();
    showLineNumbers = new JCheckBox();
    vstyleAutocompletionButton = new JCheckBox();
    label1 = new JLabel();
    tabWidthField = new JTextField();
    label22 = new JLabel();
    parserDelayField = new JTextField();
    label23 = new JLabel();
    tabSyntax = new JPanel();
    label26 = new JLabel();
    parserColorPanel = new JPanel();
    parserBoldButton = new JCheckBox();
    parserItalicButton = new JCheckBox();
    label27 = new JLabel();
    lexerColorPanel = new JPanel();
    lexerBoldButton = new JCheckBox();
    lexerItalicButton = new JCheckBox();
    label28 = new JLabel();
    labelColorPanel = new JPanel();
    labelsBoldButton = new JCheckBox();
    labelsItalicButton = new JCheckBox();
    label29 = new JLabel();
    refsActionColorPanel = new JPanel();
    refsActionBoldButton = new JCheckBox();
    refsActionItalicButton = new JCheckBox();
    label38 = new JLabel();
    blockLabelsColorPanel = new JPanel();
    blockLabelsBoldButton = new JCheckBox();
    blockLabelsItalicButton = new JCheckBox();
    label30 = new JLabel();
    commentsColorPanel = new JPanel();
    commentsBoldButton = new JCheckBox();
    commentsItalicButton = new JCheckBox();
    label31 = new JLabel();
    stringsColorPanel = new JPanel();
    stringsBoldButton = new JCheckBox();
    stringsItalicButton = new JCheckBox();
    label32 = new JLabel();
    keywordsColorPanel = new JPanel();
    keywordsBoldButton = new JCheckBox();
    keywordsItalicButton = new JCheckBox();
    syntaxDefaultButton = new JButton();
    tabCompiler = new JPanel();
    jikesRadio = new JRadioButton();
    integratedRadio = new JRadioButton();
    javacRadio = new JRadioButton();
    javacCustomPathButton = new JCheckBox();
    javacPathField = new JTextField();
    browseJavacPath = new JButton();
    label4 = new JLabel();
    jikesPathField = new JTextField();
    browseJikesPath = new JButton();
    label9 = new JLabel();
    classpathSystemButton = new JCheckBox();
    classpathCustomButton = new JCheckBox();
    customClasspathField = new JTextField();
    browseCustomClassPathButton = new JButton();
    tabDebugger = new JPanel();
    label33 = new JLabel();
    debugDefaultLocalPortField = new JTextField();
    label34 = new JLabel();
    debugLaunchTimeoutField = new JTextField();
    label35 = new JLabel();
    label12 = new JLabel();
    debugNonConsumedColorPanel = new JPanel();
    label13 = new JLabel();
    debugConsumedColorPanel = new JPanel();
    label14 = new JLabel();
    debugHiddenColorPanel = new JPanel();
    label15 = new JLabel();
    debugDeadColorPanel = new JPanel();
    label16 = new JLabel();
    debugLTColorPanel = new JPanel();
    label36 = new JLabel();
    detachablePanelChildrenButton = new JCheckBox();
    askGenButton = new JCheckBox();
    panel1 = new JPanel();
    label8 = new JLabel();
    checkGrammarSuccessButton = new JCheckBox();
    generateCodeSuccessButton = new JCheckBox();
    fileModifiedOnDiskButton = new JCheckBox();
    interpreterLimitationButton = new JCheckBox();
    label6 = new JLabel();
    clearConsoleBeforeCheckButton = new JCheckBox();
    tabUpdates = new JPanel();
    label7 = new JLabel();
    updateTypeCombo = new JComboBox();
    checkForUpdatesButton = new JButton();
    label10 = new JLabel();
    downloadPathField = new JTextField();
    browseUpdateDownloadPathButton = new JButton();
    tabTestRig = new JPanel();
    label17 = new JLabel();
    testRigLanguageComboBox = new JComboBox();
    testRigDefaultRadio = new JRadioButton();
    testRigTextRadio = new JRadioButton();
    scrollPane1 = new JScrollPane();
    testTextArea = new JTextPane();
    buttonBar = new JPanel();
    applyButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle("Preferences");
    Container contentPane2 = getContentPane();
    contentPane2.setLayout(new BorderLayout());

    //======== dialogPane ========
    {//from  w w w.  j a  v  a2  s .c om
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setMinimumSize(new Dimension(540, 350));
        dialogPane.setLayout(new BorderLayout());

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

            //======== tabbedPane1 ========
            {

                //======== tabGeneral ========
                {
                    tabGeneral.setLayout(new FormLayout(
                            new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(min;20dlu)"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(min;40dlu)"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                            new RowSpec[] { new RowSpec(Sizes.dluY(10)), 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 }));

                    //---- label2 ----
                    label2.setText("At startup:");
                    tabGeneral.add(label2, cc.xy(3, 3));

                    //---- label5 ----
                    label5.setText("Look and feel:");
                    tabGeneral.add(label5, cc.xy(3, 7));
                    tabGeneral.add(lafCombo, cc.xywh(5, 7, 3, 1));

                    //---- startupActionCombo ----
                    startupActionCombo.setModel(new DefaultComboBoxModel(new String[] { "Create a new document",
                            "Open the last opened document", "Open the last saved document",
                            "Open all opened documents when ANTLRWorks was closed" }));
                    tabGeneral.add(startupActionCombo, cc.xywh(5, 3, 3, 1));

                    //---- restoreWindowsBoundButton ----
                    restoreWindowsBoundButton.setText("Restore project's windows position and size");
                    tabGeneral.add(restoreWindowsBoundButton, cc.xywh(5, 5, 3, 1));

                    //---- desktopModeButton ----
                    desktopModeButton.setText("Desktop Mode");
                    desktopModeButton
                            .setToolTipText("This option will take effect after restarting ANTLRWorks");
                    tabGeneral.add(desktopModeButton, cc.xywh(5, 9, 3, 1));

                    //---- label25 ----
                    label25.setText("Output path:");
                    tabGeneral.add(label25, cc.xy(3, 11));

                    //---- outputPathField ----
                    outputPathField.setToolTipText(
                            "Relative path will be generated in the same directory as the grammar itself");
                    tabGeneral.add(outputPathField, cc.xywh(5, 11, 3, 1));

                    //---- browseOutputPathButton ----
                    browseOutputPathButton.setText("Browse...");
                    tabGeneral.add(browseOutputPathButton, cc.xy(9, 11));

                    //---- label24 ----
                    label24.setText("DOT path:");
                    tabGeneral.add(label24, cc.xy(3, 13));

                    //---- dotToolPathField ----
                    dotToolPathField.setToolTipText("Absolute path to the DOT command-line tool");
                    tabGeneral.add(dotToolPathField, cc.xywh(5, 13, 3, 1));

                    //---- browseDotToolPathButton ----
                    browseDotToolPathButton.setText("Browse...");
                    tabGeneral.add(browseDotToolPathButton, cc.xy(9, 13));

                    //---- label37 ----
                    label37.setText("ANTLR options:");
                    tabGeneral.add(label37, cc.xy(3, 15));
                    tabGeneral.add(antlr3OptionsField, cc.xywh(5, 15, 3, 1));
                }
                tabbedPane1.addTab("General", tabGeneral);

                //======== tabEditor ========
                {
                    tabEditor.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;45dlu)"),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                            new RowSpec[] { new RowSpec(Sizes.dluY(10)), 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, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(10)) }));

                    //---- label3 ----
                    label3.setText("Font:");
                    tabEditor.add(label3, cc.xy(3, 3));

                    //---- editorFontCombo ----
                    editorFontCombo.setActionCommand("editorFontCombo");
                    tabEditor.add(editorFontCombo, cc.xywh(5, 3, 5, 1));

                    //---- editorFontSizeSpinner ----
                    editorFontSizeSpinner.setModel(new SpinnerNumberModel(12, 8, null, 1));
                    tabEditor.add(editorFontSizeSpinner, cc.xy(11, 3));

                    //---- autoSaveButton ----
                    autoSaveButton.setText("Auto-save every");
                    tabEditor.add(autoSaveButton, cc.xywh(5, 5, 3, 1));
                    tabEditor.add(autoSaveDelayField, cc.xy(9, 5));

                    //---- label11 ----
                    label11.setText("minutes");
                    tabEditor.add(label11, cc.xy(11, 5));

                    //---- backupFileButton ----
                    backupFileButton.setText("Create backup file");
                    tabEditor.add(backupFileButton, cc.xywh(5, 7, 5, 1));

                    //---- highlightCursorLineButton ----
                    highlightCursorLineButton.setText("Highlight cursor line");
                    tabEditor.add(highlightCursorLineButton, cc.xywh(5, 9, 5, 1));

                    //---- smoothScrollingButton ----
                    smoothScrollingButton.setText("Smooth scrolling");
                    tabEditor.add(smoothScrollingButton, cc.xywh(5, 11, 3, 1));

                    //---- autoIndentColonInRuleButton ----
                    autoIndentColonInRuleButton.setText("Auto-indent ':' in rule");
                    tabEditor.add(autoIndentColonInRuleButton, cc.xywh(5, 13, 7, 1));

                    //---- showLineNumbers ----
                    showLineNumbers.setText("Show line numbers");
                    tabEditor.add(showLineNumbers, cc.xywh(5, 15, 5, 1));

                    //---- vstyleAutocompletionButton ----
                    vstyleAutocompletionButton.setText("Visual Studio auto-completion menu");
                    vstyleAutocompletionButton.setToolTipText(
                            "Displayed when a space is pressed, remember previous auto-completed word, continues to auto-complete without decreasing the word choice as you type");
                    tabEditor.add(vstyleAutocompletionButton, cc.xywh(5, 17, 9, 1));

                    //---- label1 ----
                    label1.setText("Tab width:");
                    label1.setHorizontalAlignment(SwingConstants.RIGHT);
                    tabEditor.add(label1, cc.xy(3, 19));

                    //---- tabWidthField ----
                    tabWidthField.setText("8");
                    tabEditor.add(tabWidthField, cc.xy(5, 19));

                    //---- label22 ----
                    label22.setText("Update delay:");
                    tabEditor.add(label22, cc.xy(3, 21));

                    //---- parserDelayField ----
                    parserDelayField.setText("250");
                    tabEditor.add(parserDelayField, cc.xy(5, 21));

                    //---- label23 ----
                    label23.setText("ms");
                    tabEditor.add(label23, cc.xy(7, 21));
                }
                tabbedPane1.addTab("Editor", tabEditor);

                //======== tabSyntax ========
                {
                    tabSyntax.setLayout(new FormLayout(
                            new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW),
                                    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.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            new RowSpec[] { new RowSpec(Sizes.dluY(10)), 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, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC }));

                    //---- label26 ----
                    label26.setText("Parser References:");
                    tabSyntax.add(label26, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                    //======== parserColorPanel ========
                    {
                        parserColorPanel.setForeground(Color.black);
                        parserColorPanel.setPreferredSize(new Dimension(70, 20));
                        parserColorPanel.setBackground(new Color(255, 255, 51));
                        parserColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        parserColorPanel.setLayout(new FlowLayout());
                    }
                    tabSyntax.add(parserColorPanel, cc.xy(5, 3));

                    //---- parserBoldButton ----
                    parserBoldButton.setText("Bold");
                    parserBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13));
                    tabSyntax.add(parserBoldButton, cc.xy(7, 3));

                    //---- parserItalicButton ----
                    parserItalicButton.setText("Italic");
                    parserItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13));
                    tabSyntax.add(parserItalicButton, cc.xy(9, 3));

                    //---- label27 ----
                    label27.setText("Lexer References:");
                    tabSyntax.add(label27, cc.xy(3, 5));

                    //======== lexerColorPanel ========
                    {
                        lexerColorPanel.setForeground(Color.black);
                        lexerColorPanel.setPreferredSize(new Dimension(70, 20));
                        lexerColorPanel.setBackground(new Color(255, 255, 51));
                        lexerColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        lexerColorPanel.setLayout(new FlowLayout());
                    }
                    tabSyntax.add(lexerColorPanel, cc.xy(5, 5));

                    //---- lexerBoldButton ----
                    lexerBoldButton.setText("Bold");
                    lexerBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13));
                    tabSyntax.add(lexerBoldButton, cc.xy(7, 5));

                    //---- lexerItalicButton ----
                    lexerItalicButton.setText("Italic");
                    lexerItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13));
                    tabSyntax.add(lexerItalicButton, cc.xy(9, 5));

                    //---- label28 ----
                    label28.setText("Labels:");
                    tabSyntax.add(label28, cc.xy(3, 7));

                    //======== labelColorPanel ========
                    {
                        labelColorPanel.setForeground(Color.black);
                        labelColorPanel.setPreferredSize(new Dimension(70, 20));
                        labelColorPanel.setBackground(new Color(255, 255, 51));
                        labelColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        labelColorPanel.setLayout(new FlowLayout());
                    }
                    tabSyntax.add(labelColorPanel, cc.xy(5, 7));

                    //---- labelsBoldButton ----
                    labelsBoldButton.setText("Bold");
                    labelsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13));
                    tabSyntax.add(labelsBoldButton, cc.xy(7, 7));

                    //---- labelsItalicButton ----
                    labelsItalicButton.setText("Italic");
                    labelsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13));
                    tabSyntax.add(labelsItalicButton, cc.xy(9, 7));

                    //---- label29 ----
                    label29.setText("References in action:");
                    tabSyntax.add(label29, cc.xy(3, 9));

                    //======== refsActionColorPanel ========
                    {
                        refsActionColorPanel.setForeground(Color.black);
                        refsActionColorPanel.setPreferredSize(new Dimension(70, 20));
                        refsActionColorPanel.setBackground(new Color(255, 255, 51));
                        refsActionColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        refsActionColorPanel.setLayout(new FlowLayout());
                    }
                    tabSyntax.add(refsActionColorPanel, cc.xy(5, 9));

                    //---- refsActionBoldButton ----
                    refsActionBoldButton.setText("Bold");
                    refsActionBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13));
                    tabSyntax.add(refsActionBoldButton, cc.xy(7, 9));

                    //---- refsActionItalicButton ----
                    refsActionItalicButton.setText("Italic");
                    refsActionItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13));
                    tabSyntax.add(refsActionItalicButton, cc.xy(9, 9));

                    //---- label38 ----
                    label38.setText("Blocks:");
                    tabSyntax.add(label38, cc.xy(3, 11));

                    //======== blockLabelsColorPanel ========
                    {
                        blockLabelsColorPanel.setForeground(Color.black);
                        blockLabelsColorPanel.setPreferredSize(new Dimension(70, 20));
                        blockLabelsColorPanel.setBackground(new Color(255, 255, 51));
                        blockLabelsColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        blockLabelsColorPanel.setLayout(new FlowLayout());
                    }
                    tabSyntax.add(blockLabelsColorPanel, cc.xy(5, 11));

                    //---- blockLabelsBoldButton ----
                    blockLabelsBoldButton.setText("Bold");
                    blockLabelsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13));
                    tabSyntax.add(blockLabelsBoldButton, cc.xy(7, 11));

                    //---- blockLabelsItalicButton ----
                    blockLabelsItalicButton.setText("Italic");
                    blockLabelsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13));
                    tabSyntax.add(blockLabelsItalicButton, cc.xy(9, 11));

                    //---- label30 ----
                    label30.setText("Comments:");
                    tabSyntax.add(label30, cc.xy(3, 13));

                    //======== commentsColorPanel ========
                    {
                        commentsColorPanel.setForeground(Color.black);
                        commentsColorPanel.setPreferredSize(new Dimension(70, 20));
                        commentsColorPanel.setBackground(new Color(255, 255, 51));
                        commentsColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        commentsColorPanel.setLayout(new FlowLayout());
                    }
                    tabSyntax.add(commentsColorPanel, cc.xy(5, 13));

                    //---- commentsBoldButton ----
                    commentsBoldButton.setText("Bold");
                    commentsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13));
                    tabSyntax.add(commentsBoldButton, cc.xy(7, 13));

                    //---- commentsItalicButton ----
                    commentsItalicButton.setText("Italic");
                    commentsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13));
                    tabSyntax.add(commentsItalicButton, cc.xy(9, 13));

                    //---- label31 ----
                    label31.setText("Strings:");
                    tabSyntax.add(label31, cc.xy(3, 15));

                    //======== stringsColorPanel ========
                    {
                        stringsColorPanel.setForeground(Color.black);
                        stringsColorPanel.setPreferredSize(new Dimension(70, 20));
                        stringsColorPanel.setBackground(new Color(255, 255, 51));
                        stringsColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        stringsColorPanel.setLayout(new FlowLayout());
                    }
                    tabSyntax.add(stringsColorPanel, cc.xy(5, 15));

                    //---- stringsBoldButton ----
                    stringsBoldButton.setText("Bold");
                    stringsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13));
                    tabSyntax.add(stringsBoldButton, cc.xy(7, 15));

                    //---- stringsItalicButton ----
                    stringsItalicButton.setText("Italic");
                    stringsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13));
                    tabSyntax.add(stringsItalicButton, cc.xy(9, 15));

                    //---- label32 ----
                    label32.setText("Keywords:");
                    tabSyntax.add(label32, cc.xy(3, 17));

                    //======== keywordsColorPanel ========
                    {
                        keywordsColorPanel.setForeground(Color.black);
                        keywordsColorPanel.setPreferredSize(new Dimension(70, 20));
                        keywordsColorPanel.setBackground(new Color(255, 255, 51));
                        keywordsColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        keywordsColorPanel.setLayout(new FlowLayout());
                    }
                    tabSyntax.add(keywordsColorPanel, cc.xy(5, 17));

                    //---- keywordsBoldButton ----
                    keywordsBoldButton.setText("Bold");
                    keywordsBoldButton.setFont(new Font("Lucida Grande", Font.BOLD, 13));
                    tabSyntax.add(keywordsBoldButton, cc.xy(7, 17));

                    //---- keywordsItalicButton ----
                    keywordsItalicButton.setText("Italic");
                    keywordsItalicButton.setFont(new Font("Lucida Grande", Font.ITALIC, 13));
                    tabSyntax.add(keywordsItalicButton, cc.xy(9, 17));

                    //---- syntaxDefaultButton ----
                    syntaxDefaultButton.setText("Default");
                    tabSyntax.add(syntaxDefaultButton, cc.xy(13, 19));
                }
                tabbedPane1.addTab("Syntax", tabSyntax);

                //======== tabCompiler ========
                {
                    tabCompiler
                            .setLayout(new FormLayout(
                                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            FormFactory.DEFAULT_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW),
                                            FormFactory.DEFAULT_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                                    new RowSpec[] { new RowSpec(Sizes.dluY(10)), 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,
                                            new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC }));

                    //---- jikesRadio ----
                    jikesRadio.setText("jikes");
                    tabCompiler.add(jikesRadio, cc.xywh(3, 7, 2, 1));

                    //---- integratedRadio ----
                    integratedRadio.setText("com.sun.tools.javac");
                    integratedRadio.setActionCommand("integrated");
                    tabCompiler.add(integratedRadio, cc.xywh(3, 11, 3, 1));

                    //---- javacRadio ----
                    javacRadio.setText("javac");
                    javacRadio.setSelected(true);
                    tabCompiler.add(javacRadio, cc.xywh(3, 3, 2, 1));

                    //---- javacCustomPathButton ----
                    javacCustomPathButton.setText("Path:");
                    javacCustomPathButton.setToolTipText(
                            "Check to specify a custom path if the default system path doesn't include javac");
                    tabCompiler.add(javacCustomPathButton,
                            cc.xywh(4, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                    tabCompiler.add(javacPathField, cc.xy(5, 5));

                    //---- browseJavacPath ----
                    browseJavacPath.setText("Browse...");
                    tabCompiler.add(browseJavacPath, cc.xy(6, 5));

                    //---- label4 ----
                    label4.setText("Path:");
                    tabCompiler.add(label4,
                            cc.xywh(4, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                    tabCompiler.add(jikesPathField, cc.xy(5, 9));

                    //---- browseJikesPath ----
                    browseJikesPath.setText("Browse...");
                    tabCompiler.add(browseJikesPath, cc.xy(6, 9));

                    //---- label9 ----
                    label9.setText("Classpath:");
                    tabCompiler.add(label9, cc.xy(3, 15));

                    //---- classpathSystemButton ----
                    classpathSystemButton.setText("System");
                    tabCompiler.add(classpathSystemButton, cc.xy(4, 15));

                    //---- classpathCustomButton ----
                    classpathCustomButton.setText("Custom:");
                    tabCompiler.add(classpathCustomButton, cc.xy(4, 17));
                    tabCompiler.add(customClasspathField, cc.xy(5, 17));

                    //---- browseCustomClassPathButton ----
                    browseCustomClassPathButton.setText("Browse...");
                    tabCompiler.add(browseCustomClassPathButton, cc.xy(6, 17));
                }
                tabbedPane1.addTab("Compiler", tabCompiler);

                //======== tabDebugger ========
                {
                    tabDebugger.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;20dlu)"),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                            new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(10)), 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 }));

                    //---- label33 ----
                    label33.setText("Default local port:");
                    tabDebugger.add(label33, cc.xy(3, 3));

                    //---- debugDefaultLocalPortField ----
                    debugDefaultLocalPortField.setText("491000");
                    tabDebugger.add(debugDefaultLocalPortField, cc.xy(5, 3));

                    //---- label34 ----
                    label34.setText("Remote parser launch time-out:");
                    tabDebugger.add(label34, cc.xy(9, 3));

                    //---- debugLaunchTimeoutField ----
                    debugLaunchTimeoutField.setText("5");
                    tabDebugger.add(debugLaunchTimeoutField, cc.xy(11, 3));

                    //---- label35 ----
                    label35.setText("seconds");
                    tabDebugger.add(label35, cc.xy(13, 3));

                    //---- label12 ----
                    label12.setText("Non-consumed token:");
                    label12.setHorizontalAlignment(SwingConstants.RIGHT);
                    tabDebugger.add(label12, cc.xy(3, 7));

                    //======== debugNonConsumedColorPanel ========
                    {
                        debugNonConsumedColorPanel.setForeground(Color.black);
                        debugNonConsumedColorPanel.setPreferredSize(new Dimension(70, 20));
                        debugNonConsumedColorPanel.setBackground(new Color(255, 255, 51));
                        debugNonConsumedColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        debugNonConsumedColorPanel.setLayout(new FlowLayout());
                    }
                    tabDebugger.add(debugNonConsumedColorPanel, cc.xy(5, 7));

                    //---- label13 ----
                    label13.setText("Consumed token:");
                    label13.setHorizontalAlignment(SwingConstants.RIGHT);
                    tabDebugger.add(label13, cc.xy(3, 9));

                    //======== debugConsumedColorPanel ========
                    {
                        debugConsumedColorPanel.setForeground(Color.black);
                        debugConsumedColorPanel.setPreferredSize(new Dimension(70, 20));
                        debugConsumedColorPanel.setBackground(new Color(255, 255, 51));
                        debugConsumedColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        debugConsumedColorPanel.setLayout(new FlowLayout());
                    }
                    tabDebugger.add(debugConsumedColorPanel, cc.xy(5, 9));

                    //---- label14 ----
                    label14.setText("Hidden token:");
                    label14.setHorizontalAlignment(SwingConstants.RIGHT);
                    tabDebugger.add(label14, cc.xy(3, 11));

                    //======== debugHiddenColorPanel ========
                    {
                        debugHiddenColorPanel.setForeground(Color.black);
                        debugHiddenColorPanel.setPreferredSize(new Dimension(70, 20));
                        debugHiddenColorPanel.setBackground(new Color(255, 255, 51));
                        debugHiddenColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        debugHiddenColorPanel.setLayout(new FlowLayout());
                    }
                    tabDebugger.add(debugHiddenColorPanel, cc.xy(5, 11));

                    //---- label15 ----
                    label15.setText("Dead token:");
                    label15.setHorizontalAlignment(SwingConstants.RIGHT);
                    tabDebugger.add(label15, cc.xy(3, 13));

                    //======== debugDeadColorPanel ========
                    {
                        debugDeadColorPanel.setForeground(Color.black);
                        debugDeadColorPanel.setPreferredSize(new Dimension(70, 20));
                        debugDeadColorPanel.setBackground(new Color(255, 255, 51));
                        debugDeadColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        debugDeadColorPanel.setLayout(new FlowLayout());
                    }
                    tabDebugger.add(debugDeadColorPanel, cc.xy(5, 13));

                    //---- label16 ----
                    label16.setText("Lookahead token:");
                    label16.setHorizontalAlignment(SwingConstants.RIGHT);
                    tabDebugger.add(label16, cc.xy(3, 15));

                    //======== debugLTColorPanel ========
                    {
                        debugLTColorPanel.setForeground(Color.black);
                        debugLTColorPanel.setPreferredSize(new Dimension(70, 20));
                        debugLTColorPanel.setBackground(new Color(255, 255, 51));
                        debugLTColorPanel.setBorder(LineBorder.createBlackLineBorder());
                        debugLTColorPanel.setLayout(new FlowLayout());
                    }
                    tabDebugger.add(debugLTColorPanel, cc.xy(5, 15));

                    //---- label36 ----
                    label36.setText("Detachable panels:");
                    tabDebugger.add(label36, cc.xy(3, 19));

                    //---- detachablePanelChildrenButton ----
                    detachablePanelChildrenButton.setText("Children of project's window");
                    tabDebugger.add(detachablePanelChildrenButton, cc.xywh(5, 19, 5, 1));

                    //---- askGenButton ----
                    askGenButton.setText("Ask before generating and compiling");
                    tabDebugger.add(askGenButton, cc.xywh(5, 21, 5, 1));
                }
                tabbedPane1.addTab("Debugger", tabDebugger);

                //======== panel1 ========
                {
                    panel1.setLayout(new FormLayout(
                            new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            new RowSpec[] { new RowSpec(Sizes.dluY(10)), 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 }));

                    //---- label8 ----
                    label8.setText("Display alerts:");
                    panel1.add(label8, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                    //---- checkGrammarSuccessButton ----
                    checkGrammarSuccessButton.setText("Successfull check grammar");
                    panel1.add(checkGrammarSuccessButton, cc.xy(5, 3));

                    //---- generateCodeSuccessButton ----
                    generateCodeSuccessButton.setText("Successfull code generation");
                    panel1.add(generateCodeSuccessButton, cc.xy(5, 5));

                    //---- fileModifiedOnDiskButton ----
                    fileModifiedOnDiskButton.setText("File modified on disk");
                    panel1.add(fileModifiedOnDiskButton, cc.xy(5, 7));

                    //---- interpreterLimitationButton ----
                    interpreterLimitationButton.setText("Interpreter limitations");
                    panel1.add(interpreterLimitationButton, cc.xy(5, 9));

                    //---- label6 ----
                    label6.setText("Console:");
                    panel1.add(label6, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                    //---- clearConsoleBeforeCheckButton ----
                    clearConsoleBeforeCheckButton.setText("Clear before checking grammar");
                    panel1.add(clearConsoleBeforeCheckButton, cc.xy(5, 11));
                }
                tabbedPane1.addTab("Advanced", panel1);

                //======== tabUpdates ========
                {
                    tabUpdates.setLayout(new FormLayout(
                            new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                    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, new ColumnSpec(Sizes.dluX(10)) },
                            new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC }));

                    //---- label7 ----
                    label7.setText("Check for ANTLRWorks updates:");
                    label7.setHorizontalAlignment(SwingConstants.LEFT);
                    tabUpdates.add(label7, cc.xy(3, 3));

                    //---- updateTypeCombo ----
                    updateTypeCombo.setModel(new DefaultComboBoxModel(
                            new String[] { "Manually", "At startup", "Daily", "Weekly" }));
                    tabUpdates.add(updateTypeCombo, cc.xywh(3, 5, 4, 1));

                    //---- checkForUpdatesButton ----
                    checkForUpdatesButton.setText("Check Now");
                    tabUpdates.add(checkForUpdatesButton, cc.xy(7, 5));

                    //---- label10 ----
                    label10.setText("Download path:");
                    label10.setHorizontalAlignment(SwingConstants.LEFT);
                    tabUpdates.add(label10, cc.xy(3, 9));
                    tabUpdates.add(downloadPathField, cc.xywh(3, 11, 3, 1));

                    //---- browseUpdateDownloadPathButton ----
                    browseUpdateDownloadPathButton.setText("Browse...");
                    browseUpdateDownloadPathButton.setActionCommand("Browse");
                    tabUpdates.add(browseUpdateDownloadPathButton, cc.xy(7, 11));
                }
                tabbedPane1.addTab("Updates", tabUpdates);

                //======== tabTestRig ========
                {
                    tabTestRig.setLayout(new FormLayout(
                            new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                                    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.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                            new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));

                    //---- label17 ----
                    label17.setText("Test Rig for:");
                    tabTestRig.add(label17,
                            cc.xywh(3, 3, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                    //---- testRigLanguageComboBox ----
                    testRigLanguageComboBox
                            .setModel(new DefaultComboBoxModel(new String[] { "Java", "Python" }));
                    tabTestRig.add(testRigLanguageComboBox, cc.xy(7, 3));

                    //---- testRigDefaultRadio ----
                    testRigDefaultRadio.setText("Use default Test Rig Template");
                    testRigDefaultRadio.setSelected(true);
                    tabTestRig.add(testRigDefaultRadio, cc.xywh(5, 5, 5, 1));

                    //---- testRigTextRadio ----
                    testRigTextRadio.setText("Text:");
                    tabTestRig.add(testRigTextRadio,
                            cc.xywh(5, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

                    //======== scrollPane1 ========
                    {
                        scrollPane1.setViewportView(testTextArea);
                    }
                    tabTestRig.add(scrollPane1, cc.xywh(7, 7, 3, 1));
                }
                tabbedPane1.addTab("Test Rig", tabTestRig);

            }
            contentPane.add(tabbedPane1, cc.xywh(1, 1, 2, 1));
        }
        dialogPane.add(contentPane, BorderLayout.CENTER);

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

            //---- applyButton ----
            applyButton.setText("Apply");
            buttonBar.add(applyButton, cc.xy(2, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane2.add(dialogPane, BorderLayout.CENTER);
    pack();
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.antlr.works.dialog.DialogAbout.java

License:BSD License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - ANTLR (www.antlr.org)
    appIconButton = new JButton();
    descriptionLabel = new JLabel();
    titleLabel = new JLabel();
    versionLabel = new JLabel();
    copyrightLabel = new JLabel();
    tabbedPane1 = new JTabbedPane();
    panel2 = new JPanel();
    acknowledgeTextArea = new JTextArea();
    panel1 = new JPanel();
    scrollPane1 = new JScrollPane();
    infoTable = new JTable();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setResizable(false);/*from  w ww.  jav  a  2 s  .  com*/
    setTitle("About");
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
            new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(RowSpec.BOTTOM, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec("top:max(default;15dlu)"), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec("bottom:max(default;10dlu)"), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec("top:max(default;10dlu)"), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec("fill:max(default;60dlu):grow"), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(Sizes.dluY(10)) }));

    //---- appIconButton ----
    appIconButton.setIcon(null);
    appIconButton.setBorderPainted(false);
    appIconButton.setContentAreaFilled(false);
    appIconButton.setDefaultCapable(false);
    appIconButton.setEnabled(true);
    appIconButton.setFocusable(false);
    appIconButton.setFocusPainted(false);
    appIconButton.setPreferredSize(new Dimension(124, 144));
    appIconButton.setMaximumSize(new Dimension(136, 144));
    appIconButton.setMinimumSize(new Dimension(136, 144));
    contentPane.add(appIconButton, cc.xywh(3, 3, 1, 8));

    //---- descriptionLabel ----
    descriptionLabel
            .setText("A graphical development environment for developing and debugging ANTLR v3 grammars");
    descriptionLabel.setHorizontalAlignment(SwingConstants.LEFT);
    descriptionLabel.setHorizontalTextPosition(SwingConstants.LEFT);
    descriptionLabel.setVerticalTextPosition(SwingConstants.TOP);
    descriptionLabel.setVerticalAlignment(SwingConstants.TOP);
    contentPane.add(descriptionLabel, cc.xywh(5, 7, 1, 2));

    //---- titleLabel ----
    titleLabel.setText("ANTLRWorks");
    titleLabel.setFont(new Font("Lucida Grande", Font.BOLD, 36));
    contentPane.add(titleLabel, cc.xy(5, 3));

    //---- versionLabel ----
    versionLabel.setText("Version 1.0 early access 1");
    contentPane.add(versionLabel, cc.xy(5, 5));

    //---- copyrightLabel ----
    copyrightLabel.setText("Copyright (c) 2005 Jean Bovet & Terence Parr");
    contentPane.add(copyrightLabel, cc.xy(5, 9));

    //======== tabbedPane1 ========
    {

        //======== panel2 ========
        {
            panel2.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));

            //---- acknowledgeTextArea ----
            acknowledgeTextArea.setText(
                    "ANTLR and StringTemplate are (c) 1989-2005 Terence Parr\nXJLibrary is (c) 2004-2005 Jean Bovet\nPortion of the GUI uses JGoodies, (c) 2002-2004 Karsten Lentzsch\nPortion of the GUI was created using JFormDesigner, (c) 2004-2005 Karl Tauber\nBrowserLauncher is (c) 2001 Eric Albert <ejalbert@cs.stanford.edu>\nApplication icon is (c) Matthew McClintock <matthew@mc.clintock.com>\n");
            acknowledgeTextArea.setEditable(false);
            acknowledgeTextArea.setBackground(SystemColor.window);
            panel2.add(acknowledgeTextArea, cc.xy(3, 3));
        }
        tabbedPane1.addTab("Acknowledgment", panel2);

        //======== panel1 ========
        {
            panel1.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.dluY(10), FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));

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

                //---- infoTable ----
                infoTable.setModel(new DefaultTableModel(
                        new Object[][] { { null, null }, { null, null }, { null, null }, { null, null }, },
                        new String[] { "Name", "Version" }) {
                    boolean[] columnEditable = new boolean[] { false, false };

                    @Override
                    public boolean isCellEditable(int rowIndex, int columnIndex) {
                        return columnEditable[columnIndex];
                    }
                });
                infoTable.setShowVerticalLines(true);
                scrollPane1.setViewportView(infoTable);
            }
            panel1.add(scrollPane1, cc.xy(3, 3));
        }
        tabbedPane1.addTab("Information", panel1);

    }
    contentPane.add(tabbedPane1, cc.xywh(3, 11, 3, 1));
    pack();
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.antlr.works.dialog.DialogPersonalInfo.java

License:BSD License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - ANTLR (www.antlr.org)
    dialogPane = new JPanel();
    contentPane = new JPanel();
    iconButton = new JButton();
    label6 = new JLabel();
    textArea1 = new JTextArea();
    whoCombo = new JComboBox();
    label1 = new JLabel();
    sectorCombo = new JComboBox();
    label7 = new JLabel();
    label8 = new JLabel();
    devtoolCombo = new JComboBox();
    languageExperienceSpinner = new JSpinner();
    label2 = new JLabel();
    programmingExperienceSpinner = new JSpinner();
    label3 = new JLabel();
    countryField = new JTextField();
    label4 = new JLabel();
    funField = new JTextField();
    label5 = new JLabel();
    buttonBar = new JPanel();
    cancelButton = new JButton();
    okButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle("ANTLRWorks early access 1");
    Container contentPane2 = getContentPane();
    contentPane2.setLayout(new BorderLayout());

    //======== dialogPane ========
    {/*  www .  j a va2 s.  c  om*/
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setPreferredSize(new Dimension(750, 500));
        dialogPane.setLayout(new BorderLayout());

        //======== contentPane ========
        {
            contentPane.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("max(min;100dlu):grow"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("max(default;30dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC },
                    new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY5),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY5),
                            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,
                            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,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

            //---- iconButton ----
            iconButton.setBorder(null);
            iconButton.setIcon(null);
            iconButton.setEnabled(true);
            iconButton.setFocusable(false);
            iconButton.setFocusPainted(false);
            iconButton.setBorderPainted(false);
            iconButton.setContentAreaFilled(false);
            iconButton.setDefaultCapable(false);
            iconButton.setRequestFocusEnabled(false);
            iconButton.setOpaque(false);
            iconButton.setVerifyInputWhenFocusTarget(false);
            iconButton.setVerticalAlignment(SwingConstants.TOP);
            contentPane.add(iconButton, cc.xywh(1, 1, 1, 37));

            //---- label6 ----
            label6.setText("Welcome to ANTLRWorks!");
            label6.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
            contentPane.add(label6, cc.xywh(3, 1, 5, 1));

            //---- textArea1 ----
            textArea1.setText(
                    "Please take a few seconds to fill out some information about yourself to help us improve our products.  Thank you!");
            textArea1.setEditable(false);
            textArea1.setOpaque(false);
            textArea1.setWrapStyleWord(true);
            textArea1.setLineWrap(true);
            textArea1.setBackground(UIManager.getColor("window"));
            contentPane.add(textArea1, cc.xywh(3, 5, 5, 1));

            //---- whoCombo ----
            whoCombo.setModel(new DefaultComboBoxModel(new String[] { "Professional programmer", "Researcher",
                    "Graduate student", "Undergraduate student", "Professor" }));
            contentPane.add(whoCombo, cc.xywh(3, 11, 3, 1));

            //---- label1 ----
            label1.setText("Who are you?");
            label1.setHorizontalAlignment(SwingConstants.LEFT);
            contentPane.add(label1, cc.xywh(3, 9, 3, 1));

            //---- sectorCombo ----
            sectorCombo.setModel(new DefaultComboBoxModel(
                    new String[] { "Industry", "Government", "Academia", "Military", "Other" }));
            contentPane.add(sectorCombo, cc.xywh(3, 15, 3, 1));

            //---- label7 ----
            label7.setText("What is your sector of activity?");
            label7.setHorizontalAlignment(SwingConstants.LEFT);
            contentPane.add(label7, cc.xywh(3, 13, 3, 1));

            //---- label8 ----
            label8.setText("What is your primary development environment?");
            contentPane.add(label8, cc.xywh(3, 17, 3, 1));

            //---- devtoolCombo ----
            devtoolCombo.setModel(new DefaultComboBoxModel(new String[] { "Eclipse", "IntelliJ",
                    "Microsoft Visual Studio", "Borland JBuilder", "Xcode",
                    "Text Editor (vi, emacs) - hardcore old-school \"I don't need no stinkin' IDE coder\"",
                    "Other" }));
            contentPane.add(devtoolCombo, cc.xywh(3, 19, 3, 1));

            //---- languageExperienceSpinner ----
            languageExperienceSpinner.setModel(new SpinnerNumberModel(0, 0, null, 1));
            contentPane.add(languageExperienceSpinner, cc.xy(3, 23));

            //---- label2 ----
            label2.setText("How many years of experience with language translation/implementation?");
            label2.setHorizontalAlignment(SwingConstants.LEFT);
            contentPane.add(label2, cc.xywh(3, 21, 3, 1));

            //---- programmingExperienceSpinner ----
            programmingExperienceSpinner.setModel(new SpinnerNumberModel(0, 0, null, 1));
            contentPane.add(programmingExperienceSpinner, cc.xy(3, 27));

            //---- label3 ----
            label3.setText("How many years of programming experience?");
            label3.setHorizontalAlignment(SwingConstants.LEFT);
            contentPane.add(label3, cc.xywh(3, 25, 3, 1));
            contentPane.add(countryField, cc.xywh(3, 31, 3, 1));

            //---- label4 ----
            label4.setText("In which country do you currently live?");
            label4.setHorizontalAlignment(SwingConstants.LEFT);
            contentPane.add(label4, cc.xywh(3, 29, 3, 1));
            contentPane.add(funField, cc.xywh(3, 35, 3, 1));

            //---- label5 ----
            label5.setText("What is your preferred caffeinated beverage?");
            label5.setHorizontalAlignment(SwingConstants.LEFT);
            contentPane.add(label5, cc.xywh(3, 33, 3, 1));
        }
        dialogPane.add(contentPane, BorderLayout.CENTER);

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

            //---- cancelButton ----
            cancelButton.setText("Don't Send");
            buttonBar.add(cancelButton, cc.xy(3, 1));

            //---- okButton ----
            okButton.setText("Send");
            buttonBar.add(okButton, cc.xy(4, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane2.add(dialogPane, BorderLayout.CENTER);
    pack();
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.antlr.works.dialog.NewWizardDialog.java

License:BSD License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Ryan Paul Talusan
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    label1 = new JLabel();
    grammarNameField = new JTextField();
    label2 = new JLabel();
    grammarTypeComboBox = new JComboBox();
    lexicalItemPanel = new JPanel();
    lexLeftPanel = new JPanel();
    cbIdentifier = new JCheckBox();
    cbInteger = new JCheckBox();
    cbFloat = new JCheckBox();
    cbComments = new JCheckBox();
    commentsPanel = new JPanel();
    cbSingleLine = new JCheckBox();
    cbMultiLine = new JCheckBox();
    lexRightPanel = new JPanel();
    cbString = new JCheckBox();
    stringPanel = new JPanel();
    singleQuoteRadio = new JRadioButton();
    doubleQuoteRadio = new JRadioButton();
    cbCharacters = new JCheckBox();
    cbWhiteSpace = new JCheckBox();
    wsPanel = new JPanel();
    cbTabChar = new JCheckBox();
    cbNewlineChar = new JCheckBox();
    cbCarriageReturnChar = new JCheckBox();
    buttonBar = new JPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle("New Grammar Wizard");
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

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

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

            //---- label1 ----
            label1.setText("Grammar Name:");
            contentPanel.add(label1, cc.xy(3, 1));
            contentPanel.add(grammarNameField, cc.xywh(5, 1, 3, 1));

            //---- label2 ----
            label2.setText("Type:");
            contentPanel.add(label2, cc.xy(3, 3));

            //---- grammarTypeComboBox ----
            grammarTypeComboBox.setModel(new DefaultComboBoxModel(
                    new String[] { "Parser", "Lexer", "Tree Grammar", "Combined Grammar" }));
            grammarTypeComboBox.setSelectedIndex(3);
            grammarTypeComboBox.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    switch (grammarTypeComboBox.getSelectedIndex()) {
                    case GRAMMAR_TYPE_PARSER:
                    case GRAMMAR_TYPE_TREE_GRAMMAR:
                        cbIdentifier.setEnabled(false);
                        cbInteger.setEnabled(false);
                        cbFloat.setEnabled(false);
                        cbComments.setEnabled(false);
                        cbSingleLine.setEnabled(false);
                        cbMultiLine.setEnabled(false);
                        cbString.setEnabled(false);
                        cbCharacters.setEnabled(false);
                        cbWhiteSpace.setEnabled(false);
                        cbTabChar.setEnabled(false);
                        cbNewlineChar.setEnabled(false);
                        cbCarriageReturnChar.setEnabled(false);
                        break;
                    case GRAMMAR_TYPE_LEXER:
                    case GRAMMAR_TYPE_COMBINED_GRAMMAR:
                        cbIdentifier.setEnabled(true);
                        cbInteger.setEnabled(true);
                        cbFloat.setEnabled(true);
                        cbComments.setEnabled(true);
                        if (cbComments.isSelected()) {
                            cbSingleLine.setEnabled(true);
                            cbMultiLine.setEnabled(true);
                        }
                        cbString.setEnabled(true);
                        cbCharacters.setEnabled(true);
                        cbWhiteSpace.setEnabled(true);
                        if (cbWhiteSpace.isSelected()) {
                            cbTabChar.setEnabled(true);
                            cbNewlineChar.setEnabled(true);
                            cbCarriageReturnChar.setEnabled(true);
                        }
                        break;
                    }
                }
            });
            contentPanel.add(grammarTypeComboBox, cc.xy(5, 3));

            //======== lexicalItemPanel ========
            {
                lexicalItemPanel.setBorder(new TitledBorder(null, "Lexical Items",
                        TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION));
                lexicalItemPanel.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) },
                        new RowSpec[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, RowSpec.DEFAULT_GROW) }));

                //======== lexLeftPanel ========
                {
                    lexLeftPanel.setLayout(new FormLayout(
                            new ColumnSpec[] {
                                    new ColumnSpec(ColumnSpec.DEFAULT, Sizes.dluX(10), FormSpec.NO_GROW),
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.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 }));

                    //---- cbIdentifier ----
                    cbIdentifier.setText("Identifier");
                    lexLeftPanel.add(cbIdentifier, cc.xywh(1, 1, 2, 1));

                    //---- cbInteger ----
                    cbInteger.setText("Integer");
                    lexLeftPanel.add(cbInteger, cc.xywh(1, 3, 2, 1));

                    //---- cbFloat ----
                    cbFloat.setText("Float");
                    lexLeftPanel.add(cbFloat, cc.xywh(1, 5, 2, 1));

                    //---- cbComments ----
                    cbComments.setText("Comments");
                    lexLeftPanel.add(cbComments, cc.xywh(1, 7, 2, 1));
                    cbComments.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent event) {
                            if (cbComments.isSelected()) {
                                cbSingleLine.setEnabled(true);
                                cbMultiLine.setEnabled(true);
                            } else {
                                cbSingleLine.setEnabled(false);
                                cbMultiLine.setEnabled(false);
                            }
                        }
                    });

                    //======== commentsPanel ========
                    {
                        commentsPanel.setBorder(new TitledBorder(null, null, TitledBorder.DEFAULT_JUSTIFICATION,
                                TitledBorder.DEFAULT_POSITION));
                        commentsPanel.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC },
                                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC }));

                        //---- cbSingleLine ----
                        cbSingleLine.setText("Single-line ( //... )");
                        cbSingleLine.setEnabled(false);
                        cbSingleLine.setSelected(true);
                        commentsPanel.add(cbSingleLine, cc.xy(1, 1));
                        cbSingleLine.addActionListener(new ActionListener() {
                            public void actionPerformed(ActionEvent event) {
                                if (!cbSingleLine.isSelected() && !cbMultiLine.isSelected()) {
                                    cbComments.setSelected(false);
                                    cbSingleLine.setEnabled(false);
                                    cbMultiLine.setEnabled(false);
                                    cbSingleLine.setSelected(true);
                                    cbMultiLine.setSelected(true);
                                }
                            }
                        });

                        //---- cbMultiLine ----
                        cbMultiLine.setText("Multi-line ( /* .. */ )");
                        cbMultiLine.setEnabled(false);
                        cbMultiLine.setSelected(true);
                        commentsPanel.add(cbMultiLine, cc.xy(1, 3));
                        cbMultiLine.addActionListener(new ActionListener() {
                            public void actionPerformed(ActionEvent event) {
                                if (!cbSingleLine.isSelected() && !cbMultiLine.isSelected()) {
                                    cbComments.setSelected(false);
                                    cbSingleLine.setEnabled(false);
                                    cbMultiLine.setEnabled(false);
                                    cbSingleLine.setSelected(true);
                                    cbMultiLine.setSelected(true);
                                }
                            }
                        });
                    }
                    lexLeftPanel.add(commentsPanel, cc.xy(2, 9));
                }
                lexicalItemPanel.add(lexLeftPanel, cc.xy(1, 1));

                //======== lexRightPanel ========
                {
                    lexRightPanel.setLayout(new FormLayout(
                            new ColumnSpec[] {
                                    new ColumnSpec(ColumnSpec.DEFAULT, Sizes.dluX(10), FormSpec.NO_GROW),
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.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, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC }));

                    //---- cbString ----
                    cbString.setText("String");
                    lexRightPanel.add(cbString, cc.xywh(1, 1, 2, 1));
                    cbString.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent event) {
                            if (cbString.isSelected()) {
                                singleQuoteRadio.setEnabled(true);
                                doubleQuoteRadio.setEnabled(true);
                            } else {
                                singleQuoteRadio.setEnabled(false);
                                doubleQuoteRadio.setEnabled(false);
                            }
                        }
                    });

                    //======== stringPanel ========
                    {
                        stringPanel.setBorder(new EtchedBorder());
                        stringPanel.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC },
                                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC }));

                        //---- singleQuoteRadio ----
                        singleQuoteRadio.setText("Single quotes ( 'sample string' )");
                        singleQuoteRadio.setEnabled(false);
                        stringPanel.add(singleQuoteRadio, cc.xy(1, 1));

                        //---- doubleQuoteRadio ----
                        doubleQuoteRadio.setText("Double quotes ( \"sample string\" )");
                        doubleQuoteRadio.setEnabled(false);
                        doubleQuoteRadio.setSelected(true);
                        stringPanel.add(doubleQuoteRadio, cc.xy(1, 3));
                    }
                    lexRightPanel.add(stringPanel, cc.xy(2, 3));

                    //---- cbCharacters ----
                    cbCharacters.setText("Character");
                    lexRightPanel.add(cbCharacters, cc.xywh(1, 5, 2, 1));

                    //---- cbWhiteSpace ----
                    cbWhiteSpace.setText("White Space");
                    lexRightPanel.add(cbWhiteSpace, cc.xywh(1, 7, 3, 1));

                    //======== wsPanel ========
                    {
                        wsPanel.setBorder(new EtchedBorder());
                        wsPanel.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC },
                                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC }));

                        //---- cbTabChar ----
                        cbTabChar.setText("Tab character ( /t )");
                        cbTabChar.setEnabled(false);
                        cbTabChar.setSelected(true);
                        wsPanel.add(cbTabChar, cc.xy(1, 1));

                        //---- cbNewlineChar ----
                        cbNewlineChar.setText("Newline character ( /n )");
                        cbNewlineChar.setEnabled(false);
                        cbNewlineChar.setSelected(true);
                        wsPanel.add(cbNewlineChar, cc.xy(1, 3));

                        //---- cbCarriageReturnChar ----
                        cbCarriageReturnChar.setText("Carriage-return character ( /r )");
                        cbCarriageReturnChar.setEnabled(false);
                        cbCarriageReturnChar.setSelected(true);
                        wsPanel.add(cbCarriageReturnChar, cc.xy(1, 5));
                    }
                    lexRightPanel.add(wsPanel, cc.xy(2, 9));
                }
                lexicalItemPanel.add(lexRightPanel, cc.xy(3, 1));
            }
            contentPanel.add(lexicalItemPanel, cc.xywh(3, 5, 5, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

            //---- okButton ----
            okButton.setText("OK");
            buttonBar.add(okButton, cc.xy(2, 1));

            //---- cancelButton ----
            cancelButton.setText("Cancel");
            buttonBar.add(cancelButton, cc.xy(4, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();

    //---- buttonGroup1 ----
    ButtonGroup buttonGroup1 = new ButtonGroup();
    buttonGroup1.add(singleQuoteRadio);
    buttonGroup1.add(doubleQuoteRadio);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.dialog.AccessionLookup.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    HeaderPanel = new JPanel();
    mainHeaderPanel = new JPanel();
    mainHeaderLabel = new JLabel();
    panel3 = new JPanel();
    subHeaderLabel = new JLabel();
    contentPane = new JPanel();
    label3 = new JLabel();
    label4 = new JLabel();
    scrollPane1 = new JScrollPane();
    lookupTable = new DomainSortableTable(Resources.class, filterField);
    label1 = new JLabel();
    filterField = new JTextField();
    buttonBar = new JPanel();
    linkButton = new JButton();
    doneButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);//from ww  w.j a  va2 s .c  o  m
    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    addWindowListener(new WindowAdapter() {
        @Override
        public void windowClosing(WindowEvent e) {
            thisWindowClosing();
        }
    });
    Container contentPane2 = getContentPane();
    contentPane2.setLayout(new BorderLayout());

    //======== dialogPane ========
    {
        dialogPane.setBorder(null);
        dialogPane.setBackground(new Color(200, 205, 232));
        dialogPane.setLayout(new BorderLayout());

        //======== HeaderPanel ========
        {
            HeaderPanel.setBackground(new Color(80, 69, 57));
            HeaderPanel.setOpaque(false);
            HeaderPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            HeaderPanel
                    .setLayout(new FormLayout(
                            new ColumnSpec[] {
                                    new ColumnSpec(
                                            Sizes.bounded(Sizes.MINIMUM, Sizes.dluX(100), Sizes.dluX(200))),
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            RowSpec.decodeSpecs("default")));

            //======== mainHeaderPanel ========
            {
                mainHeaderPanel.setBackground(new Color(80, 35, 45));
                mainHeaderPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                mainHeaderPanel
                        .setLayout(
                                new FormLayout(
                                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                        FormSpec.DEFAULT_GROW) },
                                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC,
                                                FormFactory.DEFAULT_ROWSPEC,
                                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- mainHeaderLabel ----
                mainHeaderLabel.setText("Main Header");
                mainHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                mainHeaderLabel.setForeground(Color.white);
                mainHeaderPanel.add(mainHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(mainHeaderPanel, cc.xy(1, 1));

            //======== panel3 ========
            {
                panel3.setBackground(new Color(66, 60, 111));
                panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel3.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.UNRELATED_GAP_COLSPEC },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- subHeaderLabel ----
                subHeaderLabel.setText("Lookup Accession");
                subHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                subHeaderLabel.setForeground(Color.white);
                panel3.add(subHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(panel3, cc.xy(2, 1));
        }
        dialogPane.add(HeaderPanel, BorderLayout.NORTH);

        //======== contentPane ========
        {
            contentPane.setBackground(new Color(231, 188, 251));
            contentPane.setOpaque(false);
            contentPane
                    .setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.UNRELATED_GAP_COLSPEC,
                                            FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW),
                                            FormFactory.UNRELATED_GAP_COLSPEC },
                                    new RowSpec[] { FormFactory.UNRELATED_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.UNRELATED_GAP_ROWSPEC }));

            //---- label3 ----
            label3.setText("Double click on a Accession to select it.");
            contentPane.add(label3, cc.xywh(2, 2, 3, 1));

            //---- label4 ----
            label4.setText("Or hit enter if a Accession is highlighted.");
            contentPane.add(label4, cc.xywh(2, 4, 3, 1));

            //======== scrollPane1 ========
            {
                scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

                //---- lookupTable ----
                lookupTable.setPreferredScrollableViewportSize(new Dimension(450, 300));
                lookupTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        lookupTableMouseClicked(e);
                    }
                });
                lookupTable.addKeyListener(new KeyAdapter() {
                    @Override
                    public void keyTyped(KeyEvent e) {
                        lookupTableKeyTyped(e);
                    }
                });
                scrollPane1.setViewportView(lookupTable);
            }
            contentPane.add(scrollPane1, cc.xywh(2, 6, 3, 1));

            //---- label1 ----
            label1.setText("Filter:");
            contentPane.add(label1, cc.xy(2, 8));
            contentPane.add(filterField, cc.xy(4, 8));

            //======== buttonBar ========
            {
                buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
                buttonBar.setBackground(new Color(231, 188, 251));
                buttonBar.setOpaque(false);
                buttonBar
                        .setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC,
                                        FormFactory.RELATED_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC },
                                RowSpec.decodeSpecs("pref")));

                //---- linkButton ----
                linkButton.setText("Link");
                linkButton.setOpaque(false);
                linkButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        linkButtonActionPerformed();
                    }
                });
                buttonBar.add(linkButton, cc.xy(3, 1));

                //---- doneButton ----
                doneButton.setText("Close Window");
                doneButton.setOpaque(false);
                doneButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        doneButtonActionPerformed(e);
                    }
                });
                buttonBar.add(doneButton, cc.xy(7, 1));
            }
            contentPane.add(buttonBar, cc.xywh(2, 10, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
        }
        dialogPane.add(contentPane, BorderLayout.CENTER);
    }
    contentPane2.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.dialog.AssessmentManagement.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    HeaderPanel = new JPanel();
    panel2 = new JPanel();
    mainHeaderLabel = new JLabel();
    panel3 = new JPanel();
    subHeaderLabel = new JLabel();
    contentPanel = new JPanel();
    panel1 = new JPanel();
    label2 = new JLabel();
    filterField = new JTextField();
    scrollPane1 = new JScrollPane();
    contentTable = new DomainSortableTable(AssessmentsSearchResult.class, filterField);
    buttonBar = new JPanel();
    button1 = new JButton();
    button2 = new JButton();
    reportsButton = new JButton();
    addRecordButton = new JButton();
    removeRecordButton = new JButton();
    doneButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);//from  w w w  . j  a v a2  s  . c  o  m
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {
        dialogPane.setBorder(null);
        dialogPane.setBackground(new Color(200, 205, 232));
        dialogPane.setLayout(new BorderLayout());

        //======== HeaderPanel ========
        {
            HeaderPanel.setBackground(new Color(80, 69, 57));
            HeaderPanel.setOpaque(false);
            HeaderPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            HeaderPanel
                    .setLayout(new FormLayout(
                            new ColumnSpec[] {
                                    new ColumnSpec(
                                            Sizes.bounded(Sizes.MINIMUM, Sizes.dluX(100), Sizes.dluX(200))),
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            RowSpec.decodeSpecs("default")));

            //======== panel2 ========
            {
                panel2.setBackground(new Color(80, 69, 57));
                panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel2.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- mainHeaderLabel ----
                mainHeaderLabel.setText("Administration");
                mainHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                mainHeaderLabel.setForeground(Color.white);
                panel2.add(mainHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(panel2, cc.xy(1, 1));

            //======== panel3 ========
            {
                panel3.setBackground(new Color(66, 60, 111));
                panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel3.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- subHeaderLabel ----
                subHeaderLabel.setText("Assessment");
                subHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                subHeaderLabel.setForeground(Color.white);
                panel3.add(subHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(panel3, cc.xy(2, 1));
        }
        dialogPane.add(HeaderPanel, BorderLayout.NORTH);

        //======== contentPanel ========
        {
            contentPanel.setOpaque(false);
            contentPanel
                    .setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW),
                                            FormFactory.RELATED_GAP_COLSPEC },
                                    new RowSpec[] { FormFactory.UNRELATED_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.UNRELATED_GAP_ROWSPEC }));

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

                //---- label2 ----
                label2.setText("Filter:");
                panel1.add(label2, cc.xy(1, 1));
                panel1.add(filterField, cc.xy(3, 1));
            }
            contentPanel.add(panel1, cc.xy(2, 2));

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

                //---- contentTable ----
                contentTable.setPreferredScrollableViewportSize(new Dimension(800, 400));
                contentTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        contentTableMouseClicked(e);
                    }
                });
                scrollPane1.setViewportView(contentTable);
            }
            contentPanel.add(scrollPane1, cc.xy(2, 4));

            //======== buttonBar ========
            {
                buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
                buttonBar.setOpaque(false);
                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.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.GLUE_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC },
                        RowSpec.decodeSpecs("pref")));

                //---- button1 ----
                button1.setText("Search");
                button1.setOpaque(false);
                button1.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        searchActionPerformed();
                    }
                });
                buttonBar.add(button1, cc.xy(2, 1));

                //---- button2 ----
                button2.setText("List All");
                button2.setSelectedIcon(null);
                button2.setOpaque(false);
                button2.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        refreshActionPerformed();
                    }
                });
                buttonBar.add(button2, cc.xy(4, 1));

                //---- reportsButton ----
                reportsButton.setText("Reports");
                reportsButton.setOpaque(false);
                reportsButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        reportButtonActionPerformed(e);
                    }
                });
                buttonBar.add(reportsButton, cc.xy(6, 1));

                //---- addRecordButton ----
                addRecordButton.setText("Add Record");
                addRecordButton.setOpaque(false);
                addRecordButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addRecordButtonActionPerformed(e);
                    }
                });
                buttonBar.add(addRecordButton, cc.xy(8, 1));

                //---- removeRecordButton ----
                removeRecordButton.setText("Remove Record");
                removeRecordButton.setOpaque(false);
                removeRecordButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeRecordButtonActionPerformed(e);
                    }
                });
                buttonBar.add(removeRecordButton, cc.xy(10, 1));

                //---- doneButton ----
                doneButton.setText("Done");
                doneButton.setOpaque(false);
                doneButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        doneButtonActionPerformed(e);
                    }
                });
                buttonBar.add(doneButton, cc.xy(14, 1));
            }
            contentPanel.add(buttonBar, cc.xy(2, 6));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.dialog.ATDebugDialog.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();
    tabbedPane1 = new JTabbedPane();
    panel2 = new JPanel();
    textField1 = new JTextField();
    textField2 = new JTextField();
    button6 = new JButton();
    button7 = new JButton();
    button8 = new JButton();
    scrollPane2 = new JScrollPane();
    textArea2 = new JTextArea();
    panel1 = new JPanel();
    button1 = new JButton();
    button3 = new JButton();
    button5 = new JButton();
    button4 = new JButton();
    button2 = new JButton();
    scrollPane1 = new JScrollPane();
    textArea1 = new JTextArea();
    panel3 = new ATDebugEditorFields();
    buttonBar = new JPanel();
    button9 = new JButton();
    button10 = new JButton();
    okButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {//from  w w w  .j a v  a2  s . c o  m
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new BorderLayout());

            //======== tabbedPane1 ========
            {

                //======== panel2 ========
                {
                    panel2.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(80)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.dluY(119), FormSpec.DEFAULT_GROW) }));

                    //---- textField1 ----
                    textField1.setText("20");
                    panel2.add(textField1, cc.xy(1, 1));

                    //---- textField2 ----
                    textField2.setText("5");
                    panel2.add(textField2, cc.xy(3, 1));

                    //---- button6 ----
                    button6.setText("Start Test");
                    button6.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            startLockTest(e);
                        }
                    });
                    panel2.add(button6, cc.xy(1, 3));

                    //---- button7 ----
                    button7.setText("Stop Test");
                    button7.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            stopLockTest(e);
                        }
                    });
                    panel2.add(button7, cc.xy(3, 3));

                    //---- button8 ----
                    button8.setText("Clear");
                    button8.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            clearLockTestOutput(e);
                        }
                    });
                    panel2.add(button8, cc.xy(7, 3));

                    //======== scrollPane2 ========
                    {
                        scrollPane2.setViewportView(textArea2);
                    }
                    panel2.add(scrollPane2, cc.xywh(1, 5, 7, 1));
                }
                tabbedPane1.addTab("Program Lock Test", panel2);

                //======== panel1 ========
                {
                    panel1.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    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.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                    //---- button1 ----
                    button1.setText("Record to XML");
                    button1.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            button1ActionPerformed(e);
                        }
                    });
                    panel1.add(button1, cc.xy(1, 1));

                    //---- button3 ----
                    button3.setText("XML To Record");
                    button3.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            button3ActionPerformed(e);
                        }
                    });
                    panel1.add(button3, cc.xy(3, 1));

                    //---- button5 ----
                    button5.setText("Copy");
                    button5.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            button5ActionPerformed(e);
                        }
                    });
                    panel1.add(button5, cc.xy(5, 1));

                    //---- button4 ----
                    button4.setText("Save");
                    button4.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            button4ActionPerformed(e);
                        }
                    });
                    panel1.add(button4, cc.xy(7, 1));

                    //---- button2 ----
                    button2.setText("clear text");
                    button2.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            button2ActionPerformed(e);
                        }
                    });
                    panel1.add(button2, cc.xy(9, 1));

                    //======== scrollPane1 ========
                    {
                        scrollPane1.setViewportView(textArea1);
                    }
                    panel1.add(scrollPane1, cc.xywh(1, 3, 9, 3));
                }
                tabbedPane1.addTab("Export", panel1);

                tabbedPane1.addTab("ISO Date Test", panel3);

            }
            contentPanel.add(tabbedPane1, BorderLayout.CENTER);
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

            //---- button9 ----
            button9.setText("Set Record");
            button9.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    button9ActionPerformed(e);
                }
            });
            buttonBar.add(button9, cc.xy(2, 1));

            //---- button10 ----
            button10.setText("Save Record");
            button10.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    button10ActionPerformed(e);
                }
            });
            buttonBar.add(button10, cc.xy(4, 1));

            //---- okButton ----
            okButton.setText("OK");
            okButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    okButtonActionPerformed(e);
                }
            });
            buttonBar.add(okButton, cc.xy(6, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    setSize(635, 360);
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.dialog.ATDebugEditorFields.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    label1 = new JLabel();
    textField1 = ATBasicComponentFactory
            .createISODateField(detailsModel.getModel(ArchDescription.PROPERTYNAME_ISODATE_BEGIN));
    textField3 = ATBasicComponentFactory
            .createISODateField(detailsModel.getModel(ArchDescription.PROPERTYNAME_ISODATE_END));
    label2 = new JLabel();
    textField2 = ATBasicComponentFactory.createISODateField(
            detailsModel.getModel(AccessionsResourcesCommon.PROPERTYNAME_ISOBULK_DATE_BEGIN));
    textField4 = ATBasicComponentFactory
            .createISODateField(detailsModel.getModel(AccessionsResourcesCommon.PROPERTYNAME_ISOBULK_DATE_END));
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(Sizes.dluX(79)), 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 }));

    //---- label1 ----
    label1.setText("ISO Date Begin/End");
    add(label1, cc.xy(1, 1));//w w w  . j  av a 2  s  .c om

    //---- textField1 ----
    textField1.setColumns(10);
    add(textField1, cc.xy(3, 1));

    //---- textField3 ----
    textField3.setColumns(10);
    add(textField3, cc.xy(5, 1));

    //---- label2 ----
    label2.setText("ISO Bluk Date Begin/End");
    add(label2, cc.xy(1, 5));

    //---- textField2 ----
    textField2.setColumns(10);
    add(textField2, cc.xy(3, 5));

    //---- textField4 ----
    textField4.setColumns(10);
    add(textField4, cc.xy(5, 5));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.dialog.BatchLocationCreation.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    HeaderPanel = new JPanel();
    panel2 = new JPanel();
    mainHeaderLabel = new JLabel();
    panel3 = new JPanel();
    subHeaderLabel = new JLabel();
    panel1 = new JPanel();
    contentPanel = new JPanel();
    label1 = new JLabel();
    building = new JTextField();
    label2 = new JLabel();
    floor = new JTextField();
    label3 = new JLabel();
    room = new JTextField();
    label4 = new JLabel();
    area = new JTextField();
    label12 = new JLabel();
    label13 = new JLabel();
    label14 = new JLabel();
    label5 = new JLabel();
    coordinate1Label = new JTextField();
    coordinate1Start = new JTextField();
    label6 = new JLabel();
    coordinate1End = new JTextField();
    label7 = new JLabel();
    coordinate2Label = new JTextField();
    coordinate2Start = new JTextField();
    label9 = new JLabel();
    coordinate2End = new JTextField();
    label8 = new JLabel();
    coordinate3Label = new JTextField();
    coordinate3Start = new JTextField();
    label10 = new JLabel();
    coordinate3End = new JTextField();
    label11 = new JLabel();
    repository = new JComboBox(new DefaultComboBoxModel(Repositories.getRepositoryList()));
    buttonBar = new JPanel();
    generateButton = new JButton();
    doneButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);/*from w  w w  .  jav  a  2s  . c om*/
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {
        dialogPane.setBorder(null);
        dialogPane.setBackground(new Color(200, 205, 232));
        dialogPane.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

        //======== HeaderPanel ========
        {
            HeaderPanel.setBackground(new Color(80, 69, 57));
            HeaderPanel.setOpaque(false);
            HeaderPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            HeaderPanel
                    .setLayout(new FormLayout(
                            new ColumnSpec[] {
                                    new ColumnSpec(
                                            Sizes.bounded(Sizes.MINIMUM, Sizes.dluX(100), Sizes.dluX(200))),
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            RowSpec.decodeSpecs("default")));

            //======== panel2 ========
            {
                panel2.setBackground(new Color(80, 69, 57));
                panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel2.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- mainHeaderLabel ----
                mainHeaderLabel.setText("Project Management");
                mainHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                mainHeaderLabel.setForeground(Color.white);
                panel2.add(mainHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(panel2, cc.xy(1, 1));

            //======== panel3 ========
            {
                panel3.setBackground(new Color(66, 60, 111));
                panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel3.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.RELATED_GAP_COLSPEC },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- subHeaderLabel ----
                subHeaderLabel.setText("Batch Location Creation");
                subHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                subHeaderLabel.setForeground(Color.white);
                panel3.add(subHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(panel3, cc.xy(2, 1));
        }
        dialogPane.add(HeaderPanel, cc.xy(1, 1));

        //======== panel1 ========
        {
            panel1.setOpaque(false);
            panel1.setBorder(Borders.DLU4_BORDER);
            panel1.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] {
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //======== contentPanel ========
            {
                contentPanel.setOpaque(false);
                contentPanel.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, 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.LABEL_COMPONENT_GAP_COLSPEC,
                                FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.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, 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 }));

                //---- label1 ----
                label1.setText("Building");
                ATFieldInfo.assignLabelInfo(label1, Locations.class, Locations.PROPERTYNAME_BUILDING);
                contentPanel.add(label1, cc.xy(1, 1));
                contentPanel.add(building, cc.xywh(3, 1, 9, 1));

                //---- label2 ----
                label2.setText("Floor");
                ATFieldInfo.assignLabelInfo(label2, Locations.class, Locations.PROPERTYNAME_FLOOR);
                contentPanel.add(label2, cc.xy(1, 3));
                contentPanel.add(floor, cc.xywh(3, 3, 9, 1));

                //---- label3 ----
                label3.setText("Room");
                ATFieldInfo.assignLabelInfo(label3, Locations.class, Locations.PROPERTYNAME_ROOM);
                contentPanel.add(label3, cc.xy(1, 5));
                contentPanel.add(room, cc.xywh(3, 5, 9, 1));

                //---- label4 ----
                label4.setText("Area");
                ATFieldInfo.assignLabelInfo(label4, Locations.class, Locations.PROPERTYNAME_AREA);
                contentPanel.add(label4, cc.xy(1, 7));
                contentPanel.add(area, cc.xywh(3, 7, 9, 1));

                //---- label12 ----
                label12.setText("Label");
                contentPanel.add(label12, cc.xy(3, 9));

                //---- label13 ----
                label13.setText("Start");
                contentPanel.add(label13, cc.xy(5, 9));

                //---- label14 ----
                label14.setText("End");
                contentPanel.add(label14, cc.xy(9, 9));

                //---- label5 ----
                label5.setText("Coordinate 1");
                contentPanel.add(label5, cc.xy(1, 11));

                //---- coordinate1Label ----
                coordinate1Label.setColumns(8);
                contentPanel.add(coordinate1Label, cc.xy(3, 11));

                //---- coordinate1Start ----
                coordinate1Start.setColumns(3);
                contentPanel.add(coordinate1Start, cc.xy(5, 11));

                //---- label6 ----
                label6.setText("-");
                contentPanel.add(label6, cc.xy(7, 11));

                //---- coordinate1End ----
                coordinate1End.setColumns(3);
                contentPanel.add(coordinate1End, cc.xy(9, 11));

                //---- label7 ----
                label7.setText("Coordinate 2");
                contentPanel.add(label7, cc.xy(1, 13));

                //---- coordinate2Label ----
                coordinate2Label.setColumns(8);
                contentPanel.add(coordinate2Label, cc.xy(3, 13));

                //---- coordinate2Start ----
                coordinate2Start.setColumns(3);
                contentPanel.add(coordinate2Start, cc.xy(5, 13));

                //---- label9 ----
                label9.setText("-");
                contentPanel.add(label9, cc.xy(7, 13));

                //---- coordinate2End ----
                coordinate2End.setColumns(3);
                contentPanel.add(coordinate2End, cc.xy(9, 13));

                //---- label8 ----
                label8.setText("Coordinate 3");
                contentPanel.add(label8, cc.xy(1, 15));

                //---- coordinate3Label ----
                coordinate3Label.setColumns(8);
                contentPanel.add(coordinate3Label, cc.xy(3, 15));

                //---- coordinate3Start ----
                coordinate3Start.setColumns(3);
                contentPanel.add(coordinate3Start, cc.xy(5, 15));

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

                //---- coordinate3End ----
                coordinate3End.setColumns(3);
                contentPanel.add(coordinate3End, cc.xy(9, 15));

                //---- label11 ----
                label11.setText("Repository");
                label11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label11, Locations.class, Locations.PROPERTYNAME_REPOSITORY);
                contentPanel.add(label11, cc.xy(1, 17));

                //---- repository ----
                repository.setOpaque(false);
                repository.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                contentPanel.add(repository, cc.xywh(3, 17, 9, 1));
            }
            panel1.add(contentPanel, cc.xy(1, 1));

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

                //---- generateButton ----
                generateButton.setText("Generate");
                generateButton.setOpaque(false);
                generateButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        generateButtonActionPerformed(e);
                    }
                });
                buttonBar.add(generateButton, cc.xy(2, 1));

                //---- doneButton ----
                doneButton.setText("Done");
                doneButton.setOpaque(false);
                doneButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        doneButtonActionPerformed(e);
                    }
                });
                buttonBar.add(doneButton, cc.xy(4, 1));
            }
            panel1.add(buttonBar, cc.xywh(1, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        dialogPane.add(panel1, cc.xy(1, 3));
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}