Example usage for com.jgoodies.forms.factories Borders DLU2

List of usage examples for com.jgoodies.forms.factories Borders DLU2

Introduction

In this page you can find the example usage for com.jgoodies.forms.factories Borders DLU2.

Prototype

Border DLU2

To view the source code for com.jgoodies.forms.factories Borders DLU2.

Click Source Link

Document

A prepared and reusable Border with 2dlu on all sides.

Usage

From source file:com.maheffa.TabulatedOCR.GUI.Configuration.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Mahefa Manitrativo
    tabbedPane1 = new JTabbedPane();
    panel1 = new JPanel();
    panel4 = new JPanel();
    label2 = new JLabel();
    txtDPI = new JTextField();
    label15 = new JLabel();
    comboLang = new JComboBox();
    label19 = new JLabel();
    checkNoiseRemoveTesseract = new JCheckBox();
    label21 = new JLabel();
    checkDictionary = new JCheckBox();
    panel9 = new JPanel();
    panel12 = new JPanel();
    label3 = new JLabel();
    label4 = new JLabel();
    panel13 = new JPanel();
    comboGrayscale = new JComboBox();
    checkBinary = new JCheckBox();
    panel6 = new JPanel();
    label20 = new JLabel();
    checkDeskew = new JCheckBox();
    label14 = new JLabel();
    txtMaxAngleTolerance = new JTextField();
    panel3 = new JPanel();
    panel10 = new JPanel();
    panel14 = new JPanel();
    label5 = new JLabel();
    label6 = new JLabel();
    panel15 = new JPanel();
    txtRadius = new JTextField();
    txtMargin = new JTextField();
    panel11 = new JPanel();
    panel17 = new JPanel();
    label7 = new JLabel();
    label8 = new JLabel();
    label9 = new JLabel();
    label10 = new JLabel();
    label11 = new JLabel();
    label12 = new JLabel();
    label13 = new JLabel();
    panel18 = new JPanel();
    txtThreshold1 = new JTextField();
    txtThreshold2 = new JTextField();
    txtDistanceAccumulation = new JTextField();
    txtAngleAccumulation = new JTextField();
    txtAccumulationThreshold = new JTextField();
    txtMinimumLineLength = new JTextField();
    txtMaxGap = new JTextField();
    panel5 = new JPanel();
    label16 = new JLabel();
    txtMaxLineDistance = new JTextField();
    label17 = new JLabel();
    txtMaxLineGap = new JTextField();
    label18 = new JLabel();
    txtThickness = new JTextField();
    panel2 = new JPanel();
    label1 = new JLabel();
    txtConfigurationName = new JTextField();
    butSave = new JButton();
    panel7 = new JPanel();
    butDelete = new JButton();
    comboConfigList = new JComboBox();

    //======== this ========
    setBorder(Borders.DLU4);/*from w ww.  j av  a2 s.  c om*/

    // JFormDesigner evaluation mark
    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),
                    getBorder()));
    addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent e) {
            if ("border".equals(e.getPropertyName()))
                throw new RuntimeException();
        }
    });

    setLayout(new GridBagLayout());
    ((GridBagLayout) getLayout()).columnWidths = new int[] { 0, 0, 0 };
    ((GridBagLayout) getLayout()).rowHeights = new int[] { 0, 0, 0, 0, 0 };
    ((GridBagLayout) getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
    ((GridBagLayout) getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 1.0E-4 };

    //======== tabbedPane1 ========
    {
        tabbedPane1.setBorder(Borders.DLU4);

        //======== panel1 ========
        {
            panel1.setBorder(Borders.DLU4);
            panel1.setLayout(new GridBagLayout());
            ((GridBagLayout) panel1.getLayout()).columnWidths = new int[] { 0, 0, 0 };
            ((GridBagLayout) panel1.getLayout()).rowHeights = new int[] { 0, 0, 0, 0 };
            ((GridBagLayout) panel1.getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
            ((GridBagLayout) panel1.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 1.0E-4 };

            //======== panel4 ========
            {
                panel4.setBorder(new CompoundBorder(new TitledBorder(""), Borders.DLU4));
                panel4.setLayout(new GridBagLayout());
                ((GridBagLayout) panel4.getLayout()).columnWidths = new int[] { 0, 0, 0 };
                ((GridBagLayout) panel4.getLayout()).rowHeights = new int[] { 0, 0, 0, 0, 0 };
                ((GridBagLayout) panel4.getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
                ((GridBagLayout) panel4.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 1.0E-4 };

                //---- label2 ----
                label2.setText("DPI:");
                label2.setHorizontalAlignment(SwingConstants.TRAILING);
                panel4.add(label2, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));

                //---- txtDPI ----
                txtDPI.setText("300");
                txtDPI.setPreferredSize(new Dimension(80, 26));
                txtDPI.setHorizontalAlignment(SwingConstants.TRAILING);
                panel4.add(txtDPI, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST,
                        GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                //---- label15 ----
                label15.setText("\u042f\u0437\u044b\u043a:");
                label15.setHorizontalAlignment(SwingConstants.TRAILING);
                panel4.add(label15, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));

                //---- comboLang ----
                comboLang.setModel(new DefaultComboBoxModel(new String[] { "eng", "rus", "fra" }));
                panel4.add(comboLang, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST,
                        GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                //---- label19 ----
                label19.setText(
                        "\u0421\u0438\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0448\u0443\u043c\u044b:");
                label19.setHorizontalAlignment(SwingConstants.TRAILING);
                panel4.add(label19, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));
                panel4.add(checkNoiseRemoveTesseract, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0,
                        GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                //---- label21 ----
                label21.setText(
                        "\u0414\u043e\u043f\u043e\u043b\u044c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u043b\u043e\u0432\u0430\u0440\u044c:");
                label21.setHorizontalAlignment(SwingConstants.TRAILING);
                panel4.add(label21, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0));
                panel4.add(checkDictionary, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
                        GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
            }
            panel1.add(panel4, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.NORTH,
                    GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 5), 0, 0));

            //======== panel9 ========
            {
                panel9.setBorder(new CompoundBorder(new TitledBorder(
                        "\u041f\u0435\u0440\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435"),
                        Borders.DLU4));
                panel9.setLayout(new GridBagLayout());
                ((GridBagLayout) panel9.getLayout()).columnWidths = new int[] { 0, 0, 0 };
                ((GridBagLayout) panel9.getLayout()).rowHeights = new int[] { 0, 0 };
                ((GridBagLayout) panel9.getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
                ((GridBagLayout) panel9.getLayout()).rowWeights = new double[] { 0.0, 1.0E-4 };

                //======== panel12 ========
                {
                    panel12.setLayout(new GridBagLayout());
                    ((GridBagLayout) panel12.getLayout()).columnWidths = new int[] { 0, 0 };
                    ((GridBagLayout) panel12.getLayout()).rowHeights = new int[] { 0, 0, 0 };
                    ((GridBagLayout) panel12.getLayout()).columnWeights = new double[] { 0.0, 1.0E-4 };
                    ((GridBagLayout) panel12.getLayout()).rowWeights = new double[] { 0.0, 0.0, 1.0E-4 };

                    //---- label3 ----
                    label3.setText(
                            "\u041c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0447\u0451\u0440\u043d\u043e-\u0431\u0435\u043b\u043e\u0435");
                    panel12.add(label3, new GridBagConstraints(0, 0, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                    //---- label4 ----
                    label4.setText(
                            "\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438");
                    panel12.add(label4, new GridBagConstraints(0, 1, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
                }
                panel9.add(panel12, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.EAST,
                        GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 5), 0, 0));

                //======== panel13 ========
                {
                    panel13.setLayout(new GridBagLayout());
                    ((GridBagLayout) panel13.getLayout()).columnWidths = new int[] { 0, 0 };
                    ((GridBagLayout) panel13.getLayout()).rowHeights = new int[] { 0, 0, 0 };
                    ((GridBagLayout) panel13.getLayout()).columnWeights = new double[] { 0.0, 1.0E-4 };
                    ((GridBagLayout) panel13.getLayout()).rowWeights = new double[] { 0.0, 0.0, 1.0E-4 };

                    //---- comboGrayscale ----
                    comboGrayscale.setModel(
                            new DefaultComboBoxModel(new String[] { "Average", "Luminosity", "Lightness" }));
                    comboGrayscale.setSelectedIndex(1);
                    panel13.add(comboGrayscale, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                    //---- checkBinary ----
                    checkBinary.setSelected(true);
                    panel13.add(checkBinary, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
                }
                panel9.add(panel13, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
            }
            panel1.add(panel9, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                    GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));

            //======== panel6 ========
            {
                panel6.setBorder(new CompoundBorder(new TitledBorder("\u041d\u0430\u043a\u043b\u043e\u043d"),
                        Borders.DLU4));
                panel6.setLayout(new GridBagLayout());
                ((GridBagLayout) panel6.getLayout()).columnWidths = new int[] { 0, 0, 0 };
                ((GridBagLayout) panel6.getLayout()).rowHeights = new int[] { 0, 0, 0, 0 };
                ((GridBagLayout) panel6.getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
                ((GridBagLayout) panel6.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 1.0E-4 };

                //---- label20 ----
                label20.setText(
                        "\u0418\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u043a\u043b\u043e\u043d\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430:");
                label20.setHorizontalAlignment(SwingConstants.TRAILING);
                panel6.add(label20, new GridBagConstraints(0, 0, 1, 1, 0.3, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));
                panel6.add(checkDeskew, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                //---- label14 ----
                label14.setText(
                        "\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438 (\u0433\u0440\u0430\u0434):");
                label14.setHorizontalAlignment(SwingConstants.TRAILING);
                panel6.add(label14, new GridBagConstraints(0, 1, 1, 1, 0.3, 1.0, GridBagConstraints.EAST,
                        GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 5), 0, 0));

                //---- txtMaxAngleTolerance ----
                txtMaxAngleTolerance.setMinimumSize(new Dimension(50, 27));
                txtMaxAngleTolerance.setPreferredSize(new Dimension(50, 27));
                txtMaxAngleTolerance.setHorizontalAlignment(SwingConstants.TRAILING);
                panel6.add(txtMaxAngleTolerance, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0,
                        GridBagConstraints.WEST, GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));
            }
            panel1.add(panel6, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
                    GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0));
        }
        tabbedPane1.addTab("\u041e\u0431\u0449\u0435\u0435", panel1);

        //======== panel3 ========
        {
            panel3.setBorder(Borders.DLU4);
            panel3.setLayout(new GridBagLayout());
            ((GridBagLayout) panel3.getLayout()).columnWidths = new int[] { 0, 0 };
            ((GridBagLayout) panel3.getLayout()).rowHeights = new int[] { 0, 0, 0, 0 };
            ((GridBagLayout) panel3.getLayout()).columnWeights = new double[] { 0.0, 1.0E-4 };
            ((GridBagLayout) panel3.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 1.0E-4 };

            //======== panel10 ========
            {
                panel10.setBorder(new CompoundBorder(new TitledBorder(
                        "\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u043a\u0432"),
                        Borders.DLU4));
                panel10.setLayout(new GridBagLayout());
                ((GridBagLayout) panel10.getLayout()).columnWidths = new int[] { 0, 0, 0 };
                ((GridBagLayout) panel10.getLayout()).rowHeights = new int[] { 0, 0 };
                ((GridBagLayout) panel10.getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
                ((GridBagLayout) panel10.getLayout()).rowWeights = new double[] { 0.0, 1.0E-4 };

                //======== panel14 ========
                {
                    panel14.setLayout(new GridBagLayout());
                    ((GridBagLayout) panel14.getLayout()).columnWidths = new int[] { 0, 0 };
                    ((GridBagLayout) panel14.getLayout()).rowHeights = new int[] { 0, 0, 0 };
                    ((GridBagLayout) panel14.getLayout()).columnWeights = new double[] { 0.0, 1.0E-4 };
                    ((GridBagLayout) panel14.getLayout()).rowWeights = new double[] { 0.0, 0.0, 1.0E-4 };

                    //---- label5 ----
                    label5.setText(
                            "\u0420\u0430\u0434\u0438\u0443\u0441 \u0441\u043c\u0435\u0436\u043d\u043e\u0441\u0442\u0438 (px):");
                    panel14.add(label5, new GridBagConstraints(0, 0, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                    //---- label6 ----
                    label6.setText(
                            "\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0431\u0443\u043a\u0432\u0430\u043c\u0438 (px):");
                    panel14.add(label6, new GridBagConstraints(0, 1, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
                }
                panel10.add(panel14, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.EAST,
                        GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 5), 0, 0));

                //======== panel15 ========
                {
                    panel15.setLayout(new GridBagLayout());
                    ((GridBagLayout) panel15.getLayout()).columnWidths = new int[] { 0, 0 };
                    ((GridBagLayout) panel15.getLayout()).rowHeights = new int[] { 0, 0, 0 };
                    ((GridBagLayout) panel15.getLayout()).columnWeights = new double[] { 0.0, 1.0E-4 };
                    ((GridBagLayout) panel15.getLayout()).rowWeights = new double[] { 0.0, 0.0, 1.0E-4 };

                    //---- txtRadius ----
                    txtRadius.setHorizontalAlignment(SwingConstants.TRAILING);
                    panel15.add(txtRadius, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                    //---- txtMargin ----
                    txtMargin.setHorizontalAlignment(SwingConstants.TRAILING);
                    panel15.add(txtMargin, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
                }
                panel10.add(panel15, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
            }
            panel3.add(panel10, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,
                    GridBagConstraints.BOTH, new Insets(0, 0, 10, 0), 0, 0));

            //======== panel11 ========
            {
                panel11.setBorder(new CompoundBorder(new TitledBorder(
                        "\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438"),
                        Borders.DLU4));
                panel11.setLayout(new GridBagLayout());
                ((GridBagLayout) panel11.getLayout()).columnWidths = new int[] { 0, 0, 0 };
                ((GridBagLayout) panel11.getLayout()).rowHeights = new int[] { 0, 0 };
                ((GridBagLayout) panel11.getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
                ((GridBagLayout) panel11.getLayout()).rowWeights = new double[] { 0.0, 1.0E-4 };

                //======== panel17 ========
                {
                    panel17.setLayout(new GridBagLayout());
                    ((GridBagLayout) panel17.getLayout()).columnWidths = new int[] { 0, 0 };
                    ((GridBagLayout) panel17.getLayout()).rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
                    ((GridBagLayout) panel17.getLayout()).columnWeights = new double[] { 0.0, 1.0E-4 };
                    ((GridBagLayout) panel17.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0,
                            0.0, 0.0, 0.0, 1.0E-4 };

                    //---- label7 ----
                    label7.setText(
                            "\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Canny - \u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0440\u043e\u0433 (px):");
                    panel17.add(label7, new GridBagConstraints(0, 0, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                    //---- label8 ----
                    label8.setText(
                            "\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Canny - \u0412\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0440\u043e\u0433 (px):");
                    panel17.add(label8, new GridBagConstraints(0, 1, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                    //---- label9 ----
                    label9.setText(
                            "\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0425\u0430\u0444\u0430 - \u041f\u0440\u0438\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u0442\u043e\u044f\u043d\u0438\u044f (px):");
                    panel17.add(label9, new GridBagConstraints(0, 2, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                    //---- label10 ----
                    label10.setText(
                            "\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0425\u0430\u0444\u0430 - \u041f\u0440\u0438\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0443\u0433\u043b\u0430 (\u0433\u0440\u0430\u0434):");
                    panel17.add(label10, new GridBagConstraints(0, 3, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                    //---- label11 ----
                    label11.setText(
                            "\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0425\u0430\u0444\u0430 - \u041f\u043e\u0440\u043e\u0433 \u043f\u0440\u0438\u0440\u0430\u0449\u0435\u043d\u0438\u0438: ");
                    panel17.add(label11, new GridBagConstraints(0, 4, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                    //---- label12 ----
                    label12.setText(
                            "\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0425\u0430\u0444\u0430 - \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u043b\u0438\u043d\u0438\u0438 (px):");
                    panel17.add(label12, new GridBagConstraints(0, 5, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));

                    //---- label13 ----
                    label13.setText(
                            "\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0425\u0430\u0444\u0430 - \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \n\u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043b\u0438\u043d\u044f\u043c\u0438 (px):");
                    panel17.add(label13, new GridBagConstraints(0, 6, 1, 1, 0.0, 1.0, GridBagConstraints.EAST,
                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));
                }
                panel11.add(panel17, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST,
                        GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 5), 0, 0));

                //======== panel18 ========
                {
                    panel18.setLayout(new GridBagLayout());
                    ((GridBagLayout) panel18.getLayout()).columnWidths = new int[] { 0, 0 };
                    ((GridBagLayout) panel18.getLayout()).rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
                    ((GridBagLayout) panel18.getLayout()).columnWeights = new double[] { 0.0, 1.0E-4 };
                    ((GridBagLayout) panel18.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0,
                            0.0, 0.0, 0.0, 1.0E-4 };

                    //---- txtThreshold1 ----
                    txtThreshold1.setMinimumSize(new Dimension(50, 27));
                    txtThreshold1.setPreferredSize(new Dimension(50, 27));
                    txtThreshold1.setHorizontalAlignment(SwingConstants.TRAILING);
                    panel18.add(txtThreshold1, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                    //---- txtThreshold2 ----
                    txtThreshold2.setMinimumSize(new Dimension(50, 27));
                    txtThreshold2.setPreferredSize(new Dimension(50, 27));
                    txtThreshold2.setHorizontalAlignment(SwingConstants.TRAILING);
                    panel18.add(txtThreshold2, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                    //---- txtDistanceAccumulation ----
                    txtDistanceAccumulation.setMinimumSize(new Dimension(50, 27));
                    txtDistanceAccumulation.setPreferredSize(new Dimension(50, 27));
                    txtDistanceAccumulation.setHorizontalAlignment(SwingConstants.TRAILING);
                    panel18.add(txtDistanceAccumulation, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                    //---- txtAngleAccumulation ----
                    txtAngleAccumulation.setMinimumSize(new Dimension(50, 27));
                    txtAngleAccumulation.setPreferredSize(new Dimension(50, 27));
                    txtAngleAccumulation.setText("0.12354569");
                    txtAngleAccumulation.setHorizontalAlignment(SwingConstants.TRAILING);
                    panel18.add(txtAngleAccumulation, new GridBagConstraints(0, 3, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                    //---- txtAccumulationThreshold ----
                    txtAccumulationThreshold.setMinimumSize(new Dimension(50, 27));
                    txtAccumulationThreshold.setPreferredSize(new Dimension(50, 27));
                    txtAccumulationThreshold.setHorizontalAlignment(SwingConstants.TRAILING);
                    panel18.add(txtAccumulationThreshold, new GridBagConstraints(0, 4, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                    //---- txtMinimumLineLength ----
                    txtMinimumLineLength.setMinimumSize(new Dimension(50, 27));
                    txtMinimumLineLength.setPreferredSize(new Dimension(50, 27));
                    txtMinimumLineLength.setHorizontalAlignment(SwingConstants.TRAILING);
                    panel18.add(txtMinimumLineLength, new GridBagConstraints(0, 5, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                    //---- txtMaxGap ----
                    txtMaxGap.setMinimumSize(new Dimension(50, 27));
                    txtMaxGap.setPreferredSize(new Dimension(50, 27));
                    txtMaxGap.setHorizontalAlignment(SwingConstants.TRAILING);
                    panel18.add(txtMaxGap, new GridBagConstraints(0, 6, 1, 1, 1.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));
                }
                panel11.add(panel18, new GridBagConstraints(1, 0, 1, 1, 4.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
            }
            panel3.add(panel11, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,
                    GridBagConstraints.BOTH, new Insets(0, 0, 10, 0), 0, 0));

            //======== panel5 ========
            {
                panel5.setBorder(new CompoundBorder(new TitledBorder(
                        "\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446"),
                        Borders.DLU4));
                panel5.setLayout(new GridBagLayout());
                ((GridBagLayout) panel5.getLayout()).columnWidths = new int[] { 0, 0, 0 };
                ((GridBagLayout) panel5.getLayout()).rowHeights = new int[] { 0, 0, 0, 0 };
                ((GridBagLayout) panel5.getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
                ((GridBagLayout) panel5.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 1.0E-4 };

                //---- label16 ----
                label16.setText(
                        "\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043b\u0438\u043d\u0438\u044f\u043c\u0438 (px):");
                label16.setHorizontalAlignment(SwingConstants.TRAILING);
                panel5.add(label16, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));

                //---- txtMaxLineDistance ----
                txtMaxLineDistance.setHorizontalAlignment(SwingConstants.TRAILING);
                panel5.add(txtMaxLineDistance, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0,
                        GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                //---- label17 ----
                label17.setText(
                        "\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u043c\u0435\u0436\u043d\u044b\u043c\u0438 \u043b\u0438\u043d\u0438\u044f\u043c\u0438 (px):");
                label17.setHorizontalAlignment(SwingConstants.TRAILING);
                panel5.add(label17, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));

                //---- txtMaxLineGap ----
                txtMaxLineGap.setHorizontalAlignment(SwingConstants.TRAILING);
                panel5.add(txtMaxLineGap, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0,
                        GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                //---- label18 ----
                label18.setText(
                        "\u0422\u043e\u043b\u0449\u0438\u043d\u0430 \u043b\u0438\u043d\u0438\u0438 (px):");
                label18.setHorizontalAlignment(SwingConstants.TRAILING);
                panel5.add(label18, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0));

                //---- txtThickness ----
                txtThickness.setHorizontalAlignment(SwingConstants.TRAILING);
                panel5.add(txtThickness, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER,
                        GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
            }
            panel3.add(panel5, new GridBagConstraints(0, 2, 1, 1, 0.0, 1.0, GridBagConstraints.CENTER,
                    GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
        }
        tabbedPane1.addTab("\u041f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440", panel3);
    }
    add(tabbedPane1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 0, 5, 5), 0, 0));

    //======== panel2 ========
    {
        panel2.setBorder(Borders.DLU2);
        panel2.setLayout(new GridBagLayout());
        ((GridBagLayout) panel2.getLayout()).columnWidths = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
        ((GridBagLayout) panel2.getLayout()).rowHeights = new int[] { 0, 0 };
        ((GridBagLayout) panel2.getLayout()).columnWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
                0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4 };
        ((GridBagLayout) panel2.getLayout()).rowWeights = new double[] { 0.0, 1.0E-4 };

        //---- label1 ----
        label1.setText("\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435:");
        panel2.add(label1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
                GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0));

        //---- txtConfigurationName ----
        txtConfigurationName.setMinimumSize(new Dimension(150, 27));
        txtConfigurationName.setPreferredSize(new Dimension(200, 27));
        panel2.add(txtConfigurationName, new GridBagConstraints(1, 0, 1, 1, 2.0, 0.0, GridBagConstraints.CENTER,
                GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0));

        //---- butSave ----
        butSave.setText("\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c");
        butSave.setHorizontalAlignment(SwingConstants.TRAILING);
        butSave.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                butSaveConfigActionPerformed(e);
            }
        });
        panel2.add(butSave, new GridBagConstraints(11, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST,
                GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
    }
    add(panel2, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH,
            new Insets(0, 0, 5, 5), 0, 0));

    //======== panel7 ========
    {
        panel7.setLayout(new GridBagLayout());
        ((GridBagLayout) panel7.getLayout()).columnWidths = new int[] { 0, 0, 0 };
        ((GridBagLayout) panel7.getLayout()).rowHeights = new int[] { 0, 0 };
        ((GridBagLayout) panel7.getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
        ((GridBagLayout) panel7.getLayout()).rowWeights = new double[] { 0.0, 1.0E-4 };

        //---- butDelete ----
        butDelete.setText("\u0423\u0434\u0430\u043b\u0438\u0442\u044c");
        butDelete.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                butDeleteActionPerformed(e);
            }
        });
        panel7.add(butDelete, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
                GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0));

        //---- comboConfigList ----
        comboConfigList.addItemListener(new ItemListener() {
            @Override
            public void itemStateChanged(ItemEvent e) {
                comboConfigListItemStateChanged(e);
            }
        });
        panel7.add(comboConfigList, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST,
                GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
    }
    add(panel7, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST,
            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 5), 0, 0));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.maheffa.TabulatedOCR.GUI.OcrMainForm.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Mahefa Manitrativo
    mainFrame = new JFrame();
    menuBar1 = new JMenuBar();
    menu1 = new JMenu();
    menuQuit = new JMenuItem();
    menu3 = new JMenu();
    menuConfig = new JMenuItem();
    menuCreateTableFormat = new JMenuItem();
    menuCreateTextFormat = new JMenuItem();
    menu5 = new JMenu();
    menuLaunch = new JMenuItem();
    menuStop = new JMenuItem();
    menuRelaunch = new JMenuItem();
    menu4 = new JMenu();
    menuAbout = new JMenuItem();
    splitPane2 = new JSplitPane();
    panel1 = new JPanel();
    splitPane4 = new JSplitPane();
    panel14 = new JPanel();
    scrollPane5 = new JScrollPane();
    listProject = new JList();
    panel5 = new JPanel();
    butAddProject = new JButton();
    butEditProject = new JButton();
    butDeleteProject = new JButton();
    scrollPane2 = new JScrollPane();
    labelInfoProject = new JLabel();
    splitPane3 = new JSplitPane();
    panel3 = new JPanel();
    scrollPane3 = new JScrollPane();
    tabbedPaneData = new JTabbedPane();
    panelImage = new ImagePanel();
    panel12 = new JPanel();
    panelResult = new ImagePanel();
    scrollPane7 = new JScrollPane();
    txtResult = new JTextArea();
    button1 = new JButton();
    scrollPane4 = new JScrollPane();
    tabbedPaneProgress = new JTabbedPane();
    panelBinary = new ImagePanel();
    panelHough = new ImagePanel();
    panelDeskew = new ImagePanel();
    panelTable = new ImagePanel();
    panelCell = new ImagePanel();
    labelProgress = new JLabel();
    progressbar = new JProgressBar();
    panel2 = new JPanel();
    panel4 = new JPanel();
    scrollPane6 = new JScrollPane();
    listFormat = new JList();
    butEditFormat = new JButton();
    butDeleteFormat = new JButton();
    scrollPane1 = new JScrollPane();
    labelInfoFormat = new JLabel();

    //======== mainFrame ========
    {/*ww  w  .j  ava  2  s.  c  om*/
        mainFrame.setMinimumSize(new Dimension(300, 500));
        Container mainFrameContentPane = mainFrame.getContentPane();
        mainFrameContentPane.setLayout(new GridLayout());

        //======== menuBar1 ========
        {

            //======== menu1 ========
            {
                menu1.setText("\u0424\u0430\u0439\u043b");
                menu1.setIcon(null);
                menu1.addSeparator();
                menu1.addSeparator();

                //---- menuQuit ----
                menuQuit.setText("\u0412\u044b\u0439\u0442\u0438");
                menuQuit.setIcon(
                        new ImageIcon("/home/mahefa/Workspace/Java/Tabulated OCR/icons/exit_small.png"));
                menuQuit.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        menuQuitActionPerformed(e);
                    }
                });
                menu1.add(menuQuit);
            }
            menuBar1.add(menu1);

            //======== menu3 ========
            {
                menu3.setText("\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f");
                menu3.setIcon(null);

                //---- menuConfig ----
                menuConfig.setText(
                        "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u043e\u043d\u0438\u044f");
                menuConfig.setIcon(
                        new ImageIcon("/home/mahefa/Workspace/Java/Tabulated OCR/icons/setting_small.png"));
                menuConfig.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        menuConfigActionPerformed(e);
                    }
                });
                menu3.add(menuConfig);
                menu3.addSeparator();

                //---- menuCreateTableFormat ----
                menuCreateTableFormat.setText(
                        "\u0421\u043e\u0437\u0430\u0434\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442");
                menuCreateTableFormat.setIcon(
                        new ImageIcon("/home/mahefa/Workspace/Java/Tabulated OCR/icons/add_small.png"));
                menuCreateTableFormat.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        menuCreateFormatActionPerformed(e);
                    }
                });
                menu3.add(menuCreateTableFormat);

                //---- menuCreateTextFormat ----
                menuCreateTextFormat.setText(
                        "\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442");
                menuCreateTextFormat.setIcon(
                        new ImageIcon("/home/mahefa/Workspace/Java/Tabulated OCR/icons/add_small.png"));
                menuCreateTextFormat.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        menuCreateTextFormatActionPerformed(e);
                    }
                });
                menu3.add(menuCreateTextFormat);
            }
            menuBar1.add(menu3);

            //======== menu5 ========
            {
                menu5.setText("\u0420\u0430\u0441\u043f\u043e\u0437\u043d\u043e\u0432\u0430\u043d\u0438\u0435");

                //---- menuLaunch ----
                menuLaunch.setText("\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c");
                menuLaunch.setIcon(
                        new ImageIcon("/home/mahefa/Workspace/Java/Tabulated OCR/icons/play_small.png"));
                menuLaunch.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        menuLaunchActionPerformed(e);
                    }
                });
                menu5.add(menuLaunch);

                //---- menuStop ----
                menuStop.setText("\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c");
                menuStop.setIcon(
                        new ImageIcon("/home/mahefa/Workspace/Java/Tabulated OCR/icons/stop_small.png"));
                menuStop.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        menuStopActionPerformed(e);
                    }
                });
                menu5.add(menuStop);

                //---- menuRelaunch ----
                menuRelaunch.setText("\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u044c");
                menuRelaunch.setIcon(
                        new ImageIcon("/home/mahefa/Workspace/Java/Tabulated OCR/icons/replay_small.png"));
                menuRelaunch.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        menuRelaunchActionPerformed(e);
                    }
                });
                menu5.add(menuRelaunch);
            }
            menuBar1.add(menu5);

            //======== menu4 ========
            {
                menu4.setText("\u041f\u043e\u043c\u043e\u0449\u044c");

                //---- menuAbout ----
                menuAbout.setText("\u041e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438");
                menuAbout.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        menuAboutActionPerformed(e);
                    }
                });
                menu4.add(menuAbout);
            }
            menuBar1.add(menu4);
        }
        mainFrame.setJMenuBar(menuBar1);

        //======== splitPane2 ========
        {

            //======== panel1 ========
            {
                panel1.setPreferredSize(new Dimension(250, 449));
                panel1.setBorder(new TitledBorder("\u041f\u0440\u043e\u0435\u043a\u0442\u044b"));
                panel1.setMinimumSize(new Dimension(150, 447));

                // JFormDesigner evaluation mark
                panel1.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),
                        panel1.getBorder()));
                panel1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
                    public void propertyChange(java.beans.PropertyChangeEvent e) {
                        if ("border".equals(e.getPropertyName()))
                            throw new RuntimeException();
                    }
                });

                panel1.setLayout(new GridLayout());

                //======== splitPane4 ========
                {
                    splitPane4.setOrientation(JSplitPane.VERTICAL_SPLIT);
                    splitPane4.setResizeWeight(0.5);

                    //======== panel14 ========
                    {
                        panel14.setBorder(Borders.DLU4);
                        panel14.setPreferredSize(new Dimension(169, 400));
                        panel14.setLayout(new GridBagLayout());
                        ((GridBagLayout) panel14.getLayout()).columnWidths = new int[] { 71, 0 };
                        ((GridBagLayout) panel14.getLayout()).rowHeights = new int[] { 0, 0, 0 };
                        ((GridBagLayout) panel14.getLayout()).columnWeights = new double[] { 0.0, 1.0E-4 };
                        ((GridBagLayout) panel14.getLayout()).rowWeights = new double[] { 0.0, 0.0, 1.0E-4 };

                        //======== scrollPane5 ========
                        {

                            //---- listProject ----
                            listProject.addListSelectionListener(new ListSelectionListener() {
                                @Override
                                public void valueChanged(ListSelectionEvent e) {
                                    listProjectValueChanged(e);
                                }
                            });
                            scrollPane5.setViewportView(listProject);
                        }
                        panel14.add(scrollPane5,
                                new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,
                                        GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                        //======== panel5 ========
                        {
                            panel5.setLayout(new GridBagLayout());
                            ((GridBagLayout) panel5.getLayout()).columnWidths = new int[] { 0, 0, 0, 0 };
                            ((GridBagLayout) panel5.getLayout()).rowHeights = new int[] { 0, 0, 0, 0 };
                            ((GridBagLayout) panel5.getLayout()).columnWeights = new double[] { 0.0, 0.0, 0.0,
                                    1.0E-4 };
                            ((GridBagLayout) panel5.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0,
                                    1.0E-4 };

                            //---- butAddProject ----
                            butAddProject.setPreferredSize(new Dimension(35, 25));
                            butAddProject.addActionListener(new ActionListener() {
                                @Override
                                public void actionPerformed(ActionEvent e) {
                                    butAddProjectActionPerformed(e);
                                }
                            });
                            panel5.add(butAddProject,
                                    new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.EAST,
                                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 5), 0, 0));

                            //---- butEditProject ----
                            butEditProject.setIcon(null);
                            butEditProject.setPreferredSize(new Dimension(35, 25));
                            butEditProject.addActionListener(new ActionListener() {
                                @Override
                                public void actionPerformed(ActionEvent e) {
                                    butEditProjectActionPerformed(e);
                                }
                            });
                            panel5.add(butEditProject,
                                    new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.EAST,
                                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 5), 0, 0));

                            //---- butDeleteProject ----
                            butDeleteProject.setPreferredSize(new Dimension(35, 25));
                            butDeleteProject.addActionListener(new ActionListener() {
                                @Override
                                public void actionPerformed(ActionEvent e) {
                                    butDeleteProjectActionPerformed(e);
                                }
                            });
                            panel5.add(butDeleteProject,
                                    new GridBagConstraints(2, 0, 1, 1, 1.0, 0.0, GridBagConstraints.EAST,
                                            GridBagConstraints.VERTICAL, new Insets(0, 0, 5, 0), 0, 0));
                        }
                        panel14.add(panel5,
                                new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST,
                                        GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
                    }
                    splitPane4.setTopComponent(panel14);

                    //======== scrollPane2 ========
                    {
                        scrollPane2.setBorder(Borders.DLU4);
                        scrollPane2.setViewportView(labelInfoProject);
                    }
                    splitPane4.setBottomComponent(scrollPane2);
                }
                panel1.add(splitPane4);
            }
            splitPane2.setLeftComponent(panel1);

            //======== splitPane3 ========
            {
                splitPane3.setResizeWeight(0.8);

                //======== panel3 ========
                {
                    panel3.setBorder(Borders.DLU2);
                    panel3.setMinimumSize(new Dimension(300, 79));
                    panel3.setPreferredSize(new Dimension(300, 300));
                    panel3.setLayout(new GridBagLayout());
                    ((GridBagLayout) panel3.getLayout()).columnWidths = new int[] { 0, 0 };
                    ((GridBagLayout) panel3.getLayout()).rowHeights = new int[] { 0, 0, 0, 0, 0 };
                    ((GridBagLayout) panel3.getLayout()).columnWeights = new double[] { 1.0, 1.0E-4 };
                    ((GridBagLayout) panel3.getLayout()).rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0,
                            1.0E-4 };

                    //======== scrollPane3 ========
                    {
                        scrollPane3.setPreferredSize(new Dimension(0, 300));
                        scrollPane3.setBackground(new Color(153, 153, 153));
                        scrollPane3.setOpaque(false);
                        scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane3.setBorder(Borders.DLU4);

                        //======== tabbedPaneData ========
                        {

                            //======== panelImage ========
                            {
                                panelImage.setLayout(new GridBagLayout());
                                ((GridBagLayout) panelImage.getLayout()).columnWidths = new int[] { 0, 0 };
                                ((GridBagLayout) panelImage.getLayout()).rowHeights = new int[] { 0, 0 };
                                ((GridBagLayout) panelImage.getLayout()).columnWeights = new double[] { 0.0,
                                        1.0E-4 };
                                ((GridBagLayout) panelImage.getLayout()).rowWeights = new double[] { 0.0,
                                        1.0E-4 };
                            }
                            tabbedPaneData.addTab("\u0418\u0441\u0445\u043e\u0434\u043d\u043e\u0435",
                                    panelImage);

                            //======== panel12 ========
                            {
                                panel12.setLayout(new GridBagLayout());
                                ((GridBagLayout) panel12.getLayout()).columnWidths = new int[] { 0, 0 };
                                ((GridBagLayout) panel12.getLayout()).rowHeights = new int[] { 0, 0, 0 };
                                ((GridBagLayout) panel12.getLayout()).columnWeights = new double[] { 0.0,
                                        1.0E-4 };
                                ((GridBagLayout) panel12.getLayout()).rowWeights = new double[] { 0.0, 0.0,
                                        1.0E-4 };

                                //======== panelResult ========
                                {
                                    panelResult.setLayout(new GridBagLayout());
                                    ((GridBagLayout) panelResult.getLayout()).columnWidths = new int[] { 0, 0 };
                                    ((GridBagLayout) panelResult.getLayout()).rowHeights = new int[] { 0, 0 };
                                    ((GridBagLayout) panelResult.getLayout()).columnWeights = new double[] {
                                            0.0, 1.0E-4 };
                                    ((GridBagLayout) panelResult.getLayout()).rowWeights = new double[] { 0.0,
                                            1.0E-4 };

                                    //======== scrollPane7 ========
                                    {
                                        scrollPane7.setViewportView(txtResult);
                                    }
                                    panelResult.add(scrollPane7,
                                            new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,
                                                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                                                    new Insets(0, 0, 0, 0), 0, 0));
                                }
                                panel12.add(panelResult,
                                        new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,
                                                GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                                //---- button1 ----
                                button1.setText(
                                        "\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c");
                                panel12.add(button1,
                                        new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST,
                                                GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
                            }
                            tabbedPaneData.addTab("\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442",
                                    panel12);
                        }
                        scrollPane3.setViewportView(tabbedPaneData);
                    }
                    panel3.add(scrollPane3, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

                    //======== scrollPane4 ========
                    {
                        scrollPane4.setPreferredSize(new Dimension(0, 300));
                        scrollPane4.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane4.setBorder(Borders.DLU4);

                        //======== tabbedPaneProgress ========
                        {

                            //======== panelBinary ========
                            {
                                panelBinary.setLayout(new GridBagLayout());
                                ((GridBagLayout) panelBinary.getLayout()).columnWidths = new int[] { 0, 0, 0, 0,
                                        0, 0, 0, 0, 0, 0 };
                                ((GridBagLayout) panelBinary.getLayout()).rowHeights = new int[] { 0, 0, 0, 0,
                                        0, 0, 0 };
                                ((GridBagLayout) panelBinary.getLayout()).columnWeights = new double[] { 0.0,
                                        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4 };
                                ((GridBagLayout) panelBinary.getLayout()).rowWeights = new double[] { 0.0, 0.0,
                                        0.0, 0.0, 0.0, 0.0, 1.0E-4 };
                            }
                            tabbedPaneProgress.addTab("\u0411\u0438\u043d\u0430\u0440\u043d\u043e\u0435",
                                    panelBinary);

                            //======== panelHough ========
                            {
                                panelHough.setLayout(new GridBagLayout());
                                ((GridBagLayout) panelHough.getLayout()).columnWidths = new int[] { 0, 0 };
                                ((GridBagLayout) panelHough.getLayout()).rowHeights = new int[] { 0, 0 };
                                ((GridBagLayout) panelHough.getLayout()).columnWeights = new double[] { 0.0,
                                        1.0E-4 };
                                ((GridBagLayout) panelHough.getLayout()).rowWeights = new double[] { 0.0,
                                        1.0E-4 };
                            }
                            tabbedPaneProgress.addTab("\u0425\u0430\u0444", panelHough);

                            //======== panelDeskew ========
                            {
                                panelDeskew.setLayout(new GridBagLayout());
                                ((GridBagLayout) panelDeskew.getLayout()).columnWidths = new int[] { 0, 0 };
                                ((GridBagLayout) panelDeskew.getLayout()).rowHeights = new int[] { 0, 0 };
                                ((GridBagLayout) panelDeskew.getLayout()).columnWeights = new double[] { 0.0,
                                        1.0E-4 };
                                ((GridBagLayout) panelDeskew.getLayout()).rowWeights = new double[] { 0.0,
                                        1.0E-4 };
                            }
                            tabbedPaneProgress.addTab(
                                    "\u0423\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u0435",
                                    panelDeskew);

                            //======== panelTable ========
                            {
                                panelTable.setLayout(new GridBagLayout());
                                ((GridBagLayout) panelTable.getLayout()).columnWidths = new int[] { 0, 0 };
                                ((GridBagLayout) panelTable.getLayout()).rowHeights = new int[] { 0, 0 };
                                ((GridBagLayout) panelTable.getLayout()).columnWeights = new double[] { 0.0,
                                        1.0E-4 };
                                ((GridBagLayout) panelTable.getLayout()).rowWeights = new double[] { 0.0,
                                        1.0E-4 };
                            }
                            tabbedPaneProgress.addTab("\u0422\u0430\u0431\u043b\u0438\u0446\u0430", panelTable);

                            //======== panelCell ========
                            {
                                panelCell.setLayout(new GridBagLayout());
                                ((GridBagLayout) panelCell.getLayout()).columnWidths = new int[] { 0, 0 };
                                ((GridBagLayout) panelCell.getLayout()).rowHeights = new int[] { 0, 0 };
                                ((GridBagLayout) panelCell.getLayout()).columnWeights = new double[] { 0.0,
                                        1.0E-4 };
                                ((GridBagLayout) panelCell.getLayout()).rowWeights = new double[] { 0.0,
                                        1.0E-4 };
                            }
                            tabbedPaneProgress.addTab("\u041a\u043b\u0435\u0442\u043a\u0438", panelCell);
                        }
                        scrollPane4.setViewportView(tabbedPaneProgress);
                    }
                    panel3.add(scrollPane4, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

                    //---- labelProgress ----
                    labelProgress.setText("<html><i>progress ...</i></html>");
                    labelProgress.setVisible(false);
                    panel3.add(labelProgress, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

                    //---- progressbar ----
                    progressbar.setVisible(false);
                    panel3.add(progressbar, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
                }
                splitPane3.setLeftComponent(panel3);

                //======== panel2 ========
                {
                    panel2.setPreferredSize(new Dimension(150, 440));
                    panel2.setBorder(Borders.DLU2);
                    panel2.setMinimumSize(new Dimension(150, 450));
                    panel2.setMaximumSize(new Dimension(300, 2147483647));
                    panel2.setLayout(new GridBagLayout());
                    ((GridBagLayout) panel2.getLayout()).columnWeights = new double[] { 1.0 };

                    //======== panel4 ========
                    {
                        panel4.setBorder(new TitledBorder("\u0424\u043e\u0440\u043c\u0430\u0442\u044b"));
                        panel4.setLayout(new GridBagLayout());
                        ((GridBagLayout) panel4.getLayout()).columnWidths = new int[] { 0, 0, 0 };
                        ((GridBagLayout) panel4.getLayout()).rowHeights = new int[] { 0, 0, 0 };
                        ((GridBagLayout) panel4.getLayout()).columnWeights = new double[] { 0.0, 0.0, 1.0E-4 };
                        ((GridBagLayout) panel4.getLayout()).rowWeights = new double[] { 0.0, 0.0, 1.0E-4 };

                        //======== scrollPane6 ========
                        {

                            //---- listFormat ----
                            listFormat.addListSelectionListener(new ListSelectionListener() {
                                @Override
                                public void valueChanged(ListSelectionEvent e) {
                                    listFormatValueChanged(e);
                                }
                            });
                            scrollPane6.setViewportView(listFormat);
                        }
                        panel4.add(scrollPane6,
                                new GridBagConstraints(0, 0, 2, 1, 1.0, 1.0, GridBagConstraints.CENTER,
                                        GridBagConstraints.BOTH, new Insets(0, 0, 5, 0), 0, 0));

                        //---- butEditFormat ----
                        butEditFormat.setHorizontalAlignment(SwingConstants.LEFT);
                        butEditFormat.setPreferredSize(new Dimension(35, 25));
                        butEditFormat.addActionListener(new ActionListener() {
                            @Override
                            public void actionPerformed(ActionEvent e) {
                                butEditFormatActionPerformed(e);
                            }
                        });
                        panel4.add(butEditFormat,
                                new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST,
                                        GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 5), 0, 0));

                        //---- butDeleteFormat ----
                        butDeleteFormat.setHorizontalAlignment(SwingConstants.RIGHT);
                        butDeleteFormat.setPreferredSize(new Dimension(35, 25));
                        panel4.add(butDeleteFormat,
                                new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST,
                                        GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));
                    }
                    panel2.add(panel4, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,
                            GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

                    //======== scrollPane1 ========
                    {
                        scrollPane1.setBorder(Borders.DLU4);
                        scrollPane1.setMinimumSize(new Dimension(35, 50));
                        scrollPane1.setPreferredSize(new Dimension(156, 100));
                        scrollPane1.setMaximumSize(new Dimension(300, 32767));

                        //---- labelInfoFormat ----
                        labelInfoFormat.setText(
                                "<html> <b>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435<b>:   <br/> <i>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043b\u0435\u0442\u043e\u043a</i>:  <br/> <i>\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445</i>: <br/> </html>");
                        labelInfoFormat.setVerticalAlignment(SwingConstants.TOP);
                        scrollPane1.setViewportView(labelInfoFormat);
                    }
                    panel2.add(scrollPane1, new GridBagConstraints(0, 1, 1, 1, 0.0, 1.0,
                            GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
                }
                splitPane3.setRightComponent(panel2);
            }
            splitPane2.setRightComponent(splitPane3);
        }
        mainFrameContentPane.add(splitPane2);
        mainFrame.setSize(855, 720);
        mainFrame.setLocationRelativeTo(mainFrame.getOwner());
    }
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.zeroc.IceGridGUI.EditorBase.java

License:Open Source License

protected void buildPropertiesPanel() {
    JComponent contents = createPropertiesPanel();

    if (contents == null) {
        FormLayout layout = new FormLayout("right:pref, 3dlu, fill:pref:grow, 3dlu, pref", "");

        DefaultFormBuilder builder = new DefaultFormBuilder(layout);
        builder.border(Borders.DLU2);
        builder.rowGroupingEnabled(true);
        builder.lineGapSize(LayoutStyle.getCurrent().getLinePad());

        appendProperties(builder);/*w w w.j  av  a  2  s . c  o  m*/

        contents = builder.getPanel();
    }

    JScrollPane scrollPane = new JScrollPane(contents, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
            ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

    scrollPane.setBorder(Borders.DIALOG);

    if (_propertiesPanel == null) {
        _propertiesPanel = new JPanel(new BorderLayout());
    } else {
        _propertiesPanel.removeAll();
    }
    _propertiesPanel.add(scrollPane, BorderLayout.CENTER);
    _propertiesPanel.setBorder(Borders.EMPTY);
    _propertiesPanel.revalidate();
}

From source file:de.bund.bfr.knime.pmm.manualmodelconf.ui.MMC_M.java

License:Open Source License

@SuppressWarnings({ "serial" })
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    depVarLabel = new JLabel();
    scrollPane3 = new JScrollPane();
    list1 = new JList<>();
    label7 = new JLabel();
    radioButton1 = new JRadioButton();
    radioButton2 = new JRadioButton();
    radioButton3 = new JRadioButton();
    modelNameLabel = new JLabel();
    modelNameBox = new JComboBox<>();
    button4 = new JButton();
    label1 = new JLabel();
    modelnameField = new JTextField();
    typeLabel = new JLabel();
    typeBox = new JComboBox<>();
    label2 = new JLabel();
    formulaArea = new JTextField();
    formulaApply = new JButton();
    label13 = new JLabel();
    boundaryArea = new JTextField();
    boundaryApply = new JButton();
    tableLabel = new JLabel();
    scrollPane1 = new JScrollPane();
    table = new ModelTableModel();
    label12 = new JLabel();
    fittedModelName = new JTextField();
    label8 = new JLabel();
    label3 = new JLabel();
    r2Field = new DoubleTextField(true);
    label4 = new JLabel();
    rmsField = new DoubleTextField(true);
    label5 = new JLabel();
    aicField = new DoubleTextField(true);
    label6 = new JLabel();
    bicField = new DoubleTextField(true);
    scrollPane2 = new JScrollPane();
    referencesTable = new JTable();
    label9 = new JLabel();
    button1 = new JButton();
    button3 = new JButton();
    button2 = new JButton();
    label10 = new JLabel();
    label11 = new JLabel();
    qScoreBox = new JComboBox<Color>(new Color[] { Color.WHITE, Color.GREEN, Color.YELLOW, Color.RED });
    qScoreBox.setRenderer(new DefaultListCellRenderer() {
        private static final long serialVersionUID = 1L;

        private Color color = Color.WHITE;
        private boolean isSelected = false;

        @Override/*from  ww  w.  java  2 s.  c  om*/
        public Component getListCellRendererComponent(JList<?> list, Object value, int index,
                boolean isSelected, boolean cellHasFocus) {
            color = (Color) value;
            this.isSelected = isSelected;

            return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
        }

        @Override
        protected void paintComponent(Graphics g) {
            Rectangle rect = g.getClipBounds();

            if (rect != null) {
                g.setColor(color);
                g.fillRect(rect.x, rect.y, rect.width, rect.height);

                if (isSelected) {
                    g.setColor(UIManager.getDefaults().getColor("List.selectionBackground"));
                } else {
                    g.setColor(UIManager.getDefaults().getColor("List.background"));
                }

                ((Graphics2D) g).setStroke(new BasicStroke(5));
                g.drawRect(rect.x, rect.y, rect.width, rect.height);
            }
        }
    });
    checkBox1 = new JCheckBox();
    label14 = new JLabel();
    scrollPane4 = new JScrollPane();
    textField1 = new JTextArea();

    //======== this ========
    setBorder(new CompoundBorder(new TitledBorder("Model Properties"), Borders.DLU2));
    setLayout(new FormLayout(
            "4*(default, $lcgap), default:grow, 2*($lcgap, default), $lcgap, default:grow, 2*($lcgap, default), $lcgap, default:grow",
            "default, $rgap, default, $ugap, 2*(default, $pgap), default, $lgap, 2*(default, $ugap), default, $lgap, default, $ugap, default, $lgap, fill:default:grow, 1dlu, default, $pgap, 35dlu"));
    ((FormLayout) getLayout()).setColumnGroups(new int[][] { { 5, 11, 17 }, { 7, 13, 19 }, { 9, 15, 21 } });

    //---- depVarLabel ----
    depVarLabel.setText("Parameter");
    depVarLabel.setHorizontalAlignment(SwingConstants.CENTER);
    depVarLabel.setFont(new Font("Tahoma", Font.BOLD, 14));
    add(depVarLabel, CC.xywh(3, 1, 19, 1));

    //======== scrollPane3 ========
    {

        //---- list1 ----
        list1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        list1.addListSelectionListener(new ListSelectionListener() {
            @Override
            public void valueChanged(ListSelectionEvent e) {
                list1ValueChanged(e);
            }
        });
        scrollPane3.setViewportView(list1);
    }
    add(scrollPane3, CC.xywh(1, 1, 1, 25));

    //---- label7 ----
    label7.setText("Model type:");
    add(label7, CC.xy(3, 3));

    //---- radioButton1 ----
    radioButton1.setText("primary");
    radioButton1.setSelected(true);
    radioButton1.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            radioButtonActionPerformed(e);
        }
    });
    add(radioButton1, CC.xywh(5, 3, 5, 1));

    //---- radioButton2 ----
    radioButton2.setText("secondary");
    radioButton2.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            radioButtonActionPerformed(e);
        }
    });
    add(radioButton2, CC.xywh(11, 3, 5, 1));

    //---- radioButton3 ----
    radioButton3.setText("primary (secondary)");
    radioButton3.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            radioButtonActionPerformed(e);
        }
    });
    add(radioButton3, CC.xywh(17, 3, 5, 1));

    //---- modelNameLabel ----
    modelNameLabel.setText("Formula from DB:");
    add(modelNameLabel, CC.xy(3, 5));

    //---- modelNameBox ----
    modelNameBox.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            modelNameBoxActionPerformed(e);
        }
    });
    add(modelNameBox, CC.xywh(5, 5, 15, 1));

    //---- button4 ----
    button4.setText("Refresh");
    button4.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            button4ActionPerformed(e);
        }
    });
    add(button4, CC.xy(21, 5));

    //---- label1 ----
    label1.setText("Formula Name:");
    add(label1, CC.xy(3, 7));

    //---- modelnameField ----
    modelnameField.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            modelnameFieldFocusLost(e);
        }
    });
    modelnameField.addKeyListener(new KeyAdapter() {
        @Override
        public void keyReleased(KeyEvent e) {
            modelnameFieldKeyReleased(e);
        }
    });
    add(modelnameField, CC.xywh(5, 7, 11, 1));

    //---- typeLabel ----
    typeLabel.setText("Type:");
    typeLabel.setHorizontalAlignment(SwingConstants.TRAILING);
    add(typeLabel, CC.xy(17, 7));

    //---- typeBox ----
    typeBox.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            typeBoxActionPerformed(e);
        }
    });
    add(typeBox, CC.xywh(19, 7, 3, 1));

    //---- label2 ----
    label2.setText("Formula:");
    add(label2, CC.xy(3, 9));

    //---- formulaArea ----
    formulaArea.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            formulaAreaFocusLost(e);
        }
    });
    formulaArea.addKeyListener(new KeyAdapter() {
        @Override
        public void keyReleased(KeyEvent e) {
            formulaAreaKeyReleased(e);
        }
    });
    add(formulaArea, CC.xywh(5, 9, 15, 1));

    //---- formulaApply ----
    formulaApply.setText("Apply");
    add(formulaApply, CC.xy(21, 9));

    //---- label13 ----
    label13.setText("Boundary Conditions:");
    add(label13, CC.xy(3, 11));

    //---- boundaryArea ----
    boundaryArea.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            formulaAreaFocusLost(e);
        }
    });
    boundaryArea.addKeyListener(new KeyAdapter() {
        @Override
        public void keyReleased(KeyEvent e) {
            formulaAreaKeyReleased(e);
        }
    });
    add(boundaryArea, CC.xywh(5, 11, 15, 1));

    //---- boundaryApply ----
    boundaryApply.setText("Apply");
    add(boundaryApply, CC.xy(21, 11));

    //---- tableLabel ----
    tableLabel.setText("Parameter Definition:");
    add(tableLabel, CC.xy(3, 13));

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

        //---- table ----
        table.setPreferredScrollableViewportSize(new Dimension(450, 175));
        table.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                tableMouseClicked(e);
            }
        });
        scrollPane1.setViewportView(table);
    }
    add(scrollPane1, CC.xywh(5, 13, 17, 1));

    //---- label12 ----
    label12.setText("Model Name:");
    add(label12, CC.xy(3, 15));

    //---- fittedModelName ----
    fittedModelName.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            fittedModelNameFocusLost(e);
        }
    });
    fittedModelName.addKeyListener(new KeyAdapter() {
        @Override
        public void keyReleased(KeyEvent e) {
            fittedModelNameKeyReleased(e);
        }
    });
    add(fittedModelName, CC.xywh(5, 15, 17, 1));

    //---- label8 ----
    label8.setText("Goodness of fit:");
    add(label8, CC.xywh(3, 17, 1, 3));

    //---- label3 ----
    label3.setText("R\u00b2:");
    label3.setHorizontalAlignment(SwingConstants.CENTER);
    add(label3, CC.xy(5, 17));

    //---- r2Field ----
    r2Field.setColumns(7);
    r2Field.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            r2FieldFocusLost(e);
        }
    });
    r2Field.addKeyListener(new KeyAdapter() {
        @Override
        public void keyReleased(KeyEvent e) {
            r2FieldKeyReleased(e);
        }
    });
    add(r2Field, CC.xy(7, 17));

    //---- label4 ----
    label4.setText("RMS:");
    label4.setHorizontalAlignment(SwingConstants.CENTER);
    add(label4, CC.xy(11, 17));

    //---- rmsField ----
    rmsField.setColumns(7);
    rmsField.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            rmsFieldFocusLost(e);
        }
    });
    rmsField.addKeyListener(new KeyAdapter() {
        @Override
        public void keyReleased(KeyEvent e) {
            rmsFieldKeyReleased(e);
        }
    });
    add(rmsField, CC.xy(13, 17));

    //---- label5 ----
    label5.setText("AIC:");
    add(label5, CC.xy(5, 19));

    //---- aicField ----
    aicField.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            aicFieldFocusLost(e);
        }
    });
    aicField.addKeyListener(new KeyAdapter() {
        @Override
        public void keyReleased(KeyEvent e) {
            aicFieldKeyReleased(e);
        }
    });
    add(aicField, CC.xy(7, 19));

    //---- label6 ----
    label6.setText("BIC:");
    add(label6, CC.xy(11, 19));

    //---- bicField ----
    bicField.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            bicFieldFocusLost(e);
        }
    });
    bicField.addKeyListener(new KeyAdapter() {
        @Override
        public void keyReleased(KeyEvent e) {
            bicFieldKeyReleased(e);
        }
    });
    add(bicField, CC.xy(13, 19));

    //======== scrollPane2 ========
    {
        scrollPane2.setPreferredSize(new Dimension(452, 120));

        //---- referencesTable ----
        referencesTable
                .setModel(new DefaultTableModel(new Object[][] {}, new String[] { "EstModel", "Reference" }) {
                    Class<?>[] columnTypes = new Class<?>[] { Boolean.class, Object.class };
                    boolean[] columnEditable = new boolean[] { true, false };

                    @Override
                    public Class<?> getColumnClass(int columnIndex) {
                        return columnTypes[columnIndex];
                    }

                    @Override
                    public boolean isCellEditable(int rowIndex, int columnIndex) {
                        return columnEditable[columnIndex];
                    }
                });
        {
            TableColumnModel cm = referencesTable.getColumnModel();
            cm.getColumn(0).setMaxWidth(100);
            cm.getColumn(0).setPreferredWidth(60);
        }
        scrollPane2.setViewportView(referencesTable);
    }
    add(scrollPane2, CC.xywh(5, 21, 17, 1));

    //---- label9 ----
    label9.setText("References:");
    add(label9, CC.xywh(3, 21, 1, 3));

    //---- button1 ----
    button1.setText("New Reference");
    button1.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            button1ActionPerformed(e);
        }
    });
    add(button1, CC.xywh(5, 23, 5, 1));

    //---- button3 ----
    button3.setText("Edit Reference");
    button3.setEnabled(false);
    button3.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            button3ActionPerformed(e);
        }
    });
    add(button3, CC.xywh(11, 23, 5, 1));

    //---- button2 ----
    button2.setText("Delete Reference");
    button2.setEnabled(false);
    button2.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            button2ActionPerformed(e);
        }
    });
    add(button2, CC.xywh(17, 23, 5, 1));

    //---- label10 ----
    label10.setText("Subjective quality:");
    add(label10, CC.xy(3, 25));

    //---- label11 ----
    label11.setText("QualityScore:");
    add(label11, CC.xywh(5, 25, 3, 1));

    //---- qScoreBox ----
    qScoreBox.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            qScoreBoxActionPerformed(e);
        }
    });
    add(qScoreBox, CC.xy(9, 25));

    //---- checkBox1 ----
    checkBox1.setText("Checked");
    checkBox1.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            checkBox1ActionPerformed(e);
        }
    });
    add(checkBox1, CC.xy(13, 25));

    //---- label14 ----
    label14.setText("Comment:");
    label14.setHorizontalAlignment(SwingConstants.RIGHT);
    add(label14, CC.xywh(15, 25, 3, 1));

    //======== scrollPane4 ========
    {

        //---- textField1 ----
        textField1.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                textField1FocusLost(e);
            }
        });
        textField1.addKeyListener(new KeyAdapter() {
            @Override
            public void keyReleased(KeyEvent e) {
                textField1KeyReleased(e);
            }
        });
        scrollPane4.setViewportView(textField1);
    }
    add(scrollPane4, CC.xywh(19, 25, 3, 1, CC.DEFAULT, CC.FILL));

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

From source file:de.bund.bfr.knime.pmm.manualmodelconf.ui.MMC_TS.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    agentLabel = new JLabel();
    agentField = new StringTextField(true);
    button1 = new JButton();
    agensDetailField = new StringTextField(true);
    agensIDField = new JTextField();
    matrixLabel = new JLabel();
    matrixField = new StringTextField(true);
    button2 = new JButton();
    matrixDetailField = new StringTextField(true);
    matrixIDField = new JTextField();
    commentLabel = new JLabel();
    commentField = new StringTextField(true);
    tempLabel = new JLabel();
    temperatureField = new DoubleTextField(true);
    tempUnit = new JComboBox<>();
    phLabel = new JLabel();
    phField = new DoubleTextField(PmmConstants.MIN_PH, PmmConstants.MAX_PH, true);
    awLabel = new JLabel();
    waterActivityField = new DoubleTextField(PmmConstants.MIN_WATERACTIVITY, PmmConstants.MAX_WATERACTIVITY,
            true);//from w ww  . j a  va2s. co m

    //======== this ========
    setBorder(new CompoundBorder(new TitledBorder("Microbial Data Properties"), Borders.DLU2));
    setLayout(new FormLayout(
            "default, $lcgap, default:grow, $lcgap, default, $lcgap, default:grow, $lcgap, default",
            "5*(default, $lgap), default"));

    //---- agentLabel ----
    agentLabel.setText("Agent:");
    agentLabel.setText(AttributeUtilities.getName(TimeSeriesSchema.ATT_AGENT) + ":");
    add(agentLabel, CC.xy(1, 1));

    //---- agentField ----
    agentField.setEditable(false);
    add(agentField, CC.xy(3, 1));

    //---- button1 ----
    button1.setText("...");
    button1.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            button1ActionPerformed(e);
        }
    });
    add(button1, CC.xy(5, 1));

    //---- agensDetailField ----
    agensDetailField.setColumns(4);
    add(agensDetailField, CC.xy(7, 1));

    //---- agensIDField ----
    agensIDField.setColumns(5);
    agensIDField.setVisible(false);
    add(agensIDField, CC.xy(9, 1));

    //---- matrixLabel ----
    matrixLabel.setText("Matrix:");
    matrixLabel.setText(AttributeUtilities.getName(TimeSeriesSchema.ATT_MATRIX) + ":");
    add(matrixLabel, CC.xy(1, 3));

    //---- matrixField ----
    matrixField.setEditable(false);
    add(matrixField, CC.xy(3, 3));

    //---- button2 ----
    button2.setText("...");
    button2.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            button2ActionPerformed(e);
        }
    });
    add(button2, CC.xy(5, 3));

    //---- matrixDetailField ----
    matrixDetailField.setColumns(5);
    add(matrixDetailField, CC.xy(7, 3));

    //---- matrixIDField ----
    matrixIDField.setColumns(5);
    matrixIDField.setVisible(false);
    add(matrixIDField, CC.xy(9, 3));

    //---- commentLabel ----
    commentLabel.setText(":");
    commentLabel.setText(AttributeUtilities.getName(MdInfoXml.ATT_COMMENT) + ":");
    add(commentLabel, CC.xy(1, 5));
    add(commentField, CC.xywh(3, 5, 5, 1));

    //---- tempLabel ----
    tempLabel.setText("Temperature:");
    tempLabel.setText(AttributeUtilities.getName(AttributeUtilities.ATT_TEMPERATURE) + ":");
    add(tempLabel, CC.xy(1, 7));
    add(temperatureField, CC.xywh(3, 7, 3, 1));

    //---- tempUnit ----
    tempUnit.setModel(new DefaultComboBoxModel<>(new String[] { "\u00b0C", "\u00b0F", "K" }));
    add(tempUnit, CC.xy(7, 7));

    //---- phLabel ----
    phLabel.setText("pH:");
    phLabel.setText(AttributeUtilities.getName(AttributeUtilities.ATT_PH) + ":");
    add(phLabel, CC.xy(1, 9));
    add(phField, CC.xywh(3, 9, 5, 1));

    //---- awLabel ----
    awLabel.setText("aw:");
    awLabel.setText(AttributeUtilities.getName(AttributeUtilities.ATT_AW) + ":");
    add(awLabel, CC.xy(1, 11));
    add(waterActivityField, CC.xywh(3, 11, 5, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:ppp.ui.Admin1.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - David Park
    bannerPanel = new JPanel();
    logOutbutton = new JButton();
    bannerLabel = new JLabel();
    label2 = new JLabel();
    label3 = new JLabel();
    mainPanel = new JTabbedPane();
    userTapPanel = new JPanel();
    searchUserPanel = new JPanel();
    searchUserLabel1 = new JLabel();
    searchUserTextField1 = new JTextField();
    searchUserButton1 = new JButton();
    searchUserLabel2 = new JLabel();
    searchUserTextField2 = new JTextField();
    searchUserButton2 = new JButton();
    userEntryPanel = new JPanel();
    userEntryfName = new JLabel();
    userEntryfNameText = new JTextField();
    userEntrylname = new JLabel();
    userEntrylNameText = new JTextField();
    userEntryPwd = new JLabel();
    passwordField1 = new JPasswordField();
    userEntryPhone = new JLabel();
    userEntryPhoneText = new JTextField();
    userEntryEmai = new JLabel();
    userEntryEmailText = new JTextField();
    userEntryAdress = new JLabel();
    userEntryAdressText = new JTextField();
    userEntryUserType = new JLabel();
    userEntryUserTypeCom = new JComboBox();
    navigationUserPanel = new JPanel();
    previousUserButton = new JButton();
    currentUserIndex = new JTextField();
    ofLabelUser = new JLabel();
    maxIndexUser = new JTextField();
    nextUserbutton = new JButton();
    modifyUserButton = new JButton();
    deleteUserButton = new JButton();
    addUserButton = new JButton();
    bookTapPane = new JPanel();
    searchBookPanel = new JPanel();
    searchTitle = new JLabel();
    searchTitleField = new JTextField();
    searchTitleButton = new JButton();
    searchAuthor = new JLabel();
    searchAuthorField = new JTextField();
    searchAuthorButton = new JButton();
    bookEntryPanel = new JPanel();
    bookEntryTitle = new JLabel();
    bookEntryTitleText = new JTextField();
    bookEntryAuthoer = new JLabel();
    bookEntryAuthorText = new JTextField();
    bookEntryISBN = new JLabel();
    bookEntryISBNText = new JTextField();
    bookEntryPublic = new JLabel();
    bookEntryPublicText = new JTextField();
    bookEntryGenre = new JLabel();
    bookEntryGenreCom = new JComboBox();
    bookEntrySubject = new JLabel();
    bookEntrySubjectCom = new JComboBox();
    bookEntryPdate = new JLabel();
    bookEntryPdateText = new JTextField();
    bookEntryShopname = new JLabel();
    bookEntryShopnameText = new JTextField();
    bookEntryPrice = new JLabel();
    bookEntryPriceText = new JTextField();
    bookEntryDetail = new JLabel();
    bookEntryDetailText = new JTextField();
    bookEntryStatus = new JLabel();
    bookEntryStatusCom = new JComboBox();
    navigationBookPane = new JPanel();
    previousBookButton = new JButton();
    currentBookIndex = new JTextField();
    bookOflabel = new JLabel();
    maxIndexBook = new JTextField();
    nextBookButton = new JButton();
    addBookButton = new JButton();
    modifyBookButton = new JButton();
    deleteBookButton = new JButton();
    rePortPanel = new JPanel();
    reportPanel = new JPanel();
    bookLendingLabel = new JLabel();
    fineReportLabel = new JLabel();
    lendingCombo = new JComboBox();
    findCombo = new JComboBox();
    generateLendingButton = new JButton();
    generateFineButton = new JButton();
    bookPurchasedLabel = new JLabel();
    bookPurchasedCom = new JComboBox();
    generatePurchaseButton = new JButton();

    //======== this ========
    addWindowListener(new WindowAdapter() {
        @Override/*from   w  w  w .  ja v a  2 s .  co m*/
        public void windowClosed(WindowEvent e) {
            thisWindowClosed(e);
        }
    });
    Container contentPane = getContentPane();
    contentPane.setLayout(null);

    //======== bannerPanel ========
    {
        bannerPanel.setBorder(new EmptyBorder(12, 12, 12, 12));

        bannerPanel.setLayout(null);

        //---- logOutbutton ----
        logOutbutton.setText("LogOut");
        logOutbutton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                try {
                    logOutbuttonActionPerformed(e);
                } catch (SQLException e1) {
                    e1.printStackTrace();
                }
            }
        });
        logOutbutton.addAncestorListener(new AncestorListener() {
            @Override
            public void ancestorAdded(AncestorEvent e) {
                logOutbuttonAncestorAdded(e);
            }

            @Override
            public void ancestorMoved(AncestorEvent e) {
            }

            @Override
            public void ancestorRemoved(AncestorEvent e) {
            }
        });
        bannerPanel.add(logOutbutton);
        logOutbutton.setBounds(new Rectangle(new Point(180, 40), logOutbutton.getPreferredSize()));

        //---- bannerLabel ----
        bannerLabel.setText("Welcome to Maero Library Management System!");
        bannerLabel.setFont(new Font("Lucida Grande", Font.ITALIC, 20));
        bannerPanel.add(bannerLabel);
        bannerLabel.setBounds(300, 5, 475, 65);

        //---- label2 ----
        label2.setText("text");
        bannerPanel.add(label2);
        label2.setBounds(10, 10, 200, 30);

        //---- label3 ----
        label3.setText("text");
        bannerPanel.add(label3);
        label3.setBounds(10, 45, 200, 25);

        { // compute preferred size
            Dimension preferredSize = new Dimension();
            for (int i = 0; i < bannerPanel.getComponentCount(); i++) {
                Rectangle bounds = bannerPanel.getComponent(i).getBounds();
                preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
            }
            Insets insets = bannerPanel.getInsets();
            preferredSize.width += insets.right;
            preferredSize.height += insets.bottom;
            bannerPanel.setMinimumSize(preferredSize);
            bannerPanel.setPreferredSize(preferredSize);
        }
    }
    contentPane.add(bannerPanel);
    bannerPanel.setBounds(65, 10, 785, 75);

    //======== mainPanel ========
    {

        //======== userTapPanel ========
        {
            userTapPanel.setLayout(null);

            //======== searchUserPanel ========
            {
                searchUserPanel.setBorder(new TitledBorder("Search User by Keyword"));
                searchUserPanel.setLayout(new GridLayout(2, 3, 1, 3));

                //---- searchUserLabel1 ----
                searchUserLabel1.setText("LastName");
                searchUserLabel1.setHorizontalAlignment(SwingConstants.CENTER);
                searchUserPanel.add(searchUserLabel1);

                //---- searchUserTextField1 ----
                searchUserTextField1.setHorizontalAlignment(SwingConstants.LEFT);
                searchUserPanel.add(searchUserTextField1);

                //---- searchUserButton1 ----
                searchUserButton1.setText("Search");
                searchUserButton1.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        searchUserButton1ActionPerformed(e);
                    }
                });
                searchUserPanel.add(searchUserButton1);

                //---- searchUserLabel2 ----
                searchUserLabel2.setText("Email");
                searchUserLabel2.setHorizontalAlignment(SwingConstants.CENTER);
                searchUserPanel.add(searchUserLabel2);

                //---- searchUserTextField2 ----
                searchUserTextField2.setHorizontalAlignment(SwingConstants.LEFT);
                searchUserPanel.add(searchUserTextField2);

                //---- searchUserButton2 ----
                searchUserButton2.setText("Search");
                searchUserButton2.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        searchUserButton2ActionPerformed(e);
                    }
                });
                searchUserPanel.add(searchUserButton2);
            }
            userTapPanel.add(searchUserPanel);
            searchUserPanel.setBounds(30, 15, 780, 130);

            //======== userEntryPanel ========
            {
                userEntryPanel.setBorder(new TitledBorder("Entry"));
                userEntryPanel.setLayout(new GridLayout(7, 4));

                //---- userEntryfName ----
                userEntryfName.setText("FirstName");
                userEntryfName.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryfName);
                userEntryPanel.add(userEntryfNameText);

                //---- userEntrylname ----
                userEntrylname.setText("LasrName");
                userEntrylname.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntrylname);
                userEntryPanel.add(userEntrylNameText);

                //---- userEntryPwd ----
                userEntryPwd.setText("Password");
                userEntryPwd.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryPwd);
                userEntryPanel.add(passwordField1);

                //---- userEntryPhone ----
                userEntryPhone.setText("PhoneNumber");
                userEntryPhone.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryPhone);
                userEntryPanel.add(userEntryPhoneText);

                //---- userEntryEmai ----
                userEntryEmai.setText("Email");
                userEntryEmai.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryEmai);
                userEntryPanel.add(userEntryEmailText);

                //---- userEntryAdress ----
                userEntryAdress.setText("Adress");
                userEntryAdress.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryAdress);
                userEntryPanel.add(userEntryAdressText);

                //---- userEntryUserType ----
                userEntryUserType.setText("User Type");
                userEntryUserType.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryUserType);

                //---- userEntryUserTypeCom ----
                userEntryUserTypeCom
                        .setModel(new DefaultComboBoxModel(new String[] { "Admin", "Reception", "Customer" }));
                userEntryPanel.add(userEntryUserTypeCom);
            }
            userTapPanel.add(userEntryPanel);
            userEntryPanel.setBounds(30, 160, 785, 265);

            //======== navigationUserPanel ========
            {
                navigationUserPanel.setPreferredSize(new Dimension(300, 42));
                navigationUserPanel.setMinimumSize(new Dimension(300, 42));
                navigationUserPanel.setLayout(null);

                //---- previousUserButton ----
                previousUserButton.setText("Previous");
                previousUserButton.setEnabled(false);
                previousUserButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        previousUserButtonActionPerformed(e);
                    }
                });
                navigationUserPanel.add(previousUserButton);
                previousUserButton.setBounds(60, 5, 90, 35);

                //---- currentUserIndex ----
                currentUserIndex.setHorizontalAlignment(SwingConstants.CENTER);
                currentUserIndex.setColumns(1);
                currentUserIndex.setPreferredSize(new Dimension(35, 32));
                currentUserIndex.setMinimumSize(new Dimension(35, 32));
                currentUserIndex.setMaximumSize(new Dimension(35, 32));
                currentUserIndex.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        currentUserIndexActionPerformed(e);
                    }
                });
                navigationUserPanel.add(currentUserIndex);
                currentUserIndex.setBounds(160, 10, 42, 26);

                //---- ofLabelUser ----
                ofLabelUser.setText("of");
                ofLabelUser.setMaximumSize(new Dimension(16, 16));
                navigationUserPanel.add(ofLabelUser);
                ofLabelUser.setBounds(210, 10, 23, 27);

                //---- maxIndexUser ----
                maxIndexUser.setEnabled(false);
                maxIndexUser.setEditable(false);
                maxIndexUser.setHorizontalAlignment(SwingConstants.CENTER);
                maxIndexUser.setColumns(1);
                maxIndexUser.setMaximumSize(new Dimension(35, 32));
                maxIndexUser.setMinimumSize(new Dimension(35, 32));
                maxIndexUser.setPreferredSize(new Dimension(35, 32));
                navigationUserPanel.add(maxIndexUser);
                maxIndexUser.setBounds(235, 10, 45, 25);

                //---- nextUserbutton ----
                nextUserbutton.setText("Next");
                nextUserbutton.setEnabled(false);
                nextUserbutton.setMaximumSize(new Dimension(83, 32));
                nextUserbutton.setMinimumSize(new Dimension(83, 32));
                nextUserbutton.setPreferredSize(new Dimension(83, 32));
                nextUserbutton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        nextUserbuttonActionPerformed(e);
                    }
                });
                navigationUserPanel.add(nextUserbutton);
                nextUserbutton.setBounds(285, 5, 90, 35);

                { // compute preferred size
                    Dimension preferredSize = new Dimension();
                    for (int i = 0; i < navigationUserPanel.getComponentCount(); i++) {
                        Rectangle bounds = navigationUserPanel.getComponent(i).getBounds();
                        preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                        preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                    }
                    Insets insets = navigationUserPanel.getInsets();
                    preferredSize.width += insets.right;
                    preferredSize.height += insets.bottom;
                    navigationUserPanel.setMinimumSize(preferredSize);
                    navigationUserPanel.setPreferredSize(preferredSize);
                }
            }
            userTapPanel.add(navigationUserPanel);
            navigationUserPanel.setBounds(205, 425, 415, 50);

            //---- modifyUserButton ----
            modifyUserButton.setText("Modify User");
            modifyUserButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    modifyUserButtonActionPerformed(e);
                }
            });
            userTapPanel.add(modifyUserButton);
            modifyUserButton.setBounds(355, 475, 140, 30);

            //---- deleteUserButton ----
            deleteUserButton.setText("Delete User");
            deleteUserButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteUserButtonActionPerformed(e);
                }
            });
            userTapPanel.add(deleteUserButton);
            deleteUserButton.setBounds(560, 475, 140, 30);

            //---- addUserButton ----
            addUserButton.setText("Add User");
            addUserButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    addUserButtonActionPerformed(e);
                }
            });
            userTapPanel.add(addUserButton);
            addUserButton.setBounds(130, 475, 140, 30);
        }
        mainPanel.addTab("User Management", userTapPanel);

        //======== bookTapPane ========
        {
            bookTapPane.setLayout(null);

            //======== searchBookPanel ========
            {
                searchBookPanel.setBorder(
                        new CompoundBorder(new TitledBorder("Search Book by Keyword"), Borders.DLU2));
                searchBookPanel.setLayout(new GridLayout(2, 3));

                //---- searchTitle ----
                searchTitle.setText("Title");
                searchTitle.setHorizontalAlignment(SwingConstants.CENTER);
                searchBookPanel.add(searchTitle);

                //---- searchTitleField ----
                searchTitleField.setMaximumSize(new Dimension(120, 50));
                searchBookPanel.add(searchTitleField);

                //---- searchTitleButton ----
                searchTitleButton.setText("Search");
                searchTitleButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        searchTitleButtonActionPerformed(e);
                    }
                });
                searchBookPanel.add(searchTitleButton);

                //---- searchAuthor ----
                searchAuthor.setText("Author");
                searchAuthor.setHorizontalAlignment(SwingConstants.CENTER);
                searchBookPanel.add(searchAuthor);
                searchBookPanel.add(searchAuthorField);

                //---- searchAuthorButton ----
                searchAuthorButton.setText("Search");
                searchAuthorButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        searchAuthorButtonActionPerformed(e);
                    }
                });
                searchBookPanel.add(searchAuthorButton);
            }
            bookTapPane.add(searchBookPanel);
            searchBookPanel.setBounds(40, 15, 765, 140);

            //======== bookEntryPanel ========
            {
                bookEntryPanel.setBorder(new CompoundBorder(new TitledBorder("Entry"), Borders.DLU2));
                bookEntryPanel.setLayout(null);

                //---- bookEntryTitle ----
                bookEntryTitle.setText("Title");
                bookEntryTitle.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryTitle);
                bookEntryTitle.setBounds(10, 25, 130, 36);
                bookEntryPanel.add(bookEntryTitleText);
                bookEntryTitleText.setBounds(140, 25, 265, 36);

                //---- bookEntryAuthoer ----
                bookEntryAuthoer.setText("Author");
                bookEntryAuthoer.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryAuthoer);
                bookEntryAuthoer.setBounds(410, 25, 110, 36);
                bookEntryPanel.add(bookEntryAuthorText);
                bookEntryAuthorText.setBounds(525, 25, 235, 36);

                //---- bookEntryISBN ----
                bookEntryISBN.setText("ISBN");
                bookEntryISBN.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryISBN);
                bookEntryISBN.setBounds(10, 64, 130, 36);
                bookEntryPanel.add(bookEntryISBNText);
                bookEntryISBNText.setBounds(140, 64, 265, 36);

                //---- bookEntryPublic ----
                bookEntryPublic.setText("Publication");
                bookEntryPublic.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryPublic);
                bookEntryPublic.setBounds(410, 64, 110, 36);
                bookEntryPanel.add(bookEntryPublicText);
                bookEntryPublicText.setBounds(525, 64, 235, 36);

                //---- bookEntryGenre ----
                bookEntryGenre.setText("Genre");
                bookEntryGenre.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryGenre);
                bookEntryGenre.setBounds(10, 103, 130, 36);

                //---- bookEntryGenreCom ----
                bookEntryGenreCom.setModel(new DefaultComboBoxModel(new String[] { "Fiction", "Non-Fiction" }));
                bookEntryPanel.add(bookEntryGenreCom);
                bookEntryGenreCom.setBounds(140, 103, 265, 36);

                //---- bookEntrySubject ----
                bookEntrySubject.setText("Subject");
                bookEntrySubject.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntrySubject);
                bookEntrySubject.setBounds(410, 103, 110, 36);

                //---- bookEntrySubjectCom ----
                bookEntrySubjectCom.setModel(new DefaultComboBoxModel(new String[] { "Classic", "Comedy",
                        "Tragedy", "Mythology", "Poetry", "Crime", "Thriller", "Horror", "Mystery",
                        "Historical_Fiction", "Fantasy", "Urban-Fantasy", "Science_Fiction", "Military",
                        "Western", "Romance", "Biography", "Auto-Biography", "Essay", "Narrative", "Speech",
                        "Textbook", "Reference", "Religious_Text" }));
                bookEntryPanel.add(bookEntrySubjectCom);
                bookEntrySubjectCom.setBounds(525, 103, 235, 36);

                //---- bookEntryPdate ----
                bookEntryPdate.setText("Purchase Date");
                bookEntryPdate.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryPdate);
                bookEntryPdate.setBounds(10, 142, 130, 36);

                //---- bookEntryPdateText ----
                bookEntryPdateText.setText("yyyy-mm-dd");
                bookEntryPdateText.setToolTipText("please input as yyyy-mm-dd");
                bookEntryPdateText.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        bookEntryPdateTextMouseClicked(e);
                    }
                });
                bookEntryPanel.add(bookEntryPdateText);
                bookEntryPdateText.setBounds(140, 142, 265, 36);

                //---- bookEntryShopname ----
                bookEntryShopname.setText("Shop Name");
                bookEntryShopname.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryShopname);
                bookEntryShopname.setBounds(410, 142, 110, 36);
                bookEntryPanel.add(bookEntryShopnameText);
                bookEntryShopnameText.setBounds(525, 142, 235, 36);

                //---- bookEntryPrice ----
                bookEntryPrice.setText("Price");
                bookEntryPrice.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryPrice);
                bookEntryPrice.setBounds(10, 181, 130, 36);
                bookEntryPanel.add(bookEntryPriceText);
                bookEntryPriceText.setBounds(140, 181, 265, 36);

                //---- bookEntryDetail ----
                bookEntryDetail.setText("Detail");
                bookEntryDetail.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryDetail);
                bookEntryDetail.setBounds(410, 181, 110, 36);
                bookEntryPanel.add(bookEntryDetailText);
                bookEntryDetailText.setBounds(525, 181, 235, 84);

                //---- bookEntryStatus ----
                bookEntryStatus.setText("Status");
                bookEntryStatus.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryStatus);
                bookEntryStatus.setBounds(10, 220, 130, 36);

                //---- bookEntryStatusCom ----
                bookEntryStatusCom.setModel(new DefaultComboBoxModel(
                        new String[] { "AVAILABLE", "UNAVAILABLE", "Lost", "Damaged" }));
                bookEntryPanel.add(bookEntryStatusCom);
                bookEntryStatusCom.setBounds(140, 220, 265, 36);

                { // compute preferred size
                    Dimension preferredSize = new Dimension();
                    for (int i = 0; i < bookEntryPanel.getComponentCount(); i++) {
                        Rectangle bounds = bookEntryPanel.getComponent(i).getBounds();
                        preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                        preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                    }
                    Insets insets = bookEntryPanel.getInsets();
                    preferredSize.width += insets.right;
                    preferredSize.height += insets.bottom;
                    bookEntryPanel.setMinimumSize(preferredSize);
                    bookEntryPanel.setPreferredSize(preferredSize);
                }
            }
            bookTapPane.add(bookEntryPanel);
            bookEntryPanel.setBounds(40, 165, 770, 270);

            //======== navigationBookPane ========
            {
                navigationBookPane.setLayout(null);

                //---- previousBookButton ----
                previousBookButton.setText("Previous");
                previousBookButton.setMaximumSize(new Dimension(80, 32));
                previousBookButton.setMinimumSize(new Dimension(80, 32));
                previousBookButton.setPreferredSize(new Dimension(80, 32));
                previousBookButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        previousBookButtonActionPerformed(e);
                    }
                });
                navigationBookPane.add(previousBookButton);
                previousBookButton.setBounds(10, 5, 85, previousBookButton.getPreferredSize().height);

                //---- currentBookIndex ----
                currentBookIndex.setMaximumSize(new Dimension(35, 32));
                currentBookIndex.setMinimumSize(new Dimension(35, 32));
                currentBookIndex.setPreferredSize(new Dimension(35, 32));
                currentBookIndex.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        currentBookIndexActionPerformed(e);
                    }
                });
                navigationBookPane.add(currentBookIndex);
                currentBookIndex.setBounds(105, 10, 45, 25);

                //---- bookOflabel ----
                bookOflabel.setText("of");
                navigationBookPane.add(bookOflabel);
                bookOflabel.setBounds(160, 15, 20, 14);

                //---- maxIndexBook ----
                maxIndexBook.setMaximumSize(new Dimension(35, 32));
                maxIndexBook.setMinimumSize(new Dimension(35, 32));
                maxIndexBook.setPreferredSize(new Dimension(35, 32));
                navigationBookPane.add(maxIndexBook);
                maxIndexBook.setBounds(180, 10, 45, 25);

                //---- nextBookButton ----
                nextBookButton.setText("Next");
                nextBookButton.setMaximumSize(new Dimension(80, 32));
                nextBookButton.setMinimumSize(new Dimension(80, 32));
                nextBookButton.setPreferredSize(new Dimension(80, 32));
                nextBookButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        nextBookButtonActionPerformed(e);
                    }
                });
                navigationBookPane.add(nextBookButton);
                nextBookButton.setBounds(245, 5, 80, nextBookButton.getPreferredSize().height);

                { // compute preferred size
                    Dimension preferredSize = new Dimension();
                    for (int i = 0; i < navigationBookPane.getComponentCount(); i++) {
                        Rectangle bounds = navigationBookPane.getComponent(i).getBounds();
                        preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                        preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                    }
                    Insets insets = navigationBookPane.getInsets();
                    preferredSize.width += insets.right;
                    preferredSize.height += insets.bottom;
                    navigationBookPane.setMinimumSize(preferredSize);
                    navigationBookPane.setPreferredSize(preferredSize);
                }
            }
            bookTapPane.add(navigationBookPane);
            navigationBookPane.setBounds(270, 435, 335, 40);

            //---- addBookButton ----
            addBookButton.setText("Add Book");
            addBookButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    addBookButtonActionPerformed(e);
                }
            });
            bookTapPane.add(addBookButton);
            addBookButton.setBounds(135, 480, 150, 30);

            //---- modifyBookButton ----
            modifyBookButton.setText("Modify Book");
            modifyBookButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    modifyBookButtonActionPerformed(e);
                }
            });
            bookTapPane.add(modifyBookButton);
            modifyBookButton.setBounds(360, 480, 150, 30);

            //---- deleteBookButton ----
            deleteBookButton.setText("Delete Book");
            deleteBookButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteBookButtonActionPerformed(e);
                }
            });
            bookTapPane.add(deleteBookButton);
            deleteBookButton.setBounds(585, 480, 150, 30);

            { // compute preferred size
                Dimension preferredSize = new Dimension();
                for (int i = 0; i < bookTapPane.getComponentCount(); i++) {
                    Rectangle bounds = bookTapPane.getComponent(i).getBounds();
                    preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                    preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                }
                Insets insets = bookTapPane.getInsets();
                preferredSize.width += insets.right;
                preferredSize.height += insets.bottom;
                bookTapPane.setMinimumSize(preferredSize);
                bookTapPane.setPreferredSize(preferredSize);
            }
        }
        mainPanel.addTab("Book Management", bookTapPane);

        //======== rePortPanel ========
        {
            rePortPanel.setLayout(new GridBagLayout());
            ((GridBagLayout) rePortPanel.getLayout()).columnWidths = new int[] { 0, 0 };
            ((GridBagLayout) rePortPanel.getLayout()).rowHeights = new int[] { 0, 0 };
            ((GridBagLayout) rePortPanel.getLayout()).columnWeights = new double[] { 1.0, 1.0E-4 };
            ((GridBagLayout) rePortPanel.getLayout()).rowWeights = new double[] { 1.0, 1.0E-4 };

            //======== reportPanel ========
            {
                reportPanel.setLayout(null);

                //---- bookLendingLabel ----
                bookLendingLabel.setText("Book Lending Report");
                reportPanel.add(bookLendingLabel);
                bookLendingLabel
                        .setBounds(new Rectangle(new Point(170, 190), bookLendingLabel.getPreferredSize()));

                //---- fineReportLabel ----
                fineReportLabel.setText("Fine Report");
                reportPanel.add(fineReportLabel);
                fineReportLabel.setBounds(170, 240, 150, fineReportLabel.getPreferredSize().height);

                //---- lendingCombo ----
                lendingCombo
                        .setModel(new DefaultComboBoxModel(new String[] { "Daily", "Monthly", "Annually" }));
                reportPanel.add(lendingCombo);
                lendingCombo.setBounds(330, 185, 125, lendingCombo.getPreferredSize().height);

                //---- findCombo ----
                findCombo.setModel(
                        new DefaultComboBoxModel(new String[] { "Book lost", "Late return", "User Fine" }));
                reportPanel.add(findCombo);
                findCombo.setBounds(330, 235, 125, findCombo.getPreferredSize().height);

                //---- generateLendingButton ----
                generateLendingButton.setText("Generate Report");
                generateLendingButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        generateLendingButtonActionPerformed(e);
                    }
                });
                reportPanel.add(generateLendingButton);
                generateLendingButton.setBounds(
                        new Rectangle(new Point(480, 180), generateLendingButton.getPreferredSize()));

                //---- generateFineButton ----
                generateFineButton.setText("Generate Report");
                generateFineButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        generateFineButtonActionPerformed(e);
                    }
                });
                reportPanel.add(generateFineButton);
                generateFineButton
                        .setBounds(new Rectangle(new Point(480, 230), generateFineButton.getPreferredSize()));

                //---- bookPurchasedLabel ----
                bookPurchasedLabel.setText("Book Purchased Report");
                reportPanel.add(bookPurchasedLabel);
                bookPurchasedLabel
                        .setBounds(new Rectangle(new Point(170, 290), bookPurchasedLabel.getPreferredSize()));

                //---- bookPurchasedCom ----
                bookPurchasedCom.setModel(new DefaultComboBoxModel(
                        new String[] { "By Shop", "By Price", "By Year(2014)", "By Year(2013)" }));
                reportPanel.add(bookPurchasedCom);
                bookPurchasedCom.setBounds(330, 285, 125, bookPurchasedCom.getPreferredSize().height);

                //---- generatePurchaseButton ----
                generatePurchaseButton.setText("Generate Report");
                generatePurchaseButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        generatePurchaseButtonActionPerformed(e);
                    }
                });
                reportPanel.add(generatePurchaseButton);
                generatePurchaseButton.setBounds(
                        new Rectangle(new Point(480, 280), generatePurchaseButton.getPreferredSize()));

                { // compute preferred size
                    Dimension preferredSize = new Dimension();
                    for (int i = 0; i < reportPanel.getComponentCount(); i++) {
                        Rectangle bounds = reportPanel.getComponent(i).getBounds();
                        preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                        preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                    }
                    Insets insets = reportPanel.getInsets();
                    preferredSize.width += insets.right;
                    preferredSize.height += insets.bottom;
                    reportPanel.setMinimumSize(preferredSize);
                    reportPanel.setPreferredSize(preferredSize);
                }
            }
            rePortPanel.add(reportPanel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
                    GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
        }
        mainPanel.addTab("Report Generation", rePortPanel);
    }
    contentPane.add(mainPanel);
    mainPanel.setBounds(35, 95, 850, 550);

    { // compute preferred size
        Dimension preferredSize = new Dimension();
        for (int i = 0; i < contentPane.getComponentCount(); i++) {
            Rectangle bounds = contentPane.getComponent(i).getBounds();
            preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
            preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
        }
        Insets insets = contentPane.getInsets();
        preferredSize.width += insets.right;
        preferredSize.height += insets.bottom;
        contentPane.setMinimumSize(preferredSize);
        contentPane.setPreferredSize(preferredSize);
    }
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents

}

From source file:ppp.ui.Customer1.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - David Park
    bannerPanel = new JPanel();
    logOutbutton = new JButton();
    bannerLabel = new JLabel();
    label2 = new JLabel();
    label3 = new JLabel();
    mainPanel = new JTabbedPane();
    bookTapPane = new JPanel();
    searchBookPanel = new JPanel();
    searchTitle = new JLabel();
    searchTitleField = new JTextField();
    searchTitleButton = new JButton();
    searchAuthor = new JLabel();
    searchAuthorField = new JTextField();
    searchAuthorButton = new JButton();
    searchTopic = new JLabel();
    searchTopicText = new JTextField();
    searchTopicButton = new JButton();
    bookEntryPanel = new JPanel();
    bookEntryTitle = new JLabel();
    bookEntryTitleText = new JTextField();
    bookEntryAuthoer = new JLabel();
    bookEntryAuthorText = new JTextField();
    bookEntryISBN = new JLabel();
    bookEntryISBNText = new JTextField();
    bookEntryPublic = new JLabel();
    bookEntryPublicText = new JTextField();
    bookEntryGenre = new JLabel();
    bookEntryGenreCom = new JComboBox();
    bookEntrySubject = new JLabel();
    bookEntrySubjectCom = new JComboBox();
    bookEntryDetail = new JLabel();
    bookEntryDetailText = new JTextField();
    bookEntryStatus = new JLabel();
    bookEntryStatusCom = new JComboBox();
    burrowBookButton = new JButton();
    requestBookButton = new JButton();
    navigationBookPane = new JPanel();
    previousBookButton = new JButton();
    currentBookIndex = new JTextField();
    bookOflabel = new JLabel();
    maxIndexBook = new JTextField();
    nextBookButton = new JButton();
    userTapPanel = new JPanel();
    searchUserPanel = new JPanel();
    label1 = new JLabel();
    a1 = new JLabel();
    a5 = new JLabel();
    label11 = new JLabel();
    label12 = new JLabel();
    a2 = new JLabel();
    a3 = new JLabel();
    label18 = new JLabel();
    a4 = new JLabel();
    userEntryPanel = new JPanel();
    userEntryfName = new JLabel();
    userEntryfNameText = new JTextField();
    userEntrylname = new JLabel();
    userEntrylNameText = new JTextField();
    userEntryPwd = new JLabel();
    passwordField1 = new JPasswordField();
    userEntryPhone = new JLabel();
    userEntryPhoneText = new JTextField();
    userEntryEmai = new JLabel();
    userEntryEmailText = new JTextField();
    userEntryAdress = new JLabel();
    userEntryAdressText = new JTextField();
    changePersonButton = new JButton();
    searchUserPanel2 = new JPanel();
    label13 = new JLabel();
    label14 = new JLabel();
    label15 = new JLabel();
    title1 = new JTextField();
    date1 = new JTextField();
    due1 = new JTextField();
    title2 = new JTextField();
    date2 = new JTextField();
    due2 = new JTextField();
    title3 = new JTextField();
    date3 = new JTextField();
    due3 = new JTextField();
    title4 = new JTextField();
    date4 = new JTextField();
    due4 = new JTextField();
    title5 = new JTextField();
    date5 = new JTextField();
    due5 = new JTextField();

    //======== this ========
    addWindowListener(new WindowAdapter() {
        @Override//  w w w .j  a  v a 2  s  .c o  m
        public void windowClosed(WindowEvent e) {
            thisWindowClosed(e);
        }

        @Override
        public void windowClosing(WindowEvent e) {
            thisWindowClosing(e);
        }
    });
    Container contentPane = getContentPane();
    contentPane.setLayout(null);

    //======== bannerPanel ========
    {
        bannerPanel.setBorder(new EmptyBorder(12, 12, 12, 12));

        bannerPanel.setLayout(null);

        //---- logOutbutton ----
        logOutbutton.setText("LogOut");
        logOutbutton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                logOutbuttonActionPerformed(e);
            }
        });
        bannerPanel.add(logOutbutton);
        logOutbutton.setBounds(new Rectangle(new Point(180, 40), logOutbutton.getPreferredSize()));

        //---- bannerLabel ----
        bannerLabel.setText("Welcome to Maero Library Management System!");
        bannerLabel.setFont(new Font("Lucida Grande", Font.ITALIC, 20));
        bannerPanel.add(bannerLabel);
        bannerLabel.setBounds(300, 5, 475, 65);

        //---- label2 ----
        label2.setText("text");
        bannerPanel.add(label2);
        label2.setBounds(10, 10, 200, 30);

        //---- label3 ----
        label3.setText("text");
        bannerPanel.add(label3);
        label3.setBounds(10, 45, 200, 25);

        { // compute preferred size
            Dimension preferredSize = new Dimension();
            for (int i = 0; i < bannerPanel.getComponentCount(); i++) {
                Rectangle bounds = bannerPanel.getComponent(i).getBounds();
                preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
            }
            Insets insets = bannerPanel.getInsets();
            preferredSize.width += insets.right;
            preferredSize.height += insets.bottom;
            bannerPanel.setMinimumSize(preferredSize);
            bannerPanel.setPreferredSize(preferredSize);
        }
    }
    contentPane.add(bannerPanel);
    bannerPanel.setBounds(65, 10, 785, 75);

    //======== mainPanel ========
    {

        //======== bookTapPane ========
        {
            bookTapPane.setLayout(null);

            //======== searchBookPanel ========
            {
                searchBookPanel.setBorder(
                        new CompoundBorder(new TitledBorder("Search Book by Keyword"), Borders.DLU2));
                searchBookPanel.setLayout(new GridLayout(3, 3));

                //---- searchTitle ----
                searchTitle.setText("Title");
                searchTitle.setHorizontalAlignment(SwingConstants.CENTER);
                searchBookPanel.add(searchTitle);

                //---- searchTitleField ----
                searchTitleField.setMaximumSize(new Dimension(120, 50));
                searchBookPanel.add(searchTitleField);

                //---- searchTitleButton ----
                searchTitleButton.setText("Search");
                searchTitleButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        searchTitleButtonActionPerformed(e);
                    }
                });
                searchBookPanel.add(searchTitleButton);

                //---- searchAuthor ----
                searchAuthor.setText("Author");
                searchAuthor.setHorizontalAlignment(SwingConstants.CENTER);
                searchBookPanel.add(searchAuthor);
                searchBookPanel.add(searchAuthorField);

                //---- searchAuthorButton ----
                searchAuthorButton.setText("Search");
                searchAuthorButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        searchAuthorButtonActionPerformed(e);
                    }
                });
                searchBookPanel.add(searchAuthorButton);

                //---- searchTopic ----
                searchTopic.setText("Topic");
                searchTopic.setHorizontalAlignment(SwingConstants.CENTER);
                searchBookPanel.add(searchTopic);
                searchBookPanel.add(searchTopicText);

                //---- searchTopicButton ----
                searchTopicButton.setText("Search");
                searchTopicButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        searchTopicButtonActionPerformed(e);
                    }
                });
                searchBookPanel.add(searchTopicButton);
            }
            bookTapPane.add(searchBookPanel);
            searchBookPanel.setBounds(40, 15, 765, 185);

            //======== bookEntryPanel ========
            {
                bookEntryPanel.setBorder(new CompoundBorder(new TitledBorder("Entry"), Borders.DLU2));
                bookEntryPanel.setLayout(new GridLayout(4, 4, 2, 3));

                //---- bookEntryTitle ----
                bookEntryTitle.setText("Title");
                bookEntryTitle.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryTitle.setPreferredSize(new Dimension(16, 16));
                bookEntryTitle.setRequestFocusEnabled(false);
                bookEntryTitle.setMinimumSize(new Dimension(16, 16));
                bookEntryTitle.setMaximumSize(new Dimension(16, 16));
                bookEntryPanel.add(bookEntryTitle);

                //---- bookEntryTitleText ----
                bookEntryTitleText.setEditable(false);
                bookEntryPanel.add(bookEntryTitleText);

                //---- bookEntryAuthoer ----
                bookEntryAuthoer.setText("Author");
                bookEntryAuthoer.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryAuthoer);

                //---- bookEntryAuthorText ----
                bookEntryAuthorText.setEditable(false);
                bookEntryPanel.add(bookEntryAuthorText);

                //---- bookEntryISBN ----
                bookEntryISBN.setText("ISBN");
                bookEntryISBN.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryISBN.setPreferredSize(new Dimension(16, 16));
                bookEntryISBN.setRequestFocusEnabled(false);
                bookEntryPanel.add(bookEntryISBN);

                //---- bookEntryISBNText ----
                bookEntryISBNText.setEditable(false);
                bookEntryPanel.add(bookEntryISBNText);

                //---- bookEntryPublic ----
                bookEntryPublic.setText("Publication");
                bookEntryPublic.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryPublic);

                //---- bookEntryPublicText ----
                bookEntryPublicText.setEditable(false);
                bookEntryPanel.add(bookEntryPublicText);

                //---- bookEntryGenre ----
                bookEntryGenre.setText("Genre");
                bookEntryGenre.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryGenre.setPreferredSize(new Dimension(16, 16));
                bookEntryGenre.setRequestFocusEnabled(false);
                bookEntryPanel.add(bookEntryGenre);

                //---- bookEntryGenreCom ----
                bookEntryGenreCom.setModel(new DefaultComboBoxModel(new String[] { "Fiction", "Non-Fiction" }));
                bookEntryPanel.add(bookEntryGenreCom);

                //---- bookEntrySubject ----
                bookEntrySubject.setText("Subject");
                bookEntrySubject.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntrySubject);

                //---- bookEntrySubjectCom ----
                bookEntrySubjectCom.setModel(new DefaultComboBoxModel(new String[] { "Classic", "Comedy",
                        "Tragedy", "Mythology", "Poetry", "Crime", "Thriller", "Horror", "Mystery",
                        "Historical_Fiction", "Fantasy", "Urban-Fantasy", "Science_Fiction", "Military",
                        "Western", "Romance", "Biography", "Auto-Biography", "Essay", "Narrative", "Speech",
                        "Textbook", "Reference", "Religious_Text" }));
                bookEntryPanel.add(bookEntrySubjectCom);

                //---- bookEntryDetail ----
                bookEntryDetail.setText("Detail");
                bookEntryDetail.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryDetail.setPreferredSize(new Dimension(16, 16));
                bookEntryDetail.setRequestFocusEnabled(false);
                bookEntryDetail.setMinimumSize(new Dimension(16, 16));
                bookEntryDetail.setMaximumSize(new Dimension(16, 16));
                bookEntryPanel.add(bookEntryDetail);

                //---- bookEntryDetailText ----
                bookEntryDetailText.setEditable(false);
                bookEntryPanel.add(bookEntryDetailText);

                //---- bookEntryStatus ----
                bookEntryStatus.setText("Status");
                bookEntryStatus.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryStatus);

                //---- bookEntryStatusCom ----
                bookEntryStatusCom.setModel(new DefaultComboBoxModel(
                        new String[] { "AVAILABLE\t", "UNAVAILABLE", "Lost", "Damaged" }));
                bookEntryPanel.add(bookEntryStatusCom);
            }
            bookTapPane.add(bookEntryPanel);
            bookEntryPanel.setBounds(40, 215, 770, 220);

            //---- burrowBookButton ----
            burrowBookButton.setText("Burrow a Book");
            burrowBookButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    burrowBookButtonActionPerformed(e);
                }
            });
            bookTapPane.add(burrowBookButton);
            burrowBookButton.setBounds(245, 480, 150, 30);

            //---- requestBookButton ----
            requestBookButton.setText("Request a Booking");
            requestBookButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    requestBookButtonActionPerformed(e);
                }
            });
            bookTapPane.add(requestBookButton);
            requestBookButton.setBounds(460, 480, 150, 30);

            //======== navigationBookPane ========
            {
                navigationBookPane.setLayout(new FlowLayout());

                //---- previousBookButton ----
                previousBookButton.setText("Previous");
                previousBookButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        previousBookButtonActionPerformed(e);
                    }
                });
                navigationBookPane.add(previousBookButton);

                //---- currentBookIndex ----
                currentBookIndex.setMinimumSize(new Dimension(24, 24));
                currentBookIndex.setPreferredSize(new Dimension(24, 24));
                currentBookIndex.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        currentBookIndexActionPerformed(e);
                    }
                });
                navigationBookPane.add(currentBookIndex);

                //---- bookOflabel ----
                bookOflabel.setText("of");
                navigationBookPane.add(bookOflabel);

                //---- maxIndexBook ----
                maxIndexBook.setPreferredSize(new Dimension(24, 24));
                navigationBookPane.add(maxIndexBook);

                //---- nextBookButton ----
                nextBookButton.setText("Next");
                nextBookButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        nextBookButtonActionPerformed(e);
                    }
                });
                navigationBookPane.add(nextBookButton);
            }
            bookTapPane.add(navigationBookPane);
            navigationBookPane.setBounds(255, 435, 325, 40);

            { // compute preferred size
                Dimension preferredSize = new Dimension();
                for (int i = 0; i < bookTapPane.getComponentCount(); i++) {
                    Rectangle bounds = bookTapPane.getComponent(i).getBounds();
                    preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                    preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                }
                Insets insets = bookTapPane.getInsets();
                preferredSize.width += insets.right;
                preferredSize.height += insets.bottom;
                bookTapPane.setMinimumSize(preferredSize);
                bookTapPane.setPreferredSize(preferredSize);
            }
        }
        mainPanel.addTab("Search Book & Borrow Book", bookTapPane);

        //======== userTapPanel ========
        {
            userTapPanel.setLayout(null);

            //======== searchUserPanel ========
            {
                searchUserPanel.setBorder(new TitledBorder("User Acitivity Information"));
                searchUserPanel.setLayout(null);

                //---- label1 ----
                label1.setText("Total Number of Book Borrowed  :");
                searchUserPanel.add(label1);
                label1.setBounds(20, 45, 220, label1.getPreferredSize().height);

                //---- a1 ----
                a1.setText("Number");
                searchUserPanel.add(a1);
                a1.setBounds(240, 45, 85, a1.getPreferredSize().height);

                //---- a5 ----
                a5.setHorizontalAlignment(SwingConstants.CENTER);
                searchUserPanel.add(a5);
                a5.setBounds(55, 165, 230, 25);

                //---- label11 ----
                label11.setText("Total Fine   :");
                searchUserPanel.add(label11);
                label11.setBounds(20, 75, 80, label11.getPreferredSize().height);

                //---- label12 ----
                label12.setText("Last Login Date   :");
                searchUserPanel.add(label12);
                label12.setBounds(new Rectangle(new Point(20, 105), label12.getPreferredSize()));

                //---- a2 ----
                a2.setText("text");
                searchUserPanel.add(a2);
                a2.setBounds(185, 75, 120, a2.getPreferredSize().height);

                //---- a3 ----
                a3.setText("text");
                searchUserPanel.add(a3);
                a3.setBounds(185, 105, 135, a3.getPreferredSize().height);

                //---- label18 ----
                label18.setText("Last Borrow Activity  :");
                searchUserPanel.add(label18);
                label18.setBounds(20, 135, 145, label18.getPreferredSize().height);

                //---- a4 ----
                a4.setText("text");
                searchUserPanel.add(a4);
                a4.setBounds(185, 135, 130, a4.getPreferredSize().height);

                { // compute preferred size
                    Dimension preferredSize = new Dimension();
                    for (int i = 0; i < searchUserPanel.getComponentCount(); i++) {
                        Rectangle bounds = searchUserPanel.getComponent(i).getBounds();
                        preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                        preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                    }
                    Insets insets = searchUserPanel.getInsets();
                    preferredSize.width += insets.right;
                    preferredSize.height += insets.bottom;
                    searchUserPanel.setMinimumSize(preferredSize);
                    searchUserPanel.setPreferredSize(preferredSize);
                }
            }
            userTapPanel.add(searchUserPanel);
            searchUserPanel.setBounds(35, 15, 325, 220);

            //======== userEntryPanel ========
            {
                userEntryPanel.setBorder(new TitledBorder("Personal Information"));
                userEntryPanel.setLayout(new GridLayout(6, 4));

                //---- userEntryfName ----
                userEntryfName.setText("FirstName");
                userEntryfName.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryfName);

                //---- userEntryfNameText ----
                userEntryfNameText.setEditable(false);
                userEntryPanel.add(userEntryfNameText);

                //---- userEntrylname ----
                userEntrylname.setText("LasrName");
                userEntrylname.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntrylname);

                //---- userEntrylNameText ----
                userEntrylNameText.setEditable(false);
                userEntryPanel.add(userEntrylNameText);

                //---- userEntryPwd ----
                userEntryPwd.setText("Password");
                userEntryPwd.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryPwd);
                userEntryPanel.add(passwordField1);

                //---- userEntryPhone ----
                userEntryPhone.setText("PhoneNumber");
                userEntryPhone.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryPhone);
                userEntryPanel.add(userEntryPhoneText);

                //---- userEntryEmai ----
                userEntryEmai.setText("Email");
                userEntryEmai.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryEmai);
                userEntryPanel.add(userEntryEmailText);

                //---- userEntryAdress ----
                userEntryAdress.setText("Adress");
                userEntryAdress.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryAdress);
                userEntryPanel.add(userEntryAdressText);
            }
            userTapPanel.add(userEntryPanel);
            userEntryPanel.setBounds(30, 245, 785, 210);

            //---- changePersonButton ----
            changePersonButton.setText("Change Personal Info");
            changePersonButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    changePersonButtonActionPerformed(e);
                }
            });
            userTapPanel.add(changePersonButton);
            changePersonButton.setBounds(530, 465, 185, 30);

            //======== searchUserPanel2 ========
            {
                searchUserPanel2.setBorder(new TitledBorder("Borrowed Book Information"));
                searchUserPanel2.setLayout(null);

                //---- label13 ----
                label13.setText("Book Title");
                label13.setHorizontalAlignment(SwingConstants.CENTER);
                searchUserPanel2.add(label13);
                label13.setBounds(6, 23, 151, 25);

                //---- label14 ----
                label14.setText("Borrowed Date");
                label14.setPreferredSize(new Dimension(70, 16));
                label14.setHorizontalAlignment(SwingConstants.CENTER);
                searchUserPanel2.add(label14);
                label14.setBounds(215, 23, 100, 25);

                //---- label15 ----
                label15.setText("Due");
                label15.setHorizontalAlignment(SwingConstants.CENTER);
                searchUserPanel2.add(label15);
                label15.setBounds(315, 23, 113, 25);

                //---- title1 ----
                title1.setEditable(false);
                title1.setHorizontalAlignment(SwingConstants.LEFT);
                searchUserPanel2.add(title1);
                title1.setBounds(6, 48, 204, 33);

                //---- date1 ----
                date1.setEditable(false);
                date1.setPreferredSize(new Dimension(70, 16));
                searchUserPanel2.add(date1);
                date1.setBounds(210, 48, 105, 33);

                //---- due1 ----
                due1.setEditable(false);
                searchUserPanel2.add(due1);
                due1.setBounds(315, 48, 113, 33);

                //---- title2 ----
                title2.setEditable(false);
                title2.setHorizontalAlignment(SwingConstants.LEFT);
                searchUserPanel2.add(title2);
                title2.setBounds(6, 81, 204, 33);

                //---- date2 ----
                date2.setEditable(false);
                date2.setPreferredSize(new Dimension(70, 16));
                searchUserPanel2.add(date2);
                date2.setBounds(210, 81, 105, 33);

                //---- due2 ----
                due2.setEditable(false);
                searchUserPanel2.add(due2);
                due2.setBounds(315, 81, 113, 33);

                //---- title3 ----
                title3.setEditable(false);
                title3.setHorizontalAlignment(SwingConstants.LEFT);
                searchUserPanel2.add(title3);
                title3.setBounds(6, 114, 204, 33);

                //---- date3 ----
                date3.setEditable(false);
                date3.setPreferredSize(new Dimension(70, 16));
                searchUserPanel2.add(date3);
                date3.setBounds(210, 114, 105, 33);

                //---- due3 ----
                due3.setEditable(false);
                searchUserPanel2.add(due3);
                due3.setBounds(315, 114, 113, 33);

                //---- title4 ----
                title4.setEditable(false);
                title4.setHorizontalAlignment(SwingConstants.LEFT);
                searchUserPanel2.add(title4);
                title4.setBounds(6, 147, 204, 33);

                //---- date4 ----
                date4.setEditable(false);
                date4.setPreferredSize(new Dimension(70, 16));
                searchUserPanel2.add(date4);
                date4.setBounds(210, 147, 105, 33);

                //---- due4 ----
                due4.setEditable(false);
                searchUserPanel2.add(due4);
                due4.setBounds(315, 147, 113, 33);

                //---- title5 ----
                title5.setEditable(false);
                title5.setHorizontalAlignment(SwingConstants.LEFT);
                searchUserPanel2.add(title5);
                title5.setBounds(6, 180, 204, 33);

                //---- date5 ----
                date5.setEditable(false);
                date5.setPreferredSize(new Dimension(70, 16));
                searchUserPanel2.add(date5);
                date5.setBounds(210, 180, 105, 33);

                //---- due5 ----
                due5.setEditable(false);
                searchUserPanel2.add(due5);
                due5.setBounds(315, 180, 113, 33);

                { // compute preferred size
                    Dimension preferredSize = new Dimension();
                    for (int i = 0; i < searchUserPanel2.getComponentCount(); i++) {
                        Rectangle bounds = searchUserPanel2.getComponent(i).getBounds();
                        preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                        preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                    }
                    Insets insets = searchUserPanel2.getInsets();
                    preferredSize.width += insets.right;
                    preferredSize.height += insets.bottom;
                    searchUserPanel2.setMinimumSize(preferredSize);
                    searchUserPanel2.setPreferredSize(preferredSize);
                }
            }
            userTapPanel.add(searchUserPanel2);
            searchUserPanel2.setBounds(370, 15, 435, 220);
        }
        mainPanel.addTab("Account Information", userTapPanel);
    }
    contentPane.add(mainPanel);
    mainPanel.setBounds(35, 95, 850, 550);

    { // compute preferred size
        Dimension preferredSize = new Dimension();
        for (int i = 0; i < contentPane.getComponentCount(); i++) {
            Rectangle bounds = contentPane.getComponent(i).getBounds();
            preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
            preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
        }
        Insets insets = contentPane.getInsets();
        preferredSize.width += insets.right;
        preferredSize.height += insets.bottom;
        contentPane.setMinimumSize(preferredSize);
        contentPane.setPreferredSize(preferredSize);
    }
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:ppp.ui.Receptionist1.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - David Park
    bannerPanel = new JPanel();
    logOutbutton = new JButton();
    bannerLabel = new JLabel();
    label2 = new JLabel();
    label3 = new JLabel();
    mainPanel = new JTabbedPane();
    userTapPanel = new JPanel();
    userEntryPanel = new JPanel();
    userEntryfName = new JLabel();
    userEntryfNameText = new JTextField();
    userEntrylname = new JLabel();
    userEntrylNameText = new JTextField();
    userEntryPwd = new JLabel();
    passwordField1 = new JPasswordField();
    userEntryPhone = new JLabel();
    userEntryPhoneText = new JTextField();
    userEntryEmai = new JLabel();
    userEntryEmailText = new JTextField();
    userEntryAdress = new JLabel();
    userEntryAdressText = new JTextField();
    addUserButton = new JButton();
    bookTapPane = new JPanel();
    searchBookPanel = new JPanel();
    searchTitle = new JLabel();
    searchTitleField = new JTextField();
    searchTitleButton = new JButton();
    searchAuthor = new JLabel();
    searchAuthorField = new JTextField();
    searchAuthorButton = new JButton();
    bookEntryPanel = new JPanel();
    bookEntryTitle = new JLabel();
    bookEntryTitleText = new JTextField();
    bookEntryAuthoer = new JLabel();
    bookEntryAuthorText = new JTextField();
    bookEntryISBN = new JLabel();
    bookEntryISBNText = new JTextField();
    bookEntryPublic = new JLabel();
    bookEntryPublicText = new JTextField();
    bookEntryGenre = new JLabel();
    bookEntryGenreCom = new JComboBox();
    bookEntrySubject = new JLabel();
    bookEntrySubjectCom = new JComboBox();
    bookEntryPdate = new JLabel();
    bookEntryPdateText = new JTextField();
    bookEntryShopname = new JLabel();
    bookEntryShopnameText = new JTextField();
    bookEntryPrice = new JLabel();
    bookEntryPriceText = new JTextField();
    bookEntryDetail = new JLabel();
    bookEntryDetailText = new JTextField();
    bookEntryStatus = new JLabel();
    bookEntryStatusCom = new JComboBox();
    navigationBookPane = new JPanel();
    previousBookButton = new JButton();
    currentBookIndex = new JTextField();
    bookOflabel = new JLabel();
    maxIndexBook = new JTextField();
    nextBookButton = new JButton();
    returnBookButton = new JButton();
    rePortPanel = new JPanel();
    reportPanel = new JPanel();
    bookLendingLabel = new JLabel();
    fineReportLabel = new JLabel();
    lendingCombo = new JComboBox();
    findCombo = new JComboBox();
    generateLendingButton = new JButton();
    generateFineButton = new JButton();
    bookPurchasedLabel = new JLabel();
    bookPurchasedCom = new JComboBox();
    generatePurchaseButton = new JButton();

    //======== this ========
    addWindowListener(new WindowAdapter() {
        @Override//from  w  ww .  j  av a2  s.co  m
        public void windowClosed(WindowEvent e) {
            thisWindowClosed(e);
        }
    });
    Container contentPane = getContentPane();
    contentPane.setLayout(null);

    //======== bannerPanel ========
    {
        bannerPanel.setBorder(new EmptyBorder(12, 12, 12, 12));

        bannerPanel.setLayout(null);

        //---- logOutbutton ----
        logOutbutton.setText("LogOut");
        logOutbutton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                logOutbuttonActionPerformed(e);
            }
        });
        bannerPanel.add(logOutbutton);
        logOutbutton.setBounds(new Rectangle(new Point(180, 40), logOutbutton.getPreferredSize()));

        //---- bannerLabel ----
        bannerLabel.setText("Welcome to Maero Library Management System!");
        bannerLabel.setFont(new Font("Lucida Grande", Font.ITALIC, 20));
        bannerPanel.add(bannerLabel);
        bannerLabel.setBounds(300, 5, 475, 65);

        //---- label2 ----
        label2.setText("text");
        bannerPanel.add(label2);
        label2.setBounds(10, 10, 200, 30);

        //---- label3 ----
        label3.setText("text");
        bannerPanel.add(label3);
        label3.setBounds(10, 45, 200, 25);

        { // compute preferred size
            Dimension preferredSize = new Dimension();
            for (int i = 0; i < bannerPanel.getComponentCount(); i++) {
                Rectangle bounds = bannerPanel.getComponent(i).getBounds();
                preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
            }
            Insets insets = bannerPanel.getInsets();
            preferredSize.width += insets.right;
            preferredSize.height += insets.bottom;
            bannerPanel.setMinimumSize(preferredSize);
            bannerPanel.setPreferredSize(preferredSize);
        }
    }
    contentPane.add(bannerPanel);
    bannerPanel.setBounds(65, 10, 785, 75);

    //======== mainPanel ========
    {

        //======== userTapPanel ========
        {
            userTapPanel.setLayout(null);

            //======== userEntryPanel ========
            {
                userEntryPanel.setBorder(new TitledBorder("Register Customer"));
                userEntryPanel.setLayout(new GridLayout(6, 4));

                //---- userEntryfName ----
                userEntryfName.setText("FirstName");
                userEntryfName.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryfName);
                userEntryPanel.add(userEntryfNameText);

                //---- userEntrylname ----
                userEntrylname.setText("LasrName");
                userEntrylname.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntrylname);
                userEntryPanel.add(userEntrylNameText);

                //---- userEntryPwd ----
                userEntryPwd.setText("Password");
                userEntryPwd.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryPwd);
                userEntryPanel.add(passwordField1);

                //---- userEntryPhone ----
                userEntryPhone.setText("PhoneNumber");
                userEntryPhone.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryPhone);
                userEntryPanel.add(userEntryPhoneText);

                //---- userEntryEmai ----
                userEntryEmai.setText("Email");
                userEntryEmai.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryEmai);
                userEntryPanel.add(userEntryEmailText);

                //---- userEntryAdress ----
                userEntryAdress.setText("Adress");
                userEntryAdress.setHorizontalAlignment(SwingConstants.CENTER);
                userEntryPanel.add(userEntryAdress);
                userEntryPanel.add(userEntryAdressText);
            }
            userTapPanel.add(userEntryPanel);
            userEntryPanel.setBounds(35, 80, 785, 265);

            //---- addUserButton ----
            addUserButton.setText("Add User");
            addUserButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    addUserButtonActionPerformed(e);
                }
            });
            userTapPanel.add(addUserButton);
            addUserButton.setBounds(375, 385, 140, 30);
        }
        mainPanel.addTab("Register User", userTapPanel);

        //======== bookTapPane ========
        {
            bookTapPane.setLayout(null);

            //======== searchBookPanel ========
            {
                searchBookPanel.setBorder(
                        new CompoundBorder(new TitledBorder("Search Book by Keyword"), Borders.DLU2));
                searchBookPanel.setLayout(new GridLayout(2, 3));

                //---- searchTitle ----
                searchTitle.setText("Title");
                searchTitle.setHorizontalAlignment(SwingConstants.CENTER);
                searchBookPanel.add(searchTitle);

                //---- searchTitleField ----
                searchTitleField.setMaximumSize(new Dimension(120, 50));
                searchBookPanel.add(searchTitleField);

                //---- searchTitleButton ----
                searchTitleButton.setText("Search");
                searchTitleButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        searchTitleButtonActionPerformed(e);
                    }
                });
                searchBookPanel.add(searchTitleButton);

                //---- searchAuthor ----
                searchAuthor.setText("Author");
                searchAuthor.setHorizontalAlignment(SwingConstants.CENTER);
                searchBookPanel.add(searchAuthor);
                searchBookPanel.add(searchAuthorField);

                //---- searchAuthorButton ----
                searchAuthorButton.setText("Search");
                searchAuthorButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        searchAuthorButtonActionPerformed(e);
                    }
                });
                searchBookPanel.add(searchAuthorButton);
            }
            bookTapPane.add(searchBookPanel);
            searchBookPanel.setBounds(40, 15, 765, 140);

            //======== bookEntryPanel ========
            {
                bookEntryPanel.setBorder(new CompoundBorder(new TitledBorder("Entry"), Borders.DLU2));
                bookEntryPanel.setLayout(new GridLayout(6, 4, 2, 3));

                //---- bookEntryTitle ----
                bookEntryTitle.setText("Title");
                bookEntryTitle.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryTitle);

                //---- bookEntryTitleText ----
                bookEntryTitleText.setEditable(false);
                bookEntryPanel.add(bookEntryTitleText);

                //---- bookEntryAuthoer ----
                bookEntryAuthoer.setText("Author");
                bookEntryAuthoer.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryAuthoer);

                //---- bookEntryAuthorText ----
                bookEntryAuthorText.setEditable(false);
                bookEntryPanel.add(bookEntryAuthorText);

                //---- bookEntryISBN ----
                bookEntryISBN.setText("ISBN");
                bookEntryISBN.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryISBN);

                //---- bookEntryISBNText ----
                bookEntryISBNText.setEditable(false);
                bookEntryPanel.add(bookEntryISBNText);

                //---- bookEntryPublic ----
                bookEntryPublic.setText("Publication");
                bookEntryPublic.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryPublic);

                //---- bookEntryPublicText ----
                bookEntryPublicText.setEditable(false);
                bookEntryPanel.add(bookEntryPublicText);

                //---- bookEntryGenre ----
                bookEntryGenre.setText("Genre");
                bookEntryGenre.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryGenre);

                //---- bookEntryGenreCom ----
                bookEntryGenreCom.setModel(new DefaultComboBoxModel(new String[] { "Fiction", "Non-Fiction" }));
                bookEntryPanel.add(bookEntryGenreCom);

                //---- bookEntrySubject ----
                bookEntrySubject.setText("Subject");
                bookEntrySubject.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntrySubject);

                //---- bookEntrySubjectCom ----
                bookEntrySubjectCom.setModel(new DefaultComboBoxModel(new String[] { "Classic", "Comedy",
                        "Tragedy", "Mythology", "Poetry", "Crime", "Thriller", "Horror", "Mystery",
                        "Historical_Fiction", "Fantasy", "Urban-Fantasy", "Science_Fiction", "Military",
                        "Western", "Romance", "Biography", "Auto-Biography", "Essay", "Narrative", "Speech",
                        "Textbook", "Reference", "Religious_Text" }));
                bookEntryPanel.add(bookEntrySubjectCom);

                //---- bookEntryPdate ----
                bookEntryPdate.setText("Purchase Date");
                bookEntryPdate.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryPdate);

                //---- bookEntryPdateText ----
                bookEntryPdateText.setEditable(false);
                bookEntryPanel.add(bookEntryPdateText);

                //---- bookEntryShopname ----
                bookEntryShopname.setText("Shop Name");
                bookEntryShopname.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryShopname);

                //---- bookEntryShopnameText ----
                bookEntryShopnameText.setEditable(false);
                bookEntryPanel.add(bookEntryShopnameText);

                //---- bookEntryPrice ----
                bookEntryPrice.setText("Price");
                bookEntryPrice.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryPrice);

                //---- bookEntryPriceText ----
                bookEntryPriceText.setEditable(false);
                bookEntryPanel.add(bookEntryPriceText);

                //---- bookEntryDetail ----
                bookEntryDetail.setText("Detail");
                bookEntryDetail.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryDetail);

                //---- bookEntryDetailText ----
                bookEntryDetailText.setEditable(false);
                bookEntryPanel.add(bookEntryDetailText);

                //---- bookEntryStatus ----
                bookEntryStatus.setText("Status");
                bookEntryStatus.setHorizontalAlignment(SwingConstants.CENTER);
                bookEntryPanel.add(bookEntryStatus);

                //---- bookEntryStatusCom ----
                bookEntryStatusCom.setModel(new DefaultComboBoxModel(
                        new String[] { "AVAILABLE", "UNAVAILABLE", "Lost", "Damaged" }));
                bookEntryPanel.add(bookEntryStatusCom);
            }
            bookTapPane.add(bookEntryPanel);
            bookEntryPanel.setBounds(40, 165, 770, 270);

            //======== navigationBookPane ========
            {
                navigationBookPane.setLayout(new FlowLayout());

                //---- previousBookButton ----
                previousBookButton.setText("Previous");
                previousBookButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        previousBookButtonActionPerformed(e);
                    }
                });
                navigationBookPane.add(previousBookButton);

                //---- currentBookIndex ----
                currentBookIndex.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        currentBookIndexActionPerformed(e);
                    }
                });
                navigationBookPane.add(currentBookIndex);

                //---- bookOflabel ----
                bookOflabel.setText("of");
                navigationBookPane.add(bookOflabel);
                navigationBookPane.add(maxIndexBook);

                //---- nextBookButton ----
                nextBookButton.setText("Next");
                nextBookButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        nextBookButtonActionPerformed(e);
                    }
                });
                navigationBookPane.add(nextBookButton);
            }
            bookTapPane.add(navigationBookPane);
            navigationBookPane.setBounds(270, 435, 325, 40);

            //---- returnBookButton ----
            returnBookButton.setText("Return a Book");
            returnBookButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    returnBookButtonActionPerformed(e);
                }
            });
            bookTapPane.add(returnBookButton);
            returnBookButton.setBounds(370, 480, 150, 30);

            { // compute preferred size
                Dimension preferredSize = new Dimension();
                for (int i = 0; i < bookTapPane.getComponentCount(); i++) {
                    Rectangle bounds = bookTapPane.getComponent(i).getBounds();
                    preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                    preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                }
                Insets insets = bookTapPane.getInsets();
                preferredSize.width += insets.right;
                preferredSize.height += insets.bottom;
                bookTapPane.setMinimumSize(preferredSize);
                bookTapPane.setPreferredSize(preferredSize);
            }
        }
        mainPanel.addTab("Return Book", bookTapPane);

        //======== rePortPanel ========
        {
            rePortPanel.setLayout(new GridBagLayout());
            ((GridBagLayout) rePortPanel.getLayout()).columnWidths = new int[] { 0, 0 };
            ((GridBagLayout) rePortPanel.getLayout()).rowHeights = new int[] { 0, 0 };
            ((GridBagLayout) rePortPanel.getLayout()).columnWeights = new double[] { 1.0, 1.0E-4 };
            ((GridBagLayout) rePortPanel.getLayout()).rowWeights = new double[] { 1.0, 1.0E-4 };

            //======== reportPanel ========
            {
                reportPanel.setLayout(null);

                //---- bookLendingLabel ----
                bookLendingLabel.setText("Book Lending Report");
                reportPanel.add(bookLendingLabel);
                bookLendingLabel
                        .setBounds(new Rectangle(new Point(170, 190), bookLendingLabel.getPreferredSize()));

                //---- fineReportLabel ----
                fineReportLabel.setText("Fine Report");
                reportPanel.add(fineReportLabel);
                fineReportLabel.setBounds(170, 240, 150, fineReportLabel.getPreferredSize().height);

                //---- lendingCombo ----
                lendingCombo
                        .setModel(new DefaultComboBoxModel(new String[] { "Daily", "Monthly", "Annually" }));
                reportPanel.add(lendingCombo);
                lendingCombo.setBounds(330, 185, 125, lendingCombo.getPreferredSize().height);

                //---- findCombo ----
                findCombo.setModel(
                        new DefaultComboBoxModel(new String[] { "Book lost", "Late return", "User Fine" }));
                reportPanel.add(findCombo);
                findCombo.setBounds(330, 235, 125, findCombo.getPreferredSize().height);

                //---- generateLendingButton ----
                generateLendingButton.setText("Generate Report");
                generateLendingButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        generateLendingButtonActionPerformed(e);
                    }
                });
                reportPanel.add(generateLendingButton);
                generateLendingButton.setBounds(
                        new Rectangle(new Point(480, 180), generateLendingButton.getPreferredSize()));

                //---- generateFineButton ----
                generateFineButton.setText("Generate Report");
                generateFineButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        generateFineButtonActionPerformed(e);
                    }
                });
                reportPanel.add(generateFineButton);
                generateFineButton
                        .setBounds(new Rectangle(new Point(480, 230), generateFineButton.getPreferredSize()));

                //---- bookPurchasedLabel ----
                bookPurchasedLabel.setText("Book Purchased Report");
                reportPanel.add(bookPurchasedLabel);
                bookPurchasedLabel
                        .setBounds(new Rectangle(new Point(170, 290), bookPurchasedLabel.getPreferredSize()));

                //---- bookPurchasedCom ----
                bookPurchasedCom.setModel(new DefaultComboBoxModel(
                        new String[] { "By Shop", "By Price", "By Year(2014)", "By Year(2013)" }));
                reportPanel.add(bookPurchasedCom);
                bookPurchasedCom.setBounds(330, 285, 125, bookPurchasedCom.getPreferredSize().height);

                //---- generatePurchaseButton ----
                generatePurchaseButton.setText("Generate Report");
                generatePurchaseButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        generatePurchaseButtonActionPerformed(e);
                    }
                });
                reportPanel.add(generatePurchaseButton);
                generatePurchaseButton.setBounds(
                        new Rectangle(new Point(480, 280), generatePurchaseButton.getPreferredSize()));

                { // compute preferred size
                    Dimension preferredSize = new Dimension();
                    for (int i = 0; i < reportPanel.getComponentCount(); i++) {
                        Rectangle bounds = reportPanel.getComponent(i).getBounds();
                        preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                        preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                    }
                    Insets insets = reportPanel.getInsets();
                    preferredSize.width += insets.right;
                    preferredSize.height += insets.bottom;
                    reportPanel.setMinimumSize(preferredSize);
                    reportPanel.setPreferredSize(preferredSize);
                }
            }
            rePortPanel.add(reportPanel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER,
                    GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
        }
        mainPanel.addTab("Report Generation", rePortPanel);
    }
    contentPane.add(mainPanel);
    mainPanel.setBounds(35, 95, 850, 550);

    { // compute preferred size
        Dimension preferredSize = new Dimension();
        for (int i = 0; i < contentPane.getComponentCount(); i++) {
            Rectangle bounds = contentPane.getComponent(i).getBounds();
            preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
            preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
        }
        Insets insets = contentPane.getInsets();
        preferredSize.width += insets.right;
        preferredSize.height += insets.bottom;
        contentPane.setMinimumSize(preferredSize);
        contentPane.setPreferredSize(preferredSize);
    }
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}