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

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

Introduction

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

Prototype

public static ConstantSize dluY(int value) 

Source Link

Document

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

Usage

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 ========
    {//w ww .  j  a  va2s .  c om
        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:repast.simphony.visualization.gui.styleBuilder.EditedStyleDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    buttonBar = new JPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    panel1 = new JPanel();
    shapePanel = new JPanel();
    shapeComboBox = new JComboBox();
    iconColorbutton = new JButton();
    iconButton = new JButton();
    clearFileButton = new JButton();
    textureButton = new JButton();
    clearTextureButton = new JButton();
    previewPanel = new JPanel();
    panel3 = new JPanel();
    label1 = new JLabel();
    label2 = new JLabel();
    label3 = new JLabel();
    label4 = new JLabel();
    sizeComboBox = new JComboBox();
    sizeMinComboBox = new JComboBox();
    sizeMaxComboBox = new JComboBox();
    sizeScaleComboBox = new JComboBox();
    panel4 = new JPanel();
    label5 = new JLabel();
    label6 = new JLabel();
    label7 = new JLabel();
    label19 = new JLabel();
    labelComboBox = new JComboBox();
    labelPositionComboBox = new JComboBox();
    labelOffsetTextField = new JTextField();
    labelPrecisionComboBox = new JComboBox();
    panel2 = new JPanel();
    label8 = new JLabel();
    label9 = new JLabel();
    label10 = new JLabel();
    label11 = new JLabel();
    labelFontFamilyComboBox = new JComboBox();
    labelFontSizeComboBox = new JComboBox();
    labelFontStyleComboBox = new JComboBox();
    fontColorButton = new JButton();
    panel6 = new JPanel();
    label15 = new JLabel();
    label16 = new JLabel();
    label17 = new JLabel();
    label18 = new JLabel();
    label12 = new JLabel();
    redValueComboBox = new JComboBox();
    redMinComboBox = new JComboBox();
    redMaxComboBox = new JComboBox();
    redScaleComboBox = new JComboBox();
    label13 = new JLabel();
    greenValueComboBox = new JComboBox();
    greenMinComboBox = new JComboBox();
    greenMaxComboBox = new JComboBox();
    greenScaleComboBox = new JComboBox();
    label14 = new JLabel();
    blueValueComboBox = new JComboBox();
    blueMinComboBox = new JComboBox();
    blueMaxComboBox = new JComboBox();
    blueScaleComboBox = new JComboBox();
    CellConstraints cc = new CellConstraints();

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

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

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

            //---- okButton ----
            okButton.setText("OK");
            okButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    okButtonActionPerformed(e);
                }
            });
            buttonBar.add(okButton, cc.xy(2, 1));

            //---- cancelButton ----
            cancelButton.setText("Cancel");
            cancelButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    cancelButtonActionPerformed(e);
                }
            });
            buttonBar.add(cancelButton, cc.xy(4, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);

        //======== panel1 ========
        {
            panel1.setLayout(new FormLayout(
                    new ColumnSpec[] { ColumnSpec.decode("left:max(default;166dlu):grow"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(133)),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC }));

            //======== shapePanel ========
            {
                shapePanel.setBorder(new TitledBorder("Icon Shape and Color"));
                shapePanel.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(79)),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                new RowSpec(Sizes.dluY(17)) }));

                //---- shapeComboBox ----
                shapeComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        shapeComboBoxActionPerformed(e);
                    }
                });
                shapePanel.add(shapeComboBox, cc.xy(1, 1));

                //---- iconColorbutton ----
                iconColorbutton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        iconColorbuttonActionPerformed(e);
                    }
                });
                shapePanel.add(iconColorbutton, cc.xy(3, 1));

                //---- iconButton ----
                iconButton.setText("text");
                iconButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        iconButtonActionPerformed(e);
                    }
                });
                shapePanel.add(iconButton, cc.xy(1, 5));

                //---- clearFileButton ----
                clearFileButton.setText("text");
                clearFileButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        clearFileButtonActionPerformed(e);
                    }
                });
                shapePanel.add(clearFileButton, cc.xy(3, 5));

                //---- textureButton ----
                textureButton.setText("Select Texture");
                textureButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        textureButtonActionPerformed(e);
                    }
                });
                shapePanel.add(textureButton, cc.xy(1, 7));

                //---- clearTextureButton ----
                clearTextureButton.setText("Clear Texture");
                clearTextureButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        clearTextureButtonActionPerformed(e);
                    }
                });
                shapePanel.add(clearTextureButton, cc.xy(3, 7));
            }
            panel1.add(shapePanel, cc.xywh(1, 1, 2, 1));

            //======== previewPanel ========
            {
                previewPanel.setBorder(new TitledBorder("Icon Preview"));
                previewPanel.setLayout(new FormLayout("101dlu:grow", "top:57dlu:grow"));
            }
            panel1.add(previewPanel, cc.xywh(5, 1, 3, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

            //======== panel3 ========
            {
                panel3.setBorder(new TitledBorder("Icon Size"));
                panel3.setLayout(new FormLayout(
                        new ColumnSpec[] { ColumnSpec.decode("max(pref;66dlu)"),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

                //---- label1 ----
                label1.setText("Value");
                panel3.add(label1, cc.xy(1, 1));

                //---- label2 ----
                label2.setText("Minimum");
                panel3.add(label2, cc.xy(5, 1));

                //---- label3 ----
                label3.setText("Maximum");
                panel3.add(label3, cc.xy(9, 1));

                //---- label4 ----
                label4.setText("Scaling");
                panel3.add(label4, cc.xy(13, 1));

                //---- sizeComboBox ----
                sizeComboBox.setEditable(true);
                sizeComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeComboBox, cc.xy(1, 3));

                //---- sizeMinComboBox ----
                sizeMinComboBox.setEditable(true);
                sizeMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeMinComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeMinComboBox, cc.xy(5, 3));

                //---- sizeMaxComboBox ----
                sizeMaxComboBox.setEditable(true);
                sizeMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeMaxComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeMaxComboBox, cc.xy(9, 3));

                //---- sizeScaleComboBox ----
                sizeScaleComboBox.setEditable(true);
                sizeScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeScaleComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeScaleComboBox, cc.xy(13, 3));
            }
            panel1.add(panel3, cc.xywh(1, 3, 7, 1));

            //======== panel4 ========
            {
                panel4.setBorder(new TitledBorder("Icon Label"));
                panel4.setLayout(new FormLayout(
                        new ColumnSpec[] { ColumnSpec.decode("max(pref;67dlu)"),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(33)),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

                //---- label5 ----
                label5.setText("Value");
                panel4.add(label5, cc.xy(1, 1));

                //---- label6 ----
                label6.setText("Position");
                panel4.add(label6, cc.xy(5, 1));

                //---- label7 ----
                label7.setText("Offset");
                panel4.add(label7, cc.xy(9, 1));

                //---- label19 ----
                label19.setText("Precision");
                panel4.add(label19, cc.xy(13, 1));

                //---- labelComboBox ----
                labelComboBox.setEditable(true);
                labelComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelComboBoxActionPerformed(e);
                    }
                });
                panel4.add(labelComboBox, cc.xy(1, 3));

                //---- labelPositionComboBox ----
                labelPositionComboBox.setEditable(true);
                labelPositionComboBox
                        .setModel(new DefaultComboBoxModel(new String[] { "bottom", "top", "left", "right" }));
                labelPositionComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelPositionComboBoxActionPerformed(e);
                    }
                });
                panel4.add(labelPositionComboBox, cc.xy(5, 3));

                //---- labelOffsetTextField ----
                labelOffsetTextField.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelOffsetTextFieldActionPerformed(e);
                    }
                });
                panel4.add(labelOffsetTextField, cc.xy(9, 3));

                //---- labelPrecisionComboBox ----
                labelPrecisionComboBox.setEditable(true);
                labelPrecisionComboBox.setModel(new DefaultComboBoxModel(
                        new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));
                labelPrecisionComboBox.setSelectedIndex(2);
                labelPrecisionComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelPrecisionComboBoxActionPerformed(e);
                    }
                });
                panel4.add(labelPrecisionComboBox, cc.xy(13, 3));
            }
            panel1.add(panel4, cc.xywh(1, 5, 7, 1));

            //======== panel2 ========
            {
                panel2.setBorder(new TitledBorder("Icon Label Font"));
                panel2.setLayout(new FormLayout(
                        new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

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

                //---- label9 ----
                label9.setText("Font Size");
                panel2.add(label9, cc.xy(5, 1));

                //---- label10 ----
                label10.setText("Font Style");
                panel2.add(label10, cc.xy(9, 1));

                //---- label11 ----
                label11.setText("Font Color");
                panel2.add(label11, cc.xy(13, 1));

                //---- labelFontFamilyComboBox ----
                labelFontFamilyComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelFontFamilyComboBoxActionPerformed(e);
                    }
                });
                panel2.add(labelFontFamilyComboBox, cc.xy(1, 3));

                //---- labelFontSizeComboBox ----
                labelFontSizeComboBox.setModel(new DefaultComboBoxModel(new String[] { "8", "10", "11", "12",
                        "14", "16", "18", "20", "24", "30", "36", "40", "48", "60", "72 " }));
                labelFontSizeComboBox.setEditable(true);
                labelFontSizeComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelFontSizeComboBoxActionPerformed(e);
                    }
                });
                panel2.add(labelFontSizeComboBox, cc.xy(5, 3));

                //---- labelFontStyleComboBox ----
                labelFontStyleComboBox
                        .setModel(new DefaultComboBoxModel(new String[] { "Plain", "Bold", "Italic" }));
                labelFontStyleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelFontStyleComboBoxActionPerformed(e);
                    }
                });
                panel2.add(labelFontStyleComboBox, cc.xy(9, 3));

                //---- fontColorButton ----
                fontColorButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        fontColorButtonActionPerformed(e);
                    }
                });
                panel2.add(fontColorButton, cc.xy(13, 3));
            }
            panel1.add(panel2, cc.xywh(1, 7, 7, 1));

            //======== panel6 ========
            {
                panel6.setBorder(new TitledBorder("Variable Icon Color"));
                panel6.setLayout(new FormLayout(
                        new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

                //---- label15 ----
                label15.setText("Value");
                panel6.add(label15, cc.xy(3, 1));

                //---- label16 ----
                label16.setText("Minimum");
                panel6.add(label16, cc.xy(7, 1));

                //---- label17 ----
                label17.setText("Maximum");
                panel6.add(label17, cc.xy(11, 1));

                //---- label18 ----
                label18.setText("Scaling");
                panel6.add(label18, cc.xy(15, 1));

                //---- label12 ----
                label12.setText("Red");
                panel6.add(label12, cc.xy(1, 3));

                //---- redValueComboBox ----
                redValueComboBox.setEditable(true);
                redValueComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redValueComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redValueComboBox, cc.xy(3, 3));

                //---- redMinComboBox ----
                redMinComboBox.setEditable(true);
                redMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redMinComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redMinComboBox, cc.xy(7, 3));

                //---- redMaxComboBox ----
                redMaxComboBox.setEditable(true);
                redMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redMaxComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redMaxComboBox, cc.xy(11, 3));

                //---- redScaleComboBox ----
                redScaleComboBox.setEditable(true);
                redScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redScaleComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redScaleComboBox, cc.xy(15, 3));

                //---- label13 ----
                label13.setText("Green");
                panel6.add(label13, cc.xy(1, 5));

                //---- greenValueComboBox ----
                greenValueComboBox.setEditable(true);
                greenValueComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenValueComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenValueComboBox, cc.xy(3, 5));

                //---- greenMinComboBox ----
                greenMinComboBox.setEditable(true);
                greenMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenMinComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenMinComboBox, cc.xy(7, 5));

                //---- greenMaxComboBox ----
                greenMaxComboBox.setEditable(true);
                greenMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenMaxComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenMaxComboBox, cc.xy(11, 5));

                //---- greenScaleComboBox ----
                greenScaleComboBox.setEditable(true);
                greenScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenScaleComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenScaleComboBox, cc.xy(15, 5));

                //---- label14 ----
                label14.setText("Blue");
                panel6.add(label14, cc.xy(1, 7));

                //---- blueValueComboBox ----
                blueValueComboBox.setEditable(true);
                blueValueComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueValueComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueValueComboBox, cc.xy(3, 7));

                //---- blueMinComboBox ----
                blueMinComboBox.setEditable(true);
                blueMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueMinComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueMinComboBox, cc.xy(7, 7));

                //---- blueMaxComboBox ----
                blueMaxComboBox.setEditable(true);
                blueMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueMaxComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueMaxComboBox, cc.xy(11, 7));

                //---- blueScaleComboBox ----
                blueScaleComboBox.setEditable(true);
                blueScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueScaleComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueScaleComboBox, cc.xy(15, 7));
            }
            panel1.add(panel6, cc.xywh(1, 9, 7, 1));
        }
        dialogPane.add(panel1, BorderLayout.CENTER);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    setSize(520, 595);
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:smarthouse.monitoring.util.SmartHouseMonitoringUtil.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY
    // //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Hoszu Amalia
    action1 = new AddSensor();
    action2 = new AddNewDevice();
    action3 = new EnableSensor();
    action4 = new SetSensorData();
    action5 = new DisableSensor();
    action6 = new EnableDevice();
    action7 = new DisableDevice();
    action8 = new SetDeviceData();
    panel2 = new JPanel();
    panel5 = new JPanel();
    tabbedPane2 = new JTabbedPane();
    panel4 = new JPanel();
    label6 = new JLabel();
    comboBox7 = new JComboBox();
    label7 = new JLabel();
    comboBox8 = new JComboBox();
    label8 = new JLabel();
    comboBox9 = new JComboBox();
    label9 = new JLabel();
    comboBox10 = new JComboBox();
    button5 = new JButton();
    label16 = new JLabel();
    comboBox15 = new JComboBox();
    button1 = new JButton();
    label10 = new JLabel();
    textField1 = new JTextField();
    button2 = new JButton();
    simpleInternalFrame1 = new SimpleInternalFrame();
    panel7 = new JPanel();
    comboBox11 = new JComboBox();
    label12 = new JLabel();
    comboBox12 = new JComboBox();
    label13 = new JLabel();
    label14 = new JLabel();
    comboBox13 = new JComboBox();
    button10 = new JButton();
    comboBox14 = new JComboBox();
    button11 = new JButton();
    label15 = new JLabel();
    textField3 = new JTextField();
    button4 = new JButton();
    simpleInternalFrame2 = new SimpleInternalFrame();
    label11 = new JLabel();
    panel6 = new JPanel();
    label1 = new JLabel();
    comboBox16 = new JComboBox();
    label27 = new JLabel();
    textField2 = new JTextField();
    label28 = new JLabel();
    comboBox17 = new JComboBox();
    label17 = new JLabel();
    comboBox18 = new JComboBox();

    label18 = new JLabel();
    comboBox19 = new JComboBox();
    button6 = new JButton();
    simpleInternalFrame3 = new SimpleInternalFrame();
    panel8 = new JPanel();
    label2 = new JLabel();
    comboBox20 = new JComboBox();
    label3 = new JLabel();
    comboBox22 = new JComboBox();
    label29 = new JLabel();
    textField4 = new JTextField();
    label30 = new JLabel();
    comboBox21 = new JComboBox();
    label20 = new JLabel();
    comboBox23 = new JComboBox();
    button7 = new JButton();
    simpleInternalFrame4 = new SimpleInternalFrame();
    panel1 = new JPanel();
    label32 = new JLabel();
    label33 = new JLabel();
    label4 = new JLabel();
    label5 = new JLabel();
    label19 = new JLabel();
    comboBox1 = new JComboBox();
    button3 = new JButton();
    label24 = new JLabel();
    comboBox4 = new JComboBox();
    comboBox6 = new JComboBox();
    comboBox27 = new JComboBox();
    comboBox26 = new JComboBox();
    label21 = new JLabel();
    comboBox2 = new JComboBox();
    button8 = new JButton();
    label25 = new JLabel();
    comboBox24 = new JComboBox();
    comboBox28 = new JComboBox();
    label22 = new JLabel();
    comboBox3 = new JComboBox();
    label23 = new JLabel();
    comboBox5 = new JComboBox();
    button12 = new JButton();
    button9 = new JButton();
    label26 = new JLabel();
    comboBox25 = new JComboBox();
    comboBox29 = new JComboBox();
    label31 = new JLabel();
    comboBox30 = new JComboBox();
    simpleInternalFrame5 = new SimpleInternalFrame();
    panel3 = new JPanel();
    scrollPane1 = new JScrollPane();
    textArea1 = new JTextArea();
    action9 = new StateSelection();
    action10 = new setMaryState();
    action12 = new setJohnState();
    action13 = new setJLittleJohnState();
    action14 = new setLittleJaneState();
    CellConstraints cc = new CellConstraints();
    // ======== panel2 ========
    {// www .j ava 2  s  . c o  m
        panel2.setBackground(Color.white);
        // JFormDesigner evaluation mark
        panel2.setBorder(new javax.swing.border.CompoundBorder(
                new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                        "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,

                        javax.swing.border.TitledBorder.BOTTOM,
                        new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                panel2.getBorder()));
        panel2.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent e) {
                if ("border".equals(e.getPropertyName()))
                    throw new RuntimeException();
            }
        });
        panel2.setLayout(new GridBagLayout());
        ((GridBagLayout) panel2.getLayout()).columnWidths = new int[] { 558, 0 };
        ((GridBagLayout) panel2.getLayout()).rowHeights = new int[] { 0, 0, 314, 0 };
        ((GridBagLayout) panel2.getLayout()).columnWeights = new double[] { 1.0, 1.0E-4 };
        ((GridBagLayout) panel2.getLayout()).rowWeights = new double[] { 0.0, 0.0, 1.0, 1.0E-4 };
        // ======== panel5 ========
        {
            panel5.setBackground(new Color(205, 225, 255));
            panel5.setLayout(new FormLayout("default:grow", "default, default"));
            // ======== tabbedPane2 ========
            {
                tabbedPane2.setBackground(Color.white);
                tabbedPane2.setBorder(new SoftBevelBorder(SoftBevelBorder.LOWERED));
                // ======== panel4 ========
                {
                    panel4.setBackground(Color.white);
                    panel4.setLayout(new FormLayout(
                            "47px, left:5px, 87px, left:5px, 105px, left:5px, 53px, left:5px, 77px, left:5px, pref:grow",
                            "60px, top:5px, 32px, top:5px, 32px, top:5px, 32px, top:5px, 32px, top:5px, 32px, top:5px, 32px, top:5px, pref:grow"));
                    // ---- label6 ----
                    label6.setText("Sensor Type");
                    panel4.add(label6, cc.xywh(3, 3, 9, 1));
                    // ---- comboBox7 ----
                    Vector sensorType = new Vector();
                    sensorType = model.getSubclasses("Sensor");
                    // sensorType=(Vector)agent.getBeliefbase().getBelief("sensorType").getFact();
                    comboBox7 = new JComboBox(sensorType);
                    comboBox7.setSelectedIndex(0);
                    comboBox7.addActionListener(this);
                    panel4.add(comboBox7, cc.xy(5, 3));
                    // ---- label7 ----
                    label7.setText("Sensor ID");
                    panel4.add(label7, cc.xy(3, 5));
                    // ---- comboBox8 ----
                    comboBox8.addActionListener(this);
                    comboBox8.addItemListener(new ItemListener() {

                        public void itemStateChanged(ItemEvent e) {
                            if (e.getStateChange() == ItemEvent.SELECTED) {
                                setCurrentSensorLocation(comboBox8, comboBox9);

                                setCurrentSensorValue(comboBox8, comboBox10);
                                setCurrentSensorStatus(comboBox8, comboBox15);
                                setCurrentSensorTimestamp(comboBox8, textField1);
                            }
                        }
                    });
                    panel4.add(comboBox8, cc.xy(5, 5));
                    // ---- label8 ----
                    label8.setText("Sensor Location");
                    panel4.add(label8, cc.xy(3, 7));
                    // ---- comboBox9 ----
                    Vector sensorLoc = new Vector();
                    sensorLoc = model.getIndividuals("IndoorSpace");
                    comboBox9 = new JComboBox(sensorLoc);
                    comboBox9.addActionListener(this);
                    panel4.add(comboBox9, cc.xy(5, 7));
                    // ---- label9 ----
                    label9.setText("Sensor Value");
                    panel4.add(label9, cc.xy(3, 9));
                    // ---- comboBox10 ----
                    Vector sensorValue = new Vector();
                    sensorValue = model.getAllowableValues("sensorValue");
                    comboBox10 = new JComboBox(sensorValue);
                    // comboBox10.setSelectedItem(s.getSensorValue());
                    comboBox10.addActionListener(this);
                    panel4.add(comboBox10, cc.xy(5, 9));
                    // ---- button5 ----
                    button5.setAction(action3);
                    panel4.add(button5, cc.xy(9, 9));
                    // ---- label16 ----
                    label16.setText("Sensor Status");
                    panel4.add(label16, cc.xy(3, 11));
                    // ---- comboBox15 ----
                    Vector sensorStatus = new Vector();
                    sensorStatus = model.getAllowableValues("deviceStatus");
                    comboBox15 = new JComboBox(sensorStatus);
                    comboBox15.addActionListener(this);
                    panel4.add(comboBox15, cc.xy(5, 11));
                    // ---- button1 ----
                    button1.setAction(action5);
                    panel4.add(button1, cc.xy(9, 11));
                    // ---- label10 ----
                    label10.setText("Timestamp");
                    panel4.add(label10, cc.xy(3, 13));

                    // ---- textField1 ----
                    textField1.setEnabled(false);
                    textField1.setEnabled(false);
                    panel4.add(textField1, cc.xy(5, 13));
                    // ---- button2 ----
                    button2.setAction(action4);
                    button2.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            button2ActionPerformed(e);
                        }
                    });
                    panel4.add(button2, cc.xy(9, 13));
                    // ======== simpleInternalFrame1 ========
                    {
                        simpleInternalFrame1.setTitle("text");
                        Container simpleInternalFrame1ContentPane = simpleInternalFrame1.getContentPane();
                        simpleInternalFrame1ContentPane.setLayout(new FormLayout("default", "default"));
                    }
                    panel4.add(simpleInternalFrame1, cc.xywh(1, 1, 11, 15));
                }
                tabbedPane2.addTab("Sensors",
                        new ImageIcon(getClass().getResource("/smarthouse/images/sensor2.png")), panel4);
                // ======== panel7 ========
                {
                    panel7.setBackground(Color.white);
                    panel7.setLayout(new FormLayout(
                            new ColumnSpec[] { new ColumnSpec(Sizes.dluX(31)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(58)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(63)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(35)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(46)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            new RowSpec[] { new RowSpec(Sizes.dluY(40)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,

                                    new RowSpec(RowSpec.CENTER, Sizes.dluY(63), FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
                    // ---- comboBox11 ----
                    Vector deviceType = new Vector();
                    deviceType = model.getSubclasses("Device");
                    comboBox11 = new JComboBox(deviceType);
                    comboBox11.setSelectedIndex(0);
                    comboBox11.addActionListener(this);
                    panel7.add(comboBox11, cc.xy(5, 3));
                    // ---- label12 ----
                    label12.setText("Device ID");
                    panel7.add(label12, cc.xy(3, 5));
                    // ---- comboBox12 ----
                    comboBox12.addActionListener(this);
                    comboBox12.addItemListener(new ItemListener() {
                        public void itemStateChanged(ItemEvent e) {
                            if (e.getStateChange() == ItemEvent.SELECTED) {
                                setCurrentDeviceLocation(comboBox12, comboBox13);
                                setCurrentDeviceValue(comboBox12, comboBox14);
                                setCurrentDeviceTimestamp(comboBox12, textField3);
                            }
                        }
                    });
                    panel7.add(comboBox12, cc.xy(5, 5));
                    // ---- label13 ----
                    label13.setText("Device Location");
                    panel7.add(label13, cc.xy(3, 7));
                    // ---- label14 ----
                    label14.setText("Device Status");
                    panel7.add(label14, cc.xy(3, 9));
                    // ---- comboBox13 ----
                    Vector deviceLoc = new Vector();
                    deviceLoc = model.getIndividuals("IndoorSpace");
                    comboBox13 = new JComboBox(deviceLoc);
                    comboBox13.addActionListener(this);
                    panel7.add(comboBox13, cc.xy(5, 7));
                    // ---- button10 ----
                    button10.setSelectedIcon(null);
                    button10.setAction(action6);
                    panel7.add(button10, cc.xy(9, 7));
                    // ---- comboBox14 ----
                    Vector deviceValue = new Vector();
                    deviceValue = model.getAllowableValues("deviceStatus");
                    comboBox14 = new JComboBox(deviceValue);
                    comboBox14.addActionListener(this);
                    panel7.add(comboBox14, cc.xy(5, 9));
                    // ---- button11 ----
                    button11.setAction(action7);
                    panel7.add(button11, cc.xy(9, 9));

                    // ---- label15 ----
                    label15.setText("Timestamp");
                    panel7.add(label15, cc.xy(3, 11));
                    // ---- textField3 ----
                    textField3.setEnabled(false);
                    textField3.setEnabled(false);
                    panel7.add(textField3, cc.xy(5, 11));
                    // ---- button4 ----
                    button4.setAction(action8);
                    button4.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            button2ActionPerformed(e);
                        }
                    });
                    panel7.add(button4, cc.xy(9, 11));
                    // ======== simpleInternalFrame2 ========
                    {
                        simpleInternalFrame2.setTitle("text");
                        Container simpleInternalFrame2ContentPane = simpleInternalFrame2.getContentPane();
                        simpleInternalFrame2ContentPane.setLayout(new FormLayout("default", "default"));
                    }
                    panel7.add(simpleInternalFrame2, cc.xywh(1, 1, 11, 13));
                    // ---- label11 ----
                    label11.setText("Device Type");
                    panel7.add(label11, cc.xywh(3, 3, 9, 1));
                }
                tabbedPane2.addTab("Devices",
                        new ImageIcon(getClass().getResource("/smarthouse/images/device1.png")), panel7);
                // ======== panel6 ========
                {
                    panel6.setBackground(Color.white);
                    panel6.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(31)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(58)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(63)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(35)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(46)),
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            new RowSpec[] {

                                    new RowSpec(Sizes.dluY(40)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY11) }));
                    // ---- label1 ----
                    label1.setText("Sensor Type");
                    panel6.add(label1, cc.xy(3, 3));
                    // ---- comboBox16 ----
                    Vector sensorType = new Vector();
                    sensorType = model.getSubclasses("Sensor");
                    comboBox16 = new JComboBox(sensorType);
                    comboBox16.setSelectedIndex(0);
                    comboBox16.addActionListener(this);
                    panel6.add(comboBox16, cc.xy(5, 3));
                    // ---- label27 ----
                    label27.setText("Sensor ID");
                    panel6.add(label27, cc.xy(3, 5));
                    panel6.add(textField2, cc.xy(5, 5));
                    // ---- label28 ----
                    label28.setText("Sensor Location");
                    panel6.add(label28, cc.xy(3, 7));
                    // ---- comboBox17 ----
                    Vector sensorLoc = new Vector();
                    sensorLoc = model.getIndividuals("IndoorSpace");
                    comboBox17 = new JComboBox(sensorLoc);
                    comboBox17.addActionListener(this);
                    panel6.add(comboBox17, cc.xy(5, 7));
                    // ---- label17 ----
                    label17.setText("Sensor Value");
                    panel6.add(label17, cc.xy(3, 9));
                    // ---- comboBox18 ----
                    Vector sensorValue = new Vector();
                    sensorValue = model.getAllowableValues("sensorValue");
                    comboBox18 = new JComboBox(sensorValue);
                    // comboBox10.setSelectedItem(s.getSensorValue());
                    comboBox18.addActionListener(this);
                    panel6.add(comboBox18, cc.xy(5, 9));
                    // ---- label18 ----

                    label18.setText("Sensor Status");
                    panel6.add(label18, cc.xy(3, 11));
                    // ---- comboBox19 ----
                    Vector sensorStatus = new Vector();
                    sensorStatus = model.getAllowableValues("deviceStatus");
                    comboBox19 = new JComboBox(sensorStatus);
                    comboBox19.addActionListener(this);
                    panel6.add(comboBox19, cc.xy(5, 11));
                    // ---- button6 ----
                    button6.setAction(action1);
                    panel6.add(button6, cc.xy(9, 11));
                    // ======== simpleInternalFrame3 ========
                    {
                        simpleInternalFrame3.setTitle("text");
                        Container simpleInternalFrame3ContentPane = simpleInternalFrame3.getContentPane();
                        simpleInternalFrame3ContentPane.setLayout(new FormLayout("default", "default"));
                    }
                    panel6.add(simpleInternalFrame3, cc.xywh(1, 1, 13, 13));
                }
                tabbedPane2.addTab("Sensor Management",
                        new ImageIcon(getClass().getResource("/smarthouse/images/sensor1.png")), panel6);
                // ======== panel8 ========
                {
                    panel8.setBackground(Color.white);
                    panel8.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(29)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(58)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(63)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(35)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(47)),
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            new RowSpec[] { new RowSpec(Sizes.dluY(40)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(20)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(21)),

                                    FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(21)),
                                    FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY11),
                                    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("Device Type");
                    panel8.add(label2, cc.xy(3, 3));
                    // ---- comboBox20 ----
                    Vector sensorType = new Vector();
                    sensorType = model.getSubclasses("Device");
                    comboBox20 = new JComboBox(sensorType);
                    comboBox20.setSelectedIndex(0);
                    comboBox20.addActionListener(this);
                    panel8.add(comboBox20, cc.xy(5, 3));
                    // ---- label3 ----
                    label3.setText("Device");
                    panel8.add(label3, cc.xy(3, 5));
                    // ---- comboBox22 ----
                    Vector deviceSubType = new Vector();
                    deviceSubType = model.getSubclasses(comboBox20.getSelectedItem().toString());
                    ;
                    comboBox22 = new JComboBox(deviceSubType);

                    comboBox22.setSelectedIndex(comboBox22.getSelectedIndex());
                    comboBox22.addActionListener(this);
                    panel8.add(comboBox22, cc.xy(5, 5));
                    // ---- label29 ----
                    label29.setText("Device ID");
                    panel8.add(label29, cc.xy(3, 7));
                    panel8.add(textField4, cc.xy(5, 7));
                    // ---- label30 ----
                    label30.setText("Device Location");
                    panel8.add(label30, cc.xy(3, 9));
                    // ---- comboBox21 ----
                    Vector sensorLoc = new Vector();
                    sensorLoc = model.getIndividuals("IndoorSpace");
                    comboBox21 = new JComboBox(sensorLoc);
                    comboBox21.addActionListener(this);
                    panel8.add(comboBox21, cc.xy(5, 9));
                    // ---- label20 ----
                    label20.setText("Device Status");
                    panel8.add(label20, cc.xy(3, 11));
                    // ---- comboBox23 ----

                    Vector sensorStatus = new Vector();
                    sensorStatus = model.getAllowableValues("deviceStatus");
                    comboBox23 = new JComboBox(sensorStatus);
                    comboBox23.addActionListener(this);
                    panel8.add(comboBox23, cc.xy(5, 11));
                    // ---- button7 ----
                    button7.setAction(action2);
                    panel8.add(button7, cc.xy(9, 11));
                    // ======== simpleInternalFrame4 ========
                    {
                        simpleInternalFrame4.setTitle("text");
                        Container simpleInternalFrame4ContentPane = simpleInternalFrame4.getContentPane();
                        simpleInternalFrame4ContentPane.setLayout(new FormLayout("default", "default"));
                    }
                    panel8.add(simpleInternalFrame4, cc.xywh(1, 1, 13, 23));
                }
                tabbedPane2.addTab("Device Management",
                        new ImageIcon(getClass().getResource("/smarthouse/images/device2.png")), panel8);
                // ======== panel1 ========
                {
                    panel1.setLayout(new FormLayout(
                            new ColumnSpec[] { new ColumnSpec(Sizes.dluX(29)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(59)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(71)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(75)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(63)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(31)),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(68)) },
                            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(13)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(69)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(69)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(69)), FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(Sizes.dluY(69)), FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC }));
                    // ---- label32 ----
                    label32.setText("Entity");
                    panel1.add(label32, cc.xy(3, 3));

                    // ---- label33 ----
                    label33.setText("State");
                    panel1.add(label33, cc.xy(5, 3));
                    // ---- label4 ----
                    label4.setText("Location");
                    panel1.add(label4, cc.xy(11, 3));
                    // ---- label5 ----
                    label5.setText("Activity");
                    panel1.add(label5, cc.xy(15, 3));
                    // ---- label19 ----
                    label19.setText("Mary");
                    panel1.add(label19, cc.xy(3, 5));
                    // ---- comboBox1 ----
                    comboBox1.setAction(action9);
                    comboBox1 = ComboUtil.initCombo(comboBox1, states, label24);
                    comboBox1.setSelectedItem(model.getIndividualPropertyValue("Mary", "hasState"));
                    comboBox1.addActionListener(this);
                    panel1.add(comboBox1, cc.xy(5, 5));
                    // ---- button3 ----
                    button3.setAction(action10);
                    panel1.add(button3, cc.xy(7, 5));
                    panel1.add(label24, cc.xy(9, 5));
                    // ---- comboBox4 ----
                    Vector sensorLoc = new Vector();
                    sensorLoc = model.getIndividuals("Location");
                    comboBox4 = new JComboBox(sensorLoc);
                    comboBox4.setSelectedItem(model.getIndividualPropertyValue("Mary", "hasLocation"));
                    panel1.add(comboBox4, cc.xy(11, 5));
                    // ---- comboBox6 ----
                    Vector activity = new Vector();
                    activity = model.getIndividuals("Activity");
                    comboBox6 = new JComboBox(activity);
                    comboBox6.setSelectedItem(model.getIndividualPropertyValue("Mary", "hasActivity"));
                    panel1.add(comboBox6, cc.xy(15, 5));
                    // ---- comboBox27 ----
                    sensorLoc = new Vector();
                    sensorLoc = model.getIndividuals("Location");
                    comboBox27 = new JComboBox(sensorLoc);
                    comboBox27.setSelectedItem(model.getIndividualPropertyValue("LittleJohn", "hasLocation"));
                    panel1.add(comboBox27, cc.xy(11, 11));
                    // ---- comboBox26 ----
                    sensorLoc = new Vector();
                    sensorLoc = model.getIndividuals("Location");
                    comboBox26 = new JComboBox(sensorLoc);
                    comboBox26.setSelectedItem(model.getIndividualPropertyValue("Jane", "hasLocation"));
                    panel1.add(comboBox26, cc.xy(11, 9));
                    // ---- label21 ----
                    label21.setText("John");
                    panel1.add(label21, cc.xy(3, 7));

                    // ---- comboBox2 ----
                    comboBox2.setAction(null);
                    comboBox2 = ComboUtil.initCombo(comboBox2, states, label25);
                    comboBox2.addActionListener(this);
                    comboBox2.setSelectedItem(model.getIndividualPropertyValue("John", "hasState"));
                    panel1.add(comboBox2, cc.xy(5, 7));
                    // ---- button8 ----
                    button8.setAction(action12);
                    panel1.add(button8, cc.xy(7, 7));
                    panel1.add(label25, cc.xy(9, 7));
                    // ---- comboBox24 ----
                    sensorLoc = new Vector();
                    sensorLoc = model.getIndividuals("Location");
                    comboBox24 = new JComboBox(sensorLoc);
                    comboBox24.setSelectedItem(model.getIndividualPropertyValue("John", "hasLocation"));
                    panel1.add(comboBox24, cc.xy(11, 7));
                    // ---- comboBox28 ----
                    activity = new Vector();
                    activity = model.getIndividuals("Activity");
                    comboBox28 = new JComboBox(activity);
                    comboBox28.setSelectedItem(model.getIndividualPropertyValue("John", "hasActivity"));
                    panel1.add(comboBox28, cc.xy(15, 7));
                    // ---- label22 ----
                    label22.setText("Jane");
                    panel1.add(label22, cc.xy(3, 9));
                    // ---- comboBox3 ----
                    comboBox3 = ComboUtil.initCombo(comboBox3, states, label26);
                    comboBox3.addActionListener(this);
                    comboBox3.setSelectedItem(model.getIndividualPropertyValue("Jane", "hasState"));
                    panel1.add(comboBox3, cc.xy(5, 9));
                    // ---- label23 ----
                    label23.setText("LittleJohn");
                    panel1.add(label23, cc.xy(3, 11));
                    // ---- comboBox5 ----
                    comboBox5 = ComboUtil.initCombo(comboBox5, states, label31);
                    comboBox5.addActionListener(this);
                    comboBox5.setSelectedItem(model.getIndividualPropertyValue("LittleJohn", "hasState"));
                    panel1.add(comboBox5, cc.xy(5, 11));
                    // ---- button12 ----
                    button12.setAction(action13);
                    panel1.add(button12, cc.xy(7, 11));
                    // ---- button9 ----
                    button9.setAction(action14);
                    panel1.add(button9, cc.xy(7, 9));
                    panel1.add(label26, cc.xy(9, 9));
                    panel1.add(comboBox25, cc.xy(11, 9));
                    // ---- comboBox29 ----
                    activity = new Vector();

                    activity = model.getIndividuals("Activity");
                    comboBox29 = new JComboBox(activity);
                    comboBox29.setSelectedItem(model.getIndividualPropertyValue("Jane", "hasActivity"));
                    panel1.add(comboBox29, cc.xy(15, 9));
                    panel1.add(label31, cc.xy(9, 11));
                    // ---- comboBox30 ----
                    activity = new Vector();
                    activity = model.getIndividuals("Activity");
                    comboBox30 = new JComboBox(activity);
                    comboBox30.setSelectedItem(model.getIndividualPropertyValue("LittleJohn", "hasActivity"));
                    panel1.add(comboBox30, cc.xy(15, 11));
                    // ======== simpleInternalFrame5 ========
                    {
                        simpleInternalFrame5.setTitle("text");
                        Container simpleInternalFrame5ContentPane = simpleInternalFrame5.getContentPane();
                        simpleInternalFrame5ContentPane.setLayout(new FormLayout("default", "default"));
                    }
                    panel1.add(simpleInternalFrame5, cc.xywh(1, 1, 15, 13));
                }
                tabbedPane2.addTab("State Detector",
                        new ImageIcon(getClass().getResource("/smarthouse/images/emoticon.png")), panel1);
            }
            panel5.add(tabbedPane2, cc.xy(1, 1));
        }
        panel2.add(panel5, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
                GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));
        // ======== panel3 ========
        {
            panel3.setBorder(new CompoundBorder(new TitledBorder("Action Log"), new EmptyBorder(5, 5, 5, 5)));
            panel3.setBackground(new Color(205, 225, 255));
            panel3.setLayout(new GridBagLayout());
            ((GridBagLayout) panel3.getLayout()).columnWidths = new int[] { 95, 0 };
            ((GridBagLayout) panel3.getLayout()).rowHeights = new int[] { 243, 0 };
            ((GridBagLayout) panel3.getLayout()).columnWeights = new double[] { 1.0, 1.0E-4 };
            ((GridBagLayout) panel3.getLayout()).rowWeights = new double[] { 1.0, 1.0E-4 };
            setCurrentComboValues();
            // ======== scrollPane1 ========
            {
                scrollPane1.setViewportView(textArea1);
            }
            panel3.add(scrollPane1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
                    GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
        }
        panel2.add(panel3, new GridBagConstraints(0, 1, 1, 2, 0.0, 0.0, GridBagConstraints.CENTER,
                GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    }
    // JFormDesigner - End of component initialization
    // //GEN-END:initComponents
}