Example usage for java.awt BorderLayout EAST

List of usage examples for java.awt BorderLayout EAST

Introduction

In this page you can find the example usage for java.awt BorderLayout EAST.

Prototype

String EAST

To view the source code for java.awt BorderLayout EAST.

Click Source Link

Document

The east layout constraint (right side of container).

Usage

From source file:edu.ucla.stat.SOCR.analyses.gui.NormalPower.java

protected void setSelectPanel() {
    selectPanel.removeAll();//from   w w w  . j av  a  2  s .co m
    selectPanel.setPreferredSize(new Dimension(400, 400));
    selectPanel.add(subPanel, BorderLayout.EAST);
    selectPanel.add(subPanel, BorderLayout.CENTER);
    selectPanel.add(subPanel, BorderLayout.WEST);

    subPanel.add(parameterPanel, BorderLayout.SOUTH);
    subPanel.add(hypothesisPanel, BorderLayout.CENTER);
    subPanel.add(choicePanel, BorderLayout.NORTH);

    hypothesisPanel.setBackground(Color.LIGHT_GRAY);
    parameterPanel.setBackground(Color.LIGHT_GRAY);
    choicePanel.setBackground(Color.LIGHT_GRAY);
    /*********** Begin Check/Choice Setting ********************/
    //choicePanel.setLayout(new BoxLayout(choicePanel, BoxLayout.Y_AXIS));
    choicePanel.setLayout(new BorderLayout());
    choicePanel.add(checkSampleSizeBox, BorderLayout.NORTH);
    choicePanel.add(checkPowerBox, BorderLayout.CENTER);
    choicePanel.add(criticalValueBox, BorderLayout.SOUTH);

    /*********** End Check/Choice Setting ********************/

    /*********** Begin Hypothesis Setting ********************/

    h0Label = new JLabel("Null: mu      =       mu_0;  ");
    hALabelPrefix = new JLabel("Alternative: mu_A ");
    hALabelSurfix = new JLabel(" mu_0");

    h0Panel.setBackground(Color.LIGHT_GRAY);

    hAPanel.setBackground(Color.LIGHT_GRAY);
    hACheckBoxPanel.setBackground(Color.LIGHT_GRAY);

    hypothesisPanel.add(h0Panel, BorderLayout.CENTER);
    hypothesisPanel.add(hAPanel, BorderLayout.SOUTH);

    h0Panel.add(h0Label, BorderLayout.CENTER);

    hAPanel.add(hALabelPrefix, BorderLayout.WEST);
    hAPanel.add(hACheckBoxPanel, BorderLayout.CENTER);
    hAPanel.add(hALabelSurfix, BorderLayout.EAST);

    hACheckBoxPanel.add(checkNE, BorderLayout.CENTER);
    hACheckBoxPanel.add(checkLT, BorderLayout.EAST);
    hACheckBoxPanel.add(checkGT, BorderLayout.WEST);
    /*********** End Hypothesis Setting ********************/

    /*********** Begin Parameter Setting *******************/
    sampleSizePanel = new JPanel();
    sigmaPanel = new JPanel();
    mu0Panel = new JPanel();
    sigmaZTestPanel = new JPanel();
    mu0ZTestPanel = new JPanel();
    muAPanel = new JPanel();
    alphaPanel = new JPanel();
    powerPanel = new JPanel();
    xValuePanel = new JPanel();

    sampleSizePanel.add(sampleSizeLabel, BorderLayout.WEST);
    sampleSizePanel.add(sampleSizeBar, BorderLayout.CENTER);
    sampleSizePanel.add(sampleSizeText, BorderLayout.EAST);
    sigmaPanel.add(sigmaLabel, BorderLayout.WEST);
    sigmaPanel.add(sigmaText, BorderLayout.EAST);
    sigmaZTestPanel.add(sigmaZTestLabel, BorderLayout.WEST);
    sigmaZTestPanel.add(sigmaZTestText, BorderLayout.EAST);
    mu0Panel.add(mu0Label, BorderLayout.WEST);
    mu0Panel.add(mu0Text, BorderLayout.EAST);
    mu0ZTestPanel.add(mu0ZTestLabel, BorderLayout.WEST);
    mu0ZTestPanel.add(mu0ZTestText, BorderLayout.EAST);
    muAPanel.add(muALabel, BorderLayout.WEST);
    muAPanel.add(muAText, BorderLayout.EAST);
    alphaPanel.add(alphaLabel, BorderLayout.WEST);
    alphaPanel.add(alphaCombo, BorderLayout.EAST);
    powerPanel.add(powerLabel, BorderLayout.WEST);
    powerPanel.add(powerBar, BorderLayout.CENTER);
    powerPanel.add(powerText, BorderLayout.EAST);
    xValuePanel.add(xValueLabel, BorderLayout.WEST);
    xValuePanel.add(xValueText, BorderLayout.EAST);

    parameterPanel.setLayout(new BoxLayout(parameterPanel, BoxLayout.Y_AXIS));

    parameterPanel.add(sampleSizePanel);
    parameterPanel.add(powerPanel);

    parameterPanel.add(xValuePanel);
    parameterPanel.add(sigmaPanel);
    parameterPanel.add(mu0Panel);
    parameterPanel.add(muAPanel);
    parameterPanel.add(alphaPanel);

    parameterPanel.add(sigmaZTestPanel);
    parameterPanel.add(mu0ZTestPanel);

    parameterPanel.add(alphaPanel);
    parameterPanel.add(alphaPanel);

    hypothesisPanel.setVisible(true);
    sampleSizePanel.setVisible(true);
    powerPanel.setVisible(false);
    xValuePanel.setVisible(false);
    sigmaZTestPanel.setVisible(false);
    mu0ZTestPanel.setVisible(false);

}

From source file:op.controlling.PnlControlling.java

private JPanel createContentPanel4Drugs() {
    JPanel pnlContent = new JPanel(new VerticalLayout());

    /***/*from  w  ww  .j a  v a2  s .co m*/
     *      ____                      ____            _             _   _     _     _
     *     |  _ \ _ __ _   _  __ _   / ___|___  _ __ | |_ _ __ ___ | | | |   (_)___| |_
     *     | | | | '__| | | |/ _` | | |   / _ \| '_ \| __| '__/ _ \| | | |   | / __| __|
     *     | |_| | |  | |_| | (_| | | |__| (_) | | | | |_| | | (_) | | | |___| \__ \ |_
     *     |____/|_|   \__,_|\__, |  \____\___/|_| |_|\__|_|  \___/|_| |_____|_|___/\__|
     *                       |___/
     */
    JPanel pnlDrugControl = new JPanel(new BorderLayout());
    final JButton btnDrugControl = GUITools.createHyperlinkButton("opde.controlling.drugs.controllist", null,
            null);
    final JComboBox cmbStation = new JComboBox(StationTools.getAll4Combobox(false));
    btnDrugControl.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            OPDE.getMainframe().setBlocked(true);
            SwingWorker worker = new SwingWorker() {
                @Override
                protected Object doInBackground() throws Exception {
                    return MedStockTools.getListForMedControl((Station) cmbStation.getSelectedItem(),
                            progressClosure);
                }

                @Override
                protected void done() {
                    try {
                        SYSFilesTools.print(get().toString(), true);
                    } catch (ExecutionException ee) {
                        OPDE.fatal(ee);
                    } catch (InterruptedException ie) {
                        // nop
                    }

                    OPDE.getDisplayManager().setProgressBarMessage(null);
                    OPDE.getMainframe().setBlocked(false);
                }
            };
            worker.execute();
        }
    });
    pnlDrugControl.add(btnDrugControl, BorderLayout.WEST);
    pnlDrugControl.add(cmbStation, BorderLayout.EAST);
    pnlContent.add(pnlDrugControl);

    /***
     *     __        __   _       _     _    ____            _             _   _   _                     _   _
     *     \ \      / /__(_) __ _| |__ | |_ / ___|___  _ __ | |_ _ __ ___ | | | \ | | __ _ _ __ ___ ___ | |_(_) ___ ___
     *      \ \ /\ / / _ \ |/ _` | '_ \| __| |   / _ \| '_ \| __| '__/ _ \| | |  \| |/ _` | '__/ __/ _ \| __| |/ __/ __|
     *       \ V  V /  __/ | (_| | | | | |_| |__| (_) | | | | |_| | | (_) | | | |\  | (_| | | | (_| (_) | |_| | (__\__ \
     *        \_/\_/ \___|_|\__, |_| |_|\__|\____\___/|_| |_|\__|_|  \___/|_| |_| \_|\__,_|_|  \___\___/ \__|_|\___|___/
     *                      |___/
     */
    JPanel pnlWeightControllNarcotics = new JPanel(new BorderLayout());
    final JButton btnWeightControl = GUITools
            .createHyperlinkButton("opde.controlling.prescription.narcotics.weightcontrol", null, null);

    //               final JComboBox cmbStation = new JComboBox(StationTools.getAll4Combobox(false));
    btnWeightControl.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            OPDE.getMainframe().setBlocked(true);
            SwingWorker worker = new SwingWorker() {
                @Override
                protected Object doInBackground() throws Exception {

                    return MedStockTools.getNarcoticsWeightList(new LocalDate().minusMonths(1),
                            new LocalDate());
                }

                @Override
                protected void done() {

                    try {
                        SYSFilesTools.print(get().toString(), true);
                    } catch (ExecutionException ee) {
                        OPDE.fatal(ee);
                    } catch (InterruptedException ie) {
                        // nop
                    }

                    OPDE.getDisplayManager().setProgressBarMessage(null);
                    OPDE.getMainframe().setBlocked(false);
                }
            };
            worker.execute();
        }
    });

    final JToggleButton btnNotify = new JToggleButton(SYSConst.icon22mailOFF);
    btnNotify.setSelectedIcon(SYSConst.icon22mailON);
    btnNotify.setSelected(NotificationTools.find(OPDE.getLogin().getUser(),
            NotificationTools.NKEY_DRUG_WEIGHT_CONTROL) != null);
    btnNotify.setToolTipText(SYSTools.xx("opde.notification.enable.for.this.topic"));

    btnNotify.addItemListener(new ItemListener() {
        @Override
        public void itemStateChanged(ItemEvent e) {

            EntityManager em = OPDE.createEM();
            try {
                em.getTransaction().begin();
                Users user = em.merge(OPDE.getLogin().getUser());
                em.lock(user, LockModeType.OPTIMISTIC_FORCE_INCREMENT);

                if (e.getStateChange() == ItemEvent.SELECTED) {
                    Notification myNotification = em
                            .merge(new Notification(NotificationTools.NKEY_DRUG_WEIGHT_CONTROL, user));
                    user.getNotifications().add(myNotification);
                } else {
                    Notification myNotification = em.merge(NotificationTools.find(OPDE.getLogin().getUser(),
                            NotificationTools.NKEY_DRUG_WEIGHT_CONTROL));
                    user.getNotifications().remove(myNotification);
                    em.remove(myNotification);
                }

                em.getTransaction().commit();
                OPDE.getLogin().setUser(user);
            } catch (OptimisticLockException ole) {
                OPDE.warn(ole);
                if (em.getTransaction().isActive()) {
                    em.getTransaction().rollback();
                }
                if (ole.getMessage().indexOf("Class> entity.info.Resident") > -1) {
                    OPDE.getMainframe().emptyFrame();
                    OPDE.getMainframe().afterLogin();
                }
                OPDE.getDisplayManager().addSubMessage(DisplayManager.getLockMessage());
            } catch (Exception ex) {
                if (em.getTransaction().isActive()) {
                    em.getTransaction().rollback();
                }
                OPDE.fatal(ex);
            } finally {
                em.close();
            }

        }
    });

    pnlWeightControllNarcotics.add(btnWeightControl, BorderLayout.WEST);
    pnlWeightControllNarcotics.add(btnNotify, BorderLayout.EAST);
    pnlContent.add(pnlWeightControllNarcotics);

    return pnlContent;
}

From source file:com.tiempometa.muestradatos.JMuestraDatos.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY
    // //GEN-BEGIN:initComponents
    ResourceBundle bundle = ResourceBundle.getBundle("com.tiempometa.muestradatos.muestradatos");
    menuBar1 = new JMenuBar();
    menu1 = new JMenu();
    configMenuItem = new JMenuItem();
    importTagsMenuItem = new JMenuItem();
    exportTagsMenuItem = new JMenuItem();
    clearTagsMenuItem = new JMenuItem();
    exitMenuItem = new JMenuItem();
    menu3 = new JMenu();
    aboutUsMenuItem = new JMenuItem();
    configureJavaMenuItem = new JMenuItem();
    panel5 = new JPanel();
    panel3 = new JPanel();
    panel4 = new JPanel();
    tabbedPane1 = new JTabbedPane();
    panel2 = new JPanel();
    label9 = new JLabel();
    label10 = new JLabel();
    label3 = new JLabel();
    readerPortLabel = new JLabel();
    label11 = new JLabel();
    boxIpAddressLabel = new JLabel();
    label4 = new JLabel();
    readerStatusLabel = new JLabel();
    label12 = new JLabel();
    boxTypeLabel = new JLabel();
    label2 = new JLabel();
    rssiLevelLabel = new JLabel();
    label13 = new JLabel();
    preferredReaderLabel = new JLabel();
    label5 = new JLabel();
    regionLabel = new JLabel();
    label14 = new JLabel();
    preferredAntenaLabel = new JLabel();
    label6 = new JLabel();
    readPowerLabel = new JLabel();
    label7 = new JLabel();
    writePowerLevel = new JLabel();
    usbConnectButton = new JButton();
    boxConnectButton = new JButton();
    panel1 = new JPanel();
    verifyDataButton = new JButton();
    loadReadingsButton = new JButton();
    readTagButton = new JButton();
    countTagsButton = new JButton();
    programTagButton = new JButton();
    panel8 = new JPanel();
    setBoxTimeButton = new JButton();
    getBoxTimeButton = new JButton();
    label20 = new JLabel();
    label19 = new JLabel();
    systemTimeLabel = new JLabel();
    foxberryTimeLabel = new JLabel();
    foxberryTimeDiffLabel = new JLabel();
    panel6 = new JPanel();
    label21 = new JLabel();
    label1 = new JLabel();
    usbStatusLabel = new JLabel();
    label16 = new JLabel();
    tcpStatusLabel = new JLabel();
    label8 = new JLabel();
    databaseLabel = new JLabel();
    panel7 = new JPanel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle(bundle.getString("JMuestraDatos.this.title"));
    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    setIconImage(//w  w  w.  j a va  2 s.c om
            new ImageIcon(getClass().getResource("/com/tiempometa/resources/tiempometa_icon_large_alpha.png"))
                    .getImage());
    setResizable(false);
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

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

        //======== menu1 ========
        {
            menu1.setText(bundle.getString("JMuestraDatos.menu1.text"));

            //---- configMenuItem ----
            configMenuItem.setText(bundle.getString("JMuestraDatos.configMenuItem.text"));
            configMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    configMenuItemActionPerformed(e);
                }
            });
            menu1.add(configMenuItem);

            //---- importTagsMenuItem ----
            importTagsMenuItem.setText(bundle.getString("JMuestraDatos.importTagsMenuItem.text"));
            importTagsMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    importTagsMenuItemActionPerformed(e);
                }
            });
            menu1.add(importTagsMenuItem);

            //---- exportTagsMenuItem ----
            exportTagsMenuItem.setText(bundle.getString("JMuestraDatos.exportTagsMenuItem.text"));
            exportTagsMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    exportTagsMenuItemActionPerformed(e);
                }
            });
            menu1.add(exportTagsMenuItem);

            //---- clearTagsMenuItem ----
            clearTagsMenuItem.setText(bundle.getString("JMuestraDatos.clearTagsMenuItem.text"));
            clearTagsMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    clearTagsMenuItemActionPerformed(e);
                }
            });
            menu1.add(clearTagsMenuItem);
            menu1.addSeparator();

            //---- exitMenuItem ----
            exitMenuItem.setText(bundle.getString("JMuestraDatos.exitMenuItem.text"));
            exitMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    menuItem2ActionPerformed(e);
                }
            });
            menu1.add(exitMenuItem);
        }
        menuBar1.add(menu1);

        //======== menu3 ========
        {
            menu3.setText(bundle.getString("JMuestraDatos.menu3.text"));

            //---- aboutUsMenuItem ----
            aboutUsMenuItem.setText(bundle.getString("JMuestraDatos.aboutUsMenuItem.text"));
            aboutUsMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    aboutUsMenuItemActionPerformed(e);
                }
            });
            menu3.add(aboutUsMenuItem);

            //---- configureJavaMenuItem ----
            configureJavaMenuItem.setText(bundle.getString("JMuestraDatos.configureJavaMenuItem.text"));
            configureJavaMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    configureJavaMenuItemActionPerformed(e);
                }
            });
            menu3.add(configureJavaMenuItem);
        }
        menuBar1.add(menu3);
    }
    setJMenuBar(menuBar1);

    //======== panel5 ========
    {
        panel5.setLayout(new FormLayout(
                new ColumnSpec[] { new ColumnSpec(Sizes.dluX(18)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(Sizes.dluX(343)) },
                new RowSpec[] { new RowSpec(Sizes.dluY(17)), FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(Sizes.dluY(17)) }));
    }
    contentPane.add(panel5, BorderLayout.NORTH);

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

    //======== panel4 ========
    {
        panel4.setLayout(
                new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(410)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                        RowSpec.decodeSpecs("245dlu")));

        //======== tabbedPane1 ========
        {
            tabbedPane1.setFont(new Font("Tahoma", Font.BOLD, 16));

            //======== panel2 ========
            {
                panel2.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(25)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(89)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(73)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(17)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(84)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(80)) },
                        new RowSpec[] { new RowSpec(Sizes.dluY(20)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(Sizes.DLUY8) }));

                //---- label9 ----
                label9.setText(bundle.getString("JMuestraDatos.label9.text"));
                label9.setFont(new Font("Tahoma", Font.BOLD, 16));
                label9.setIcon(new ImageIcon(getClass().getResource("/com/tiempometa/resources/usb_128.png")));
                label9.setHorizontalAlignment(SwingConstants.CENTER);
                panel2.add(label9, cc.xywh(3, 3, 3, 1));

                //---- label10 ----
                label10.setText(bundle.getString("JMuestraDatos.label10.text"));
                label10.setFont(new Font("Tahoma", Font.BOLD, 16));
                label10.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/briefcase_128.png")));
                label10.setHorizontalAlignment(SwingConstants.CENTER);
                panel2.add(label10, cc.xywh(9, 3, 3, 1));

                //---- label3 ----
                label3.setText(bundle.getString("JMuestraDatos.label3.text"));
                label3.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label3, cc.xy(3, 5));

                //---- readerPortLabel ----
                readerPortLabel.setText(bundle.getString("JMuestraDatos.readerPortLabel.text"));
                panel2.add(readerPortLabel, cc.xy(5, 5));

                //---- label11 ----
                label11.setText(bundle.getString("JMuestraDatos.label11.text"));
                label11.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label11, cc.xy(9, 5));

                //---- boxIpAddressLabel ----
                boxIpAddressLabel.setText(bundle.getString("JMuestraDatos.boxIpAddressLabel.text"));
                panel2.add(boxIpAddressLabel, cc.xy(11, 5));

                //---- label4 ----
                label4.setText(bundle.getString("JMuestraDatos.label4.text"));
                label4.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label4, cc.xy(3, 7));

                //---- readerStatusLabel ----
                readerStatusLabel.setText(bundle.getString("JMuestraDatos.readerStatusLabel.text"));
                panel2.add(readerStatusLabel, cc.xy(5, 7));

                //---- label12 ----
                label12.setText(bundle.getString("JMuestraDatos.label12.text"));
                label12.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label12, cc.xy(9, 7));

                //---- boxTypeLabel ----
                boxTypeLabel.setText(bundle.getString("JMuestraDatos.boxTypeLabel.text"));
                panel2.add(boxTypeLabel, cc.xy(11, 7));

                //---- label2 ----
                label2.setText(bundle.getString("JMuestraDatos.label2.text"));
                label2.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label2, cc.xy(3, 9));

                //---- rssiLevelLabel ----
                rssiLevelLabel.setText(bundle.getString("JMuestraDatos.rssiLevelLabel.text"));
                panel2.add(rssiLevelLabel, cc.xy(5, 9));

                //---- label13 ----
                label13.setText(bundle.getString("JMuestraDatos.label13.text"));
                label13.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label13, cc.xy(9, 9));

                //---- preferredReaderLabel ----
                preferredReaderLabel.setText(bundle.getString("JMuestraDatos.preferredReaderLabel.text"));
                panel2.add(preferredReaderLabel, cc.xy(11, 9));

                //---- label5 ----
                label5.setText(bundle.getString("JMuestraDatos.label5.text"));
                label5.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label5, cc.xy(3, 11));

                //---- regionLabel ----
                regionLabel.setText(bundle.getString("JMuestraDatos.regionLabel.text"));
                panel2.add(regionLabel, cc.xy(5, 11));

                //---- label14 ----
                label14.setText(bundle.getString("JMuestraDatos.label14.text"));
                label14.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label14, cc.xy(9, 11));

                //---- preferredAntenaLabel ----
                preferredAntenaLabel.setText(bundle.getString("JMuestraDatos.preferredAntenaLabel.text"));
                panel2.add(preferredAntenaLabel, cc.xy(11, 11));

                //---- label6 ----
                label6.setText(bundle.getString("JMuestraDatos.label6.text"));
                label6.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label6, cc.xy(3, 13));

                //---- readPowerLabel ----
                readPowerLabel.setText(bundle.getString("JMuestraDatos.readPowerLabel.text"));
                panel2.add(readPowerLabel, cc.xy(5, 13));

                //---- label7 ----
                label7.setText(bundle.getString("JMuestraDatos.label7.text"));
                label7.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label7, cc.xy(3, 15));

                //---- writePowerLevel ----
                writePowerLevel.setText(bundle.getString("JMuestraDatos.writePowerLevel.text"));
                panel2.add(writePowerLevel, cc.xy(5, 15));

                //---- usbConnectButton ----
                usbConnectButton.setText(bundle.getString("JMuestraDatos.usbConnectButton.text"));
                usbConnectButton.setFont(new Font("Tahoma", Font.BOLD, 14));
                usbConnectButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        usbConnectButtonActionPerformed(e);
                    }
                });
                panel2.add(usbConnectButton, cc.xywh(3, 17, 3, 1));

                //---- boxConnectButton ----
                boxConnectButton.setText(bundle.getString("JMuestraDatos.boxConnectButton.text"));
                boxConnectButton.setFont(new Font("Tahoma", Font.BOLD, 14));
                boxConnectButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        boxConnectButtonActionPerformed(e);
                    }
                });
                panel2.add(boxConnectButton, cc.xywh(9, 17, 3, 1));
            }
            tabbedPane1.addTab(bundle.getString("JMuestraDatos.panel2.tab.title"), panel2);

            //======== panel1 ========
            {
                panel1.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(35)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(120)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(47)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(130)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(28)) },
                        new RowSpec[] { new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC }));

                //---- verifyDataButton ----
                verifyDataButton.setText(bundle.getString("JMuestraDatos.verifyDataButton.text"));
                verifyDataButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/check_64.png")));
                verifyDataButton.setHorizontalAlignment(SwingConstants.LEFT);
                verifyDataButton.setRolloverIcon(null);
                verifyDataButton.setPressedIcon(null);
                verifyDataButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                verifyDataButton.setEnabled(false);
                verifyDataButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        verifyDataButtonActionPerformed(e);
                    }
                });
                panel1.add(verifyDataButton, cc.xywh(3, 3, 3, 1));

                //---- loadReadingsButton ----
                loadReadingsButton.setText(bundle.getString("JMuestraDatos.loadReadingsButton.text"));
                loadReadingsButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/load_64.png")));
                loadReadingsButton.setHorizontalAlignment(SwingConstants.LEFT);
                loadReadingsButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                loadReadingsButton.setEnabled(false);
                loadReadingsButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        loadReadingsButtonActionPerformed(e);
                    }
                });
                panel1.add(loadReadingsButton, cc.xywh(7, 3, 3, 1));

                //---- readTagButton ----
                readTagButton.setText(bundle.getString("JMuestraDatos.readTagButton.text"));
                readTagButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/scan_64.png")));
                readTagButton.setHorizontalAlignment(SwingConstants.LEFT);
                readTagButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                readTagButton.setEnabled(false);
                readTagButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        readTagButtonActionPerformed(e);
                    }
                });
                panel1.add(readTagButton, cc.xywh(3, 5, 3, 1));

                //---- countTagsButton ----
                countTagsButton.setText(bundle.getString("JMuestraDatos.countTagsButton.text"));
                countTagsButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/counter_64.png")));
                countTagsButton.setHorizontalAlignment(SwingConstants.LEFT);
                countTagsButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                countTagsButton.setEnabled(false);
                countTagsButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        countTagsButtonActionPerformed(e);
                    }
                });
                panel1.add(countTagsButton, cc.xywh(7, 5, 3, 1));

                //---- programTagButton ----
                programTagButton.setText(bundle.getString("JMuestraDatos.programTagButton.text"));
                programTagButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/record_64.png")));
                programTagButton.setHorizontalAlignment(SwingConstants.LEFT);
                programTagButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                programTagButton.setEnabled(false);
                programTagButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        programTagButtonActionPerformed(e);
                    }
                });
                panel1.add(programTagButton, cc.xywh(3, 7, 3, 1));
            }
            tabbedPane1.addTab(bundle.getString("JMuestraDatos.panel1.tab.title"), panel1);

            //======== panel8 ========
            {
                panel8.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(35)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(160)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(160)) },
                        new RowSpec[] { new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC }));

                //---- setBoxTimeButton ----
                setBoxTimeButton.setText(bundle.getString("JMuestraDatos.setBoxTimeButton.text"));
                setBoxTimeButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/set_time_64.png")));
                setBoxTimeButton.setHorizontalAlignment(SwingConstants.LEFT);
                setBoxTimeButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                setBoxTimeButton.setEnabled(false);
                setBoxTimeButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        setBoxTimeButtonActionPerformed(e);
                    }
                });
                panel8.add(setBoxTimeButton, cc.xy(3, 3));

                //---- getBoxTimeButton ----
                getBoxTimeButton.setText(bundle.getString("JMuestraDatos.getBoxTimeButton.text"));
                getBoxTimeButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/get_time_64.png")));
                getBoxTimeButton.setHorizontalAlignment(SwingConstants.LEFT);
                getBoxTimeButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                getBoxTimeButton.setEnabled(false);
                getBoxTimeButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        getBoxTimeButtonActionPerformed(e);
                    }
                });
                panel8.add(getBoxTimeButton, cc.xy(5, 3));

                //---- label20 ----
                label20.setText(bundle.getString("JMuestraDatos.label20.text"));
                label20.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel8.add(label20, cc.xy(3, 5));

                //---- label19 ----
                label19.setText(bundle.getString("JMuestraDatos.label19.text"));
                label19.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel8.add(label19, cc.xy(5, 5));
                panel8.add(systemTimeLabel, cc.xy(3, 7));
                panel8.add(foxberryTimeLabel, cc.xy(5, 7));
                panel8.add(foxberryTimeDiffLabel, cc.xy(5, 9));
            }
            tabbedPane1.addTab(bundle.getString("JMuestraDatos.panel8.tab.title"), panel8);
        }
        panel4.add(tabbedPane1, cc.xy(1, 1));
    }
    contentPane.add(panel4, BorderLayout.CENTER);

    //======== panel6 ========
    {
        panel6.setLayout(new FormLayout(
                new ColumnSpec[] { new ColumnSpec(Sizes.dluX(17)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(Sizes.dluX(65)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(Sizes.dluX(65)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(Sizes.dluX(199)) },
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));

        //---- label21 ----
        label21.setText(bundle.getString("JMuestraDatos.label21.text"));
        label21.setFont(new Font("Tahoma", Font.BOLD, 16));
        panel6.add(label21, cc.xy(3, 1));

        //---- label1 ----
        label1.setText(bundle.getString("JMuestraDatos.label1.text"));
        label1.setFont(new Font("Tahoma", Font.PLAIN, 14));
        panel6.add(label1, cc.xy(5, 1));

        //---- usbStatusLabel ----
        usbStatusLabel.setText(bundle.getString("JMuestraDatos.usbStatusLabel.text"));
        usbStatusLabel.setFont(new Font("Tahoma", Font.PLAIN, 14));
        panel6.add(usbStatusLabel, cc.xy(7, 1));

        //---- label16 ----
        label16.setText(bundle.getString("JMuestraDatos.label16.text"));
        label16.setFont(new Font("Tahoma", Font.PLAIN, 14));
        panel6.add(label16, cc.xy(9, 1));

        //---- tcpStatusLabel ----
        tcpStatusLabel.setText(bundle.getString("JMuestraDatos.tcpStatusLabel.text"));
        tcpStatusLabel.setFont(new Font("Tahoma", Font.PLAIN, 14));
        panel6.add(tcpStatusLabel, cc.xy(11, 1));

        //---- label8 ----
        label8.setText(bundle.getString("JMuestraDatos.label8.text"));
        label8.setFont(new Font("Tahoma", Font.BOLD, 16));
        panel6.add(label8, cc.xy(3, 3));

        //---- databaseLabel ----
        databaseLabel.setText(bundle.getString("JMuestraDatos.databaseLabel.text"));
        panel6.add(databaseLabel, cc.xywh(3, 5, 11, 1));
    }
    contentPane.add(panel6, BorderLayout.SOUTH);

    //======== panel7 ========
    {
        panel7.setLayout(new FormLayout(
                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC },
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC }));
    }
    contentPane.add(panel7, BorderLayout.EAST);
    setSize(740, 620);
    setLocationRelativeTo(getOwner());
    // //GEN-END:initComponents
}

From source file:org.colombbus.tangara.EditorFrame.java

/**
 * This method initializes jPanel2/*from  w  w w.j  a  va 2s  . c o m*/
 *
 * @return javax.swing.JPanel
 */
private JPanel getCommandPanel() {
    if (commandPanel == null) {
        commandPanel = new JPanel();
        commandPanel.setLayout(new BorderLayout());
        commandPanel.add(getCommandPane(), BorderLayout.CENTER);
        commandPanel.add(getCmdButtonPanel(), BorderLayout.EAST);
    }
    return commandPanel;
}

From source file:edu.ku.brc.af.ui.forms.TableViewObj.java

/**
 * Creates and adds a re-order panel to the table view.
 *//*from  w w w.  ja  va2  s .  com*/
protected void addOrderablePanel() {
    doOrdering = true;

    orderUpBtn = createIconBtn("ReorderUp", "ES_RES_MOVE_UP", new ActionListener() {
        public void actionPerformed(ActionEvent ae) {
            orderUp();
        }
    });
    orderDwnBtn = createIconBtn("ReorderDown", "ES_RES_MOVE_DOWN", new ActionListener() {
        public void actionPerformed(ActionEvent ae) {
            orderDown();
        }
    });

    PanelBuilder upDownPanel = new PanelBuilder(new FormLayout("p", "f:p:g, p, 2px, p, f:p:g"));
    upDownPanel.add(orderUpBtn, cc.xy(1, 2));
    upDownPanel.add(orderDwnBtn, cc.xy(1, 4));

    orderablePanel.add(upDownPanel.getPanel(), BorderLayout.EAST);
    orderablePanel.validate();
    orderablePanel.invalidate();
    orderablePanel.doLayout();
}

From source file:UI.SecurityDashboard.java

private void performMetric7(MainViewPanel mvp) {
    Metric7 metric7 = new Metric7();

    JPanel graphPanel7 = new JPanel();
    graphPanel7.setLayout(new BorderLayout());
    graphPanel7.add(metric7.run(), BorderLayout.NORTH);

    PortPanel.setLayout(new BorderLayout());
    JTextArea header = new JTextArea(
            "\nOpen ports that are not being used by a secure service on a system may result in a malicious "
                    + "attacker gaining access to the network. By listing all open ports on each device, this can aid in ensuring that ports "
                    + "currently open are know of.\n");
    header.setLineWrap(true);//from   ww  w. j  ava 2 s  .c om
    header.setWrapStyleWord(true);
    header.setEditable(false);
    PortPanel.add(header, BorderLayout.NORTH);
    PortPanel.add(graphPanel7, BorderLayout.CENTER);

    Metric7Panel.setBackground(Color.WHITE);
    Metric7Panel.setLayout(new BorderLayout());

    Font titleFont = new Font("Calibri", Font.BOLD, 27);
    JLabel portTitleLabel = new JLabel("              Open Ports");
    portTitleLabel.setFont(titleFont);

    Metric7Panel.add(portTitleLabel, BorderLayout.NORTH);
    JPanel p = new JPanel();
    p.setLayout(new BorderLayout());
    JLabel emptyLabel = new JLabel(" ");
    JLabel emptyLabel2 = new JLabel(" ");
    JLabel emptyLabel3 = new JLabel("   ");
    JLabel emptyLabel4 = new JLabel("   ");

    emptyLabel.setBackground(Color.white);
    emptyLabel2.setBackground(Color.white);
    emptyLabel3.setBackground(Color.white);
    emptyLabel4.setBackground(Color.white);

    emptyLabel.setOpaque(true);
    emptyLabel2.setOpaque(true);
    emptyLabel3.setOpaque(true);
    emptyLabel4.setOpaque(true);

    p.add(emptyLabel, BorderLayout.NORTH);
    p.add(emptyLabel3, BorderLayout.WEST);
    p.add(mvp.getPanel7(metric7), BorderLayout.CENTER);
    p.add(emptyLabel4, BorderLayout.EAST);
    p.add(emptyLabel2, BorderLayout.SOUTH);
    Metric7Panel.add(p, BorderLayout.CENTER);
    Metric7Panel.setBackground(Color.white);
}

From source file:com.haulmont.cuba.desktop.gui.components.DesktopAbstractTable.java

@Override
public void setRowsCount(RowsCount rowsCount) {
    if (this.rowsCount != null) {
        topPanel.remove(DesktopComponentsHelper.getComposition(this.rowsCount));
    }/*from  w  ww.j a v  a  2 s .c o m*/
    this.rowsCount = rowsCount;
    if (rowsCount != null) {
        topPanel.add(DesktopComponentsHelper.getComposition(rowsCount), BorderLayout.EAST);
        topPanel.setVisible(true);
    }
}

From source file:op.controlling.PnlControlling.java

private JPanel createContentPanel4Nutrition() {
    JPanel pnlContent = new JPanel(new VerticalLayout());

    /***/*from   w  w  w . ja v a  2  s  .co m*/
     *      _ _             _     _   _           _
     *     | (_) __ _ _   _(_) __| | | |__   __ _| | __ _ _ __   ___ ___
     *     | | |/ _` | | | | |/ _` | | '_ \ / _` | |/ _` | '_ \ / __/ _ \
     *     | | | (_| | |_| | | (_| | | |_) | (_| | | (_| | | | | (_|  __/
     *     |_|_|\__, |\__,_|_|\__,_| |_.__/ \__,_|_|\__,_|_| |_|\___\___|
     *             |_|
     */
    JPanel pnlLiquidBalance = new JPanel(new BorderLayout());
    final JButton btnLiquidBalance = GUITools.createHyperlinkButton("opde.controlling.nutrition.liquidbalance",
            null, null);
    final JComboBox cmbLiquidBalanceMonth = new JComboBox(
            SYSCalendar.createMonthList(new LocalDate().minusYears(1), new LocalDate()));
    btnLiquidBalance.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            OPDE.getMainframe().setBlocked(true);
            SwingWorker worker = new SwingWorker() {
                @Override
                protected Object doInBackground() throws Exception {
                    LocalDate month = (LocalDate) cmbLiquidBalanceMonth.getSelectedItem();
                    SYSFilesTools.print(ResValueTools.getLiquidBalance(month, progressClosure), false);
                    return null;
                }

                @Override
                protected void done() {
                    OPDE.getDisplayManager().setProgressBarMessage(null);
                    OPDE.getMainframe().setBlocked(false);
                }
            };
            worker.execute();
        }
    });
    cmbLiquidBalanceMonth.setRenderer(new ListCellRenderer() {
        @Override
        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
                boolean cellHasFocus) {
            return new DefaultListCellRenderer().getListCellRendererComponent(list,
                    monthFormatter.format(((LocalDate) value).toDate()), index, isSelected, cellHasFocus);
        }
    });
    cmbLiquidBalanceMonth.setSelectedIndex(cmbLiquidBalanceMonth.getItemCount() - 2);
    pnlLiquidBalance.add(btnLiquidBalance, BorderLayout.WEST);
    pnlLiquidBalance.add(cmbLiquidBalanceMonth, BorderLayout.EAST);
    pnlContent.add(pnlLiquidBalance);

    /***
     *                   _       _     _         _        _   _     _   _
     *     __      _____(_) __ _| |__ | |_   ___| |_ __ _| |_(_)___| |_(_) ___ ___
     *     \ \ /\ / / _ \ |/ _` | '_ \| __| / __| __/ _` | __| / __| __| |/ __/ __|
     *      \ V  V /  __/ | (_| | | | | |_  \__ \ || (_| | |_| \__ \ |_| | (__\__ \
     *       \_/\_/ \___|_|\__, |_| |_|\__| |___/\__\__,_|\__|_|___/\__|_|\___|___/
     *                     |___/
     */
    JPanel pnlWeight = new JPanel(new BorderLayout());
    final JButton btnWeightStats = GUITools.createHyperlinkButton("opde.controlling.nutrition.weightstats",
            null, null);
    int wsMonthsBack;
    try {
        wsMonthsBack = Integer.parseInt(OPDE.getProps().getProperty("opde.controlling::wsMonthsBack"));
    } catch (NumberFormatException nfe) {
        wsMonthsBack = 7;
    }
    final JTextField txtWSMonthsBack = GUITools.createIntegerTextField(1, 24, wsMonthsBack);
    txtWSMonthsBack.setToolTipText(SYSTools.xx("misc.msg.monthsback"));
    btnWeightStats.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            OPDE.getMainframe().setBlocked(true);
            SwingWorker worker = new SwingWorker() {
                @Override
                protected Object doInBackground() throws Exception {
                    SYSPropsTools.storeProp("opde.controlling::wsMonthsBack", txtWSMonthsBack.getText(),
                            OPDE.getLogin().getUser());
                    SYSFilesTools.print(ResValueTools.getWeightStats(
                            Integer.parseInt(txtWSMonthsBack.getText()), progressClosure), false);
                    return null;
                }

                @Override
                protected void done() {
                    OPDE.getDisplayManager().setProgressBarMessage(null);
                    OPDE.getMainframe().setBlocked(false);
                }
            };
            worker.execute();
        }
    });
    pnlWeight.add(btnWeightStats, BorderLayout.WEST);
    pnlWeight.add(txtWSMonthsBack, BorderLayout.EAST);
    pnlContent.add(pnlWeight);

    return pnlContent;
}

From source file:fs.MainWindow.java

private void initComponents() {

    jPanel7 = new javax.swing.JPanel();
    buttonGroup_SE = new javax.swing.ButtonGroup();
    jPanel4 = new javax.swing.JPanel();
    buttonGroup_CV = new javax.swing.ButtonGroup();
    buttonGroup_DataType = new javax.swing.ButtonGroup();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    jP_Input = new javax.swing.JPanel();
    jP_InputData = new javax.swing.JPanel();
    jSP_InputData = new javax.swing.JScrollPane();
    jT_InputData = new javax.swing.JTable();
    jLabel12 = new javax.swing.JLabel();
    jButton13 = new javax.swing.JButton();
    jPanel9 = new javax.swing.JPanel();
    jButton2 = new javax.swing.JButton();
    jB_ReadData = new javax.swing.JButton();
    jButton6 = new javax.swing.JButton();
    jCB_TransposeMatrix = new javax.swing.JCheckBox();
    jButton32 = new javax.swing.JButton();
    jCB_DataTitlesColumns = new javax.swing.JCheckBox();
    jCB_ColumnDescription = new javax.swing.JCheckBox();
    jTF_InputFile = new javax.swing.JTextField();
    jLabel16 = new javax.swing.JLabel();
    jP_Quantization = new javax.swing.JPanel();
    jPanel8 = new javax.swing.JPanel();
    jLabel3 = new javax.swing.JLabel();
    jB_ApplyQuantization = new javax.swing.JButton();
    jButton11 = new javax.swing.JButton();
    jCB_HasLabels = new javax.swing.JCheckBox();
    jB_ApplyQuantization1 = new javax.swing.JButton();
    jButton33 = new javax.swing.JButton();
    jButton18 = new javax.swing.JButton();
    jS_QuantizationValue = new javax.swing.JSpinner();
    jP_QuantizedData = new javax.swing.JPanel();
    jLabel13 = new javax.swing.JLabel();
    jSP_QuantizedData = new javax.swing.JScrollPane();
    jT_QuantizedData = new javax.swing.JTable();
    jButton4 = new javax.swing.JButton();
    jP_SFS = new javax.swing.JPanel();
    jPanel3 = new javax.swing.JPanel();
    jLabel14 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTA_SelectedFeaturesSE = new javax.swing.JTextArea();
    jScrollPane2 = new javax.swing.JScrollPane();
    jTA_SaidaSE = new javax.swing.JTextArea();
    jBtnSaveResultsSE = new javax.swing.JButton();
    jPanel5 = new javax.swing.JPanel();
    jPanel14 = new javax.swing.JPanel();
    jP_SelectSearchAlgorithm = new javax.swing.JPanel();
    jRB_SFSSE = new javax.swing.JRadioButton();
    jRB_SFFSSE = new javax.swing.JRadioButton();
    jRB_ESSE = new javax.swing.JRadioButton();
    jLabel29 = new javax.swing.JLabel();
    jS_MaxSetSizeSE = new javax.swing.JSpinner();
    jLabel31 = new javax.swing.JLabel();
    jS_MaxResultListSE = new javax.swing.JSpinner();
    jPanel12 = new javax.swing.JPanel();
    jLabel4 = new javax.swing.JLabel();
    jCB_PenalizationSE = new javax.swing.JComboBox();
    jLabel5 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel11 = new javax.swing.JLabel();
    jTF_InputTestSE = new javax.swing.JTextField();
    jButton3 = new javax.swing.JButton();
    jButton12 = new javax.swing.JButton();
    jProgressBarSE = new javax.swing.JProgressBar();
    jButton35 = new javax.swing.JButton();
    jLabel7 = new javax.swing.JLabel();
    jCB_CriterionFunctionSE = new javax.swing.JComboBox();
    jLabelConfidenceSE = new javax.swing.JLabel();
    jSliderBetaSE = new javax.swing.JSlider();
    jS_QEntropySE = new javax.swing.JSpinner();
    jS_AlphaSE = new javax.swing.JSpinner();
    jPanel15 = new javax.swing.JPanel();
    jButton5 = new javax.swing.JButton();
    jCB_TargetsAsPredictors = new javax.swing.JCheckBox();
    jCB_Periodic = new javax.swing.JCheckBox();
    jLabel_TargetsPredictors = new javax.swing.JLabel();
    jTF_Target = new javax.swing.JTextField();
    jLabel21 = new javax.swing.JLabel();
    jS_ThresholdEntropy = new javax.swing.JSpinner();
    jRBSteadyState = new javax.swing.JRadioButton();
    jRBTimeSeries = new javax.swing.JRadioButton();
    jPanel13 = new javax.swing.JPanel();
    jButton15 = new javax.swing.JButton();
    jBtn_ParallelCoord_SE = new javax.swing.JButton();
    jCB_NormalizeValuesSE = new javax.swing.JCheckBox();
    jButton28 = new javax.swing.JButton();
    jButton16 = new javax.swing.JButton();
    jCB_MeanParallelCoordSE = new javax.swing.JCheckBox();
    jButton8 = new javax.swing.JButton();
    jP_NetVis = new javax.swing.JPanel();
    jToolBar1 = new javax.swing.JToolBar();
    jButton9 = new javax.swing.JButton();
    jButton10 = new javax.swing.JButton();
    jButton14 = new javax.swing.JButton();
    jButton19 = new javax.swing.JButton();
    jChBoxOnlineSearch = new javax.swing.JCheckBox();
    jP_CV = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    jPanel1 = new javax.swing.JPanel();
    jButton7 = new javax.swing.JButton();
    jBtn_ScatterPlot = new javax.swing.JButton();
    jBtn_ParallelCoord_CV = new javax.swing.JButton();
    jButton17 = new javax.swing.JButton();
    jButton36 = new javax.swing.JButton();
    jCB_MeanParallelCoordCV = new javax.swing.JCheckBox();
    jCB_NormalizeValuesCV = new javax.swing.JCheckBox();
    jPanel10 = new javax.swing.JPanel();
    jRB_SFSCV = new javax.swing.JRadioButton();
    jRB_SFFSCV = new javax.swing.JRadioButton();
    jRB_ESCV = new javax.swing.JRadioButton();
    jLabel30 = new javax.swing.JLabel();
    jS_MaxSetSizeCV = new javax.swing.JSpinner();
    jPanel11 = new javax.swing.JPanel();
    jProgressBarCV = new javax.swing.JProgressBar();
    jButton1 = new javax.swing.JButton();
    jSliderCV = new javax.swing.JSlider();
    jLabel10 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jCB_PenalizationCV = new javax.swing.JComboBox();
    jLabel18 = new javax.swing.JLabel();
    jLabel19 = new javax.swing.JLabel();
    jButton34 = new javax.swing.JButton();
    jLabel8 = new javax.swing.JLabel();
    jCB_CriterionFunctionCV = new javax.swing.JComboBox();
    jLabelConfidenceCV = new javax.swing.JLabel();
    jSliderBetaCV = new javax.swing.JSlider();
    jS_NrExecutionsCV = new javax.swing.JSpinner();
    jS_QEntropyCV = new javax.swing.JSpinner();
    jS_AlphaCV = new javax.swing.JSpinner();
    jPanel6 = new javax.swing.JPanel();
    jLabel15 = new javax.swing.JLabel();
    jScrollPane3 = new javax.swing.JScrollPane();
    jTA_SelectedFeaturesCV = new javax.swing.JTextArea();
    jScrollPane4 = new javax.swing.JScrollPane();
    jTA_SaidaCV = new javax.swing.JTextArea();
    jBtnSaveResultsCV = new javax.swing.JButton();

    jPanel7.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    jPanel4.setPreferredSize(new java.awt.Dimension(10, 325));
    jPanel4.setLayout(null);/*from   w  w w.  ja va  2 s .  c om*/

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Interactive Graphic Environment for Dimensionality Reduction");
    getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.LINE_AXIS));

    jP_Input.setLayout(new java.awt.BorderLayout(5, 5));

    jP_InputData.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jP_InputData.setPreferredSize(new java.awt.Dimension(100, 10));
    jP_InputData.setLayout(new java.awt.BorderLayout(5, 5));

    jSP_InputData.setAutoscrolls(true);
    jSP_InputData.setFocusCycleRoot(true);

    jT_InputData
            .setModel(new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Title 1", "Title 2", "Title 3", "Title 4" }));
    jT_InputData.setToolTipText(
            "This table shows the read data. If your input data file has variable titles or descriptions, you can edit them.");
    jT_InputData.setCellSelectionEnabled(true);
    jSP_InputData.setViewportView(jT_InputData);

    jP_InputData.add(jSP_InputData, java.awt.BorderLayout.CENTER);

    jLabel12.setFont(new java.awt.Font("Tahoma", 1, 12));
    jLabel12.setForeground(new java.awt.Color(0, 0, 255));
    jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel12.setOpaque(true);
    jLabel12.setPreferredSize(new java.awt.Dimension(40, 30));
    jP_InputData.add(jLabel12, java.awt.BorderLayout.NORTH);

    jButton13.setFont(new java.awt.Font("Tahoma", 1, 12));
    jButton13.setForeground(new java.awt.Color(0, 0, 255));
    jButton13.setText("Save Read Data");
    jButton13.setToolTipText("Click to save the read data into a text file.");
    jButton13.setPreferredSize(new java.awt.Dimension(163, 30));
    jButton13.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton13ActionPerformed(evt);
        }
    });
    jP_InputData.add(jButton13, java.awt.BorderLayout.SOUTH);

    jP_Input.add(jP_InputData, java.awt.BorderLayout.CENTER);

    jPanel9.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jPanel9.setPreferredSize(new java.awt.Dimension(100, 110));
    jPanel9.setLayout(null);

    jButton2.setText("File");
    jButton2.setToolTipText("Click here to select the input data file.");
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });
    jPanel9.add(jButton2);
    jButton2.setBounds(620, 30, 80, 30);

    jB_ReadData.setText("Read Data");
    jB_ReadData.setToolTipText("After select the input file, click here to read the data.");
    jB_ReadData.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jB_ReadDataActionPerformed(evt);
        }
    });
    jPanel9.add(jB_ReadData);
    jB_ReadData.setBounds(720, 30, 150, 30);

    jButton6.setText("Next Step");
    jButton6.setToolTipText("Go to next step.");
    jButton6.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton6ActionPerformed(evt);
        }
    });
    jPanel9.add(jButton6);
    jButton6.setBounds(890, 30, 110, 30);

    jCB_TransposeMatrix.setText("Transpose the matrix?");
    jCB_TransposeMatrix.setToolTipText(
            "The variables must be at rows and features/samples or time series must be at columns. Mark this check box if needed.");
    jCB_TransposeMatrix.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jPanel9.add(jCB_TransposeMatrix);
    jCB_TransposeMatrix.setBounds(720, 70, 190, 35);

    jButton32.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/help.jpg"))); // NOI18N
    jButton32.setToolTipText("Shows help information about this panel.");
    jButton32.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton32.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton32ActionPerformed(evt);
        }
    });
    jPanel9.add(jButton32);
    jButton32.setBounds(960, 70, 35, 35);

    jCB_DataTitlesColumns.setText("There are titles in first column?");
    jCB_DataTitlesColumns.setToolTipText(
            "If data file has variable descriptions or titles in first column, mark this check box.");
    jPanel9.add(jCB_DataTitlesColumns);
    jCB_DataTitlesColumns.setBounds(420, 70, 290, 35);

    jCB_ColumnDescription.setText("There are column description in first row?");
    jCB_ColumnDescription
            .setToolTipText("If data file has column descriptions in first row, mark this check box.");
    jPanel9.add(jCB_ColumnDescription);
    jCB_ColumnDescription.setBounds(70, 70, 330, 35);

    jTF_InputFile
            .setToolTipText("Click on File button or fill this text box with the path of the input data file.");
    jTF_InputFile.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTF_InputFileActionPerformed(evt);
        }
    });
    jPanel9.add(jTF_InputFile);
    jTF_InputFile.setBounds(140, 30, 480, 30);

    jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel16.setText("Input File: ");
    jPanel9.add(jLabel16);
    jLabel16.setBounds(10, 30, 130, 30);

    jP_Input.add(jPanel9, java.awt.BorderLayout.NORTH);

    jTabbedPane1.addTab("Input Data", jP_Input);

    jP_Quantization.setLayout(new java.awt.BorderLayout(5, 5));

    jPanel8.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jPanel8.setMinimumSize(new java.awt.Dimension(0, 110));
    jPanel8.setPreferredSize(new java.awt.Dimension(14, 110));
    jPanel8.setLayout(null);

    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel3.setText("Quantity of Values: ");
    jPanel8.add(jLabel3);
    jLabel3.setBounds(10, 30, 140, 30);

    jB_ApplyQuantization.setText("Apply Quantization (columns)");
    jB_ApplyQuantization.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jB_ApplyQuantizationActionPerformed(evt);
        }
    });
    jPanel8.add(jB_ApplyQuantization);
    jB_ApplyQuantization.setBounds(230, 30, 280, 30);

    jButton11.setText("Next Step");
    jButton11.setToolTipText("Go to next step.");
    jButton11.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton11ActionPerformed(evt);
        }
    });
    jPanel8.add(jButton11);
    jButton11.setBounds(890, 30, 110, 30);

    jCB_HasLabels.setText("The last column stores the labels of the classes.");
    jCB_HasLabels.setToolTipText(
            "If data file has labels of the classes, these labels must be at last column and you must mark this check box.");
    jCB_HasLabels.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jCB_HasLabels.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCB_HasLabelsActionPerformed(evt);
        }
    });
    jPanel8.add(jCB_HasLabels);
    jCB_HasLabels.setBounds(150, 70, 580, 30);

    jB_ApplyQuantization1.setText("Apply Quantization (rows)");
    jB_ApplyQuantization1.setToolTipText(
            "After selecting discretization value, click here to perform the quantization by rows.");
    jB_ApplyQuantization1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jB_ApplyQuantization1ActionPerformed(evt);
        }
    });
    jPanel8.add(jB_ApplyQuantization1);
    jB_ApplyQuantization1.setBounds(530, 30, 240, 30);

    jButton33.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/help.jpg"))); // NOI18N
    jButton33.setToolTipText("Shows help information about this panel.");
    jButton33.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton33.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton33ActionPerformed(evt);
        }
    });
    jPanel8.add(jButton33);
    jButton33.setBounds(960, 70, 35, 35);

    jButton18.setText("Cycle?");
    jButton18.setToolTipText("Search for cycles among columns.");
    jButton18.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton18ActionPerformed(evt);
        }
    });
    jPanel8.add(jButton18);
    jButton18.setBounds(790, 30, 90, 30);
    jButton18.getAccessibleContext()
            .setAccessibleDescription("Search for cycles among columns that present equal values.");

    jS_QuantizationValue.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(2), Integer.valueOf(1),
            null, Integer.valueOf(1)));
    jS_QuantizationValue.setToolTipText(
            "Fill this text box with an integer value, which represents the quantization level used by quantization process.");
    jPanel8.add(jS_QuantizationValue);
    jS_QuantizationValue.setBounds(150, 30, 60, 30);

    jP_Quantization.add(jPanel8, java.awt.BorderLayout.NORTH);

    jP_QuantizedData.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jP_QuantizedData.setLayout(new java.awt.BorderLayout(5, 5));

    jLabel13.setFont(new java.awt.Font("Tahoma", 1, 12));
    jLabel13.setForeground(new java.awt.Color(0, 0, 255));
    jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel13.setText("Quantized data");
    jLabel13.setOpaque(true);
    jLabel13.setPreferredSize(new java.awt.Dimension(40, 30));
    jP_QuantizedData.add(jLabel13, java.awt.BorderLayout.NORTH);

    jSP_QuantizedData.setAutoscrolls(true);

    jT_QuantizedData
            .setModel(new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Title 1", "Title 2", "Title 3", "Title 4" }));
    jT_QuantizedData.setToolTipText("This table shows the quantized data.");
    jSP_QuantizedData.setViewportView(jT_QuantizedData);

    jP_QuantizedData.add(jSP_QuantizedData, java.awt.BorderLayout.CENTER);

    jButton4.setFont(new java.awt.Font("Tahoma", 1, 12));
    jButton4.setForeground(new java.awt.Color(0, 0, 255));
    jButton4.setText("Save Quantized Data");
    jButton4.setToolTipText("Click to save the quantized data into a text file.");
    jButton4.setPreferredSize(new java.awt.Dimension(163, 30));
    jButton4.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton4ActionPerformed(evt);
        }
    });
    jP_QuantizedData.add(jButton4, java.awt.BorderLayout.SOUTH);

    jP_Quantization.add(jP_QuantizedData, java.awt.BorderLayout.CENTER);

    jTabbedPane1.addTab("Quantization", jP_Quantization);

    jP_SFS.setLayout(new java.awt.BorderLayout(3, 3));

    jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jPanel3.setMinimumSize(new java.awt.Dimension(150, 90));
    jPanel3.setPreferredSize(new java.awt.Dimension(500, 250));
    jPanel3.setLayout(new java.awt.BorderLayout(3, 3));

    jLabel14.setFont(new java.awt.Font("Tahoma", 1, 12));
    jLabel14.setForeground(new java.awt.Color(0, 0, 255));
    jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel14.setText("Results");
    jLabel14.setOpaque(true);
    jLabel14.setPreferredSize(new java.awt.Dimension(40, 30));
    jPanel3.add(jLabel14, java.awt.BorderLayout.NORTH);

    jScrollPane1.setPreferredSize(new java.awt.Dimension(460, 100));

    jTA_SelectedFeaturesSE.setColumns(20);
    jTA_SelectedFeaturesSE.setRows(5);
    jTA_SelectedFeaturesSE.setToolTipText("Feature selection results.");
    jTA_SelectedFeaturesSE.setPreferredSize(null);
    jScrollPane1.setViewportView(jTA_SelectedFeaturesSE);

    jPanel3.add(jScrollPane1, java.awt.BorderLayout.EAST);

    jTA_SaidaSE.setColumns(20);
    jTA_SaidaSE.setRows(5);
    jTA_SaidaSE.setToolTipText("Classification results.");
    jTA_SaidaSE.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jTA_SaidaSEMouseClicked(evt);
        }
    });
    jScrollPane2.setViewportView(jTA_SaidaSE);

    jPanel3.add(jScrollPane2, java.awt.BorderLayout.CENTER);

    jBtnSaveResultsSE.setFont(new java.awt.Font("Tahoma", 1, 12));
    jBtnSaveResultsSE.setForeground(new java.awt.Color(0, 0, 255));
    jBtnSaveResultsSE.setText("Save Results");
    jBtnSaveResultsSE.setToolTipText("Click to save results into a text file.");
    jBtnSaveResultsSE.setPreferredSize(new java.awt.Dimension(104, 30));
    jBtnSaveResultsSE.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jBtnSaveResultsSEActionPerformed(evt);
        }
    });
    jPanel3.add(jBtnSaveResultsSE, java.awt.BorderLayout.SOUTH);

    jP_SFS.add(jPanel3, java.awt.BorderLayout.CENTER);

    jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jPanel5.setPreferredSize(new java.awt.Dimension(310, 380));
    jPanel5.setLayout(new java.awt.BorderLayout());

    jPanel14.setPreferredSize(new java.awt.Dimension(450, 220));
    jPanel14.setLayout(new java.awt.BorderLayout());

    jP_SelectSearchAlgorithm.setBorder(javax.swing.BorderFactory.createTitledBorder("Search Method"));
    jP_SelectSearchAlgorithm.setDoubleBuffered(false);
    jP_SelectSearchAlgorithm.setMinimumSize(new java.awt.Dimension(130, 30));
    jP_SelectSearchAlgorithm.setPreferredSize(new java.awt.Dimension(200, 80));
    jP_SelectSearchAlgorithm.setLayout(new java.awt.GridLayout(7, 1));

    buttonGroup_SE.add(jRB_SFSSE);
    jRB_SFSSE.setText("SFS");
    jRB_SFSSE.setToolTipText("Apply SFS algorithm for feature selection.");
    jRB_SFSSE.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRB_SFSSE.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jRB_SFSSE.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jRB_SFSSE.setPreferredSize(new java.awt.Dimension(41, 30));
    jRB_SFSSE.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRB_SFSSEActionPerformed(evt);
        }
    });
    jP_SelectSearchAlgorithm.add(jRB_SFSSE);

    buttonGroup_SE.add(jRB_SFFSSE);
    jRB_SFFSSE.setSelected(true);
    jRB_SFFSSE.setText("SFFS");
    jRB_SFFSSE.setToolTipText("Apply SFFS algorithm for feature selection.");
    jRB_SFFSSE.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRB_SFFSSE.setPreferredSize(new java.awt.Dimension(41, 30));
    jRB_SFFSSE.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRB_SFFSSEActionPerformed(evt);
        }
    });
    jP_SelectSearchAlgorithm.add(jRB_SFFSSE);

    buttonGroup_SE.add(jRB_ESSE);
    jRB_ESSE.setText("Exhaustive Search");
    jRB_ESSE.setToolTipText("Apply Exhaustive algorithm for feature selection.");
    jRB_ESSE.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRB_ESSE.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jRB_ESSE.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jRB_ESSE.setPreferredSize(new java.awt.Dimension(41, 30));
    jRB_ESSE.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRB_ESSEActionPerformed(evt);
        }
    });
    jP_SelectSearchAlgorithm.add(jRB_ESSE);

    jLabel29.setText("Maximum Set Size:");
    jLabel29.setPreferredSize(new java.awt.Dimension(41, 30));
    jP_SelectSearchAlgorithm.add(jLabel29);

    jS_MaxSetSizeSE.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(5), Integer.valueOf(1), null,
            Integer.valueOf(1)));
    jS_MaxSetSizeSE.setToolTipText(
            "Select the maximum cardinality of the feature set to perform the search (SFFS only).");
    jP_SelectSearchAlgorithm.add(jS_MaxSetSizeSE);

    jLabel31.setText("Size of the Result List:");
    jLabel31.setPreferredSize(new java.awt.Dimension(41, 30));
    jP_SelectSearchAlgorithm.add(jLabel31);

    jS_MaxResultListSE.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(5), Integer.valueOf(1), null,
            Integer.valueOf(1)));
    jS_MaxResultListSE.setToolTipText("Select the maximum size of the result dataset.");
    jS_MaxResultListSE.setPreferredSize(new java.awt.Dimension(41, 30));
    jS_MaxResultListSE.setValue(5);
    jP_SelectSearchAlgorithm.add(jS_MaxResultListSE);

    jPanel14.add(jP_SelectSearchAlgorithm, java.awt.BorderLayout.EAST);
    jP_SelectSearchAlgorithm.getAccessibleContext().setAccessibleName("Select Feature Selector\n");

    jPanel12.setBorder(
            javax.swing.BorderFactory.createTitledBorder("Execution of the Feature Selector and Classifier"));
    jPanel12.setMinimumSize(new java.awt.Dimension(100, 100));
    jPanel12.setPreferredSize(new java.awt.Dimension(100, 180));
    jPanel12.setLayout(null);

    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel4.setText("Penalization Method: ");
    jPanel12.add(jLabel4);
    jLabel4.setBounds(10, 70, 170, 30);

    jCB_PenalizationSE.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "no_obs", "poor_obs" }));
    jCB_PenalizationSE.setToolTipText(
            "no_obs (penalty for non-observed instances)  poor_obs (penalty for poorly observed instances)");
    jCB_PenalizationSE.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCB_PenalizationSEActionPerformed(evt);
        }
    });
    jPanel12.add(jCB_PenalizationSE);
    jCB_PenalizationSE.setBounds(180, 70, 120, 30);

    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel5.setText("Alpha (value for penalty): ");
    jPanel12.add(jLabel5);
    jLabel5.setBounds(310, 70, 210, 30);

    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel2.setText("q-Entropy (Tsallis): ");
    jPanel12.add(jLabel2);
    jLabel2.setBounds(310, 30, 210, 30);

    jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel11.setText("Input Test Set (optional): ");
    jPanel12.add(jLabel11);
    jLabel11.setBounds(5, 160, 185, 30);

    jTF_InputTestSE
            .setToolTipText("Click on File button or fill this text box with the path of the test data file.");
    jPanel12.add(jTF_InputTestSE);
    jTF_InputTestSE.setBounds(190, 160, 530, 30);

    jButton3.setText("File");
    jButton3.setToolTipText("Click here to select a test set file.");
    jButton3.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton3ActionPerformed(evt);
        }
    });
    jPanel12.add(jButton3);
    jButton3.setBounds(720, 160, 80, 30);

    jButton12.setText("Execute Feature Selector");
    jButton12.setToolTipText(
            "Execute feature selection on input data. The input data must have variable labels on its last column.");
    jButton12.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton12ActionPerformed(evt);
        }
    });
    jPanel12.add(jButton12);
    jButton12.setBounds(50, 200, 260, 30);

    jProgressBarSE.setToolTipText("Display the progress of the execution.");
    jProgressBarSE.setStringPainted(true);
    jPanel12.add(jProgressBarSE);
    jProgressBarSE.setBounds(330, 200, 470, 30);

    jButton35.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/help.jpg"))); // NOI18N
    jButton35.setToolTipText("Shows help information about this panel.");
    jButton35.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton35.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton35ActionPerformed(evt);
        }
    });
    jPanel12.add(jButton35);
    jButton35.setBounds(765, 15, 35, 35);

    jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel7.setText("Criterion Function: ");
    jPanel12.add(jLabel7);
    jLabel7.setBounds(10, 30, 170, 30);

    jCB_CriterionFunctionSE.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Entropy", "CoD" }));
    jCB_CriterionFunctionSE.setToolTipText(
            "Select the criterion function based on classifier information (mean conditional entropy) or based on classifier error (CoD - Coefficient of Determination).");
    jCB_CriterionFunctionSE.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCB_CriterionFunctionSEActionPerformed(evt);
        }
    });
    jPanel12.add(jCB_CriterionFunctionSE);
    jCB_CriterionFunctionSE.setBounds(180, 30, 120, 30);

    jLabelConfidenceSE.setText("Beta (value of confidence) 80% : ");
    jPanel12.add(jLabelConfidenceSE);
    jLabelConfidenceSE.setBounds(180, 110, 290, 40);

    jSliderBetaSE.setMajorTickSpacing(20);
    jSliderBetaSE.setMinorTickSpacing(5);
    jSliderBetaSE.setPaintLabels(true);
    jSliderBetaSE.setToolTipText(
            "Beta value is attributed to the conditional probability of the observed class, given the instance (poor_obs only).");
    jSliderBetaSE.setValue(80);
    jSliderBetaSE.setEnabled(false);
    jSliderBetaSE.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            jSliderBetaSEStateChanged(evt);
        }
    });
    jPanel12.add(jSliderBetaSE);
    jSliderBetaSE.setBounds(390, 110, 330, 40);

    jS_QEntropySE.setModel(new javax.swing.SpinnerNumberModel(Float.valueOf(1.0f), Float.valueOf(0.1f), null,
            Float.valueOf(0.1f)));
    jS_QEntropySE.setToolTipText(
            "Use 1 to apply Shannon Entropy.  Use a value <> 1 to apply Tsallis Entropy (Entropy only).");
    jPanel12.add(jS_QEntropySE);
    jS_QEntropySE.setBounds(520, 30, 60, 30);

    jS_AlphaSE.setModel(new javax.swing.SpinnerNumberModel(Float.valueOf(1.0f), Float.valueOf(0.0f), null,
            Float.valueOf(0.1f)));
    jS_AlphaSE.setToolTipText(
            "Alpha value represents the probability mass for the non-observed instances (no_obs only).");
    jPanel12.add(jS_AlphaSE);
    jS_AlphaSE.setBounds(520, 70, 60, 30);

    jPanel14.add(jPanel12, java.awt.BorderLayout.CENTER);

    jPanel15.setBorder(javax.swing.BorderFactory.createTitledBorder("Network Identification"));
    jPanel15.setMinimumSize(new java.awt.Dimension(100, 65));
    jPanel15.setPreferredSize(new java.awt.Dimension(100, 65));
    jPanel15.setLayout(null);

    jButton5.setText("Network Inference");
    jButton5.setToolTipText(
            "Apply feature selection algorithm to find relationship among variables (genes), and as a result, displays a graph in which variables are pesented as nodes and its relationships as edges.");
    jButton5.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton5ActionPerformed(evt);
        }
    });
    jPanel15.add(jButton5);
    jButton5.setBounds(810, 20, 190, 30);

    jCB_TargetsAsPredictors.setText("Targets as Predictors?");
    jCB_TargetsAsPredictors.setToolTipText(
            "Select this option to generate graph from targets (not selected) or predictors (selected).");
    jCB_TargetsAsPredictors.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jCB_TargetsAsPredictors.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jCB_TargetsAsPredictors.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCB_TargetsAsPredictorsActionPerformed(evt);
        }
    });
    jPanel15.add(jCB_TargetsAsPredictors);
    jCB_TargetsAsPredictors.setBounds(490, 15, 190, 25);

    jCB_Periodic.setText("Is it periodic?");
    jCB_Periodic.setToolTipText(
            "Mark this option to assume that time series is periodic, i. e. the last instant of time is connected with first instant of time.");
    jCB_Periodic.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jCB_Periodic.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jPanel15.add(jCB_Periodic);
    jCB_Periodic.setBounds(490, 35, 190, 25);

    jLabel_TargetsPredictors.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel_TargetsPredictors.setText("Target's indexes: ");
    jPanel15.add(jLabel_TargetsPredictors);
    jLabel_TargetsPredictors.setBounds(10, 20, 140, 30);

    jTF_Target.setToolTipText(
            "Fill this text box with predictors or targets indexes to find others genes related with them. \nIf this text box is empty, all genes are considered as target for the Network Identification.");
    jTF_Target.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTF_TargetActionPerformed(evt);
        }
    });
    jPanel15.add(jTF_Target);
    jTF_Target.setBounds(150, 20, 150, 30);

    jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel21.setText("Threshold: ");
    jPanel15.add(jLabel21);
    jLabel21.setBounds(640, 20, 110, 30);

    jS_ThresholdEntropy.setToolTipText(
            "Choose a real value to visualize all graph edges (near 1) or only the most representative ones (near 0).");
    jPanel15.add(jS_ThresholdEntropy);
    jS_ThresholdEntropy.setBounds(750, 20, 50, 30);

    buttonGroup_DataType.add(jRBSteadyState);
    jRBSteadyState.setText("steady-state data");
    jRBSteadyState.setToolTipText(
            "Select this option if your data represents an independent gene expressions, i.e., it is considered by the method relationships among variables/genes (rows) only within each experiment (columns).");
    jRBSteadyState.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRBSteadyStateActionPerformed(evt);
        }
    });
    jPanel15.add(jRBSteadyState);
    jRBSteadyState.setBounds(310, 35, 180, 25);

    buttonGroup_DataType.add(jRBTimeSeries);
    jRBTimeSeries.setSelected(true);
    jRBTimeSeries.setText("time-series data");
    jRBTimeSeries.setToolTipText(
            "Select this option if your data represents a time-series gene expressions, i.e., it is considered by the method time-dependent relationship among the variables/genes (rows) and its observations/samples (columns). The predictors are observed at time t and the targets are observed at time t+1");
    jRBTimeSeries.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRBTimeSeriesActionPerformed(evt);
        }
    });
    jPanel15.add(jRBTimeSeries);
    jRBTimeSeries.setBounds(310, 15, 180, 25);

    jPanel14.add(jPanel15, java.awt.BorderLayout.SOUTH);

    jPanel5.add(jPanel14, java.awt.BorderLayout.CENTER);

    jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder("Graphics and Utilities"));
    jPanel13.setMinimumSize(new java.awt.Dimension(100, 65));
    jPanel13.setPreferredSize(new java.awt.Dimension(100, 65));
    jPanel13.setLayout(null);

    jButton15.setText("Scatter Plot");
    jButton15.setToolTipText(
            "Display a scatter plot chart with two selected features indexes (columns) of the input data.");
    jButton15.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton15ActionPerformed(evt);
        }
    });
    jPanel13.add(jButton15);
    jButton15.setBounds(5, 20, 120, 30);

    jBtn_ParallelCoord_SE.setText("Parallel Coordinates");
    jBtn_ParallelCoord_SE.setToolTipText(
            "Display parallel coordinates chart with selected features indexes (columns) from the input data.");
    jBtn_ParallelCoord_SE.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jBtn_ParallelCoord_SEActionPerformed(evt);
        }
    });
    jPanel13.add(jBtn_ParallelCoord_SE);
    jBtn_ParallelCoord_SE.setBounds(130, 20, 180, 30);

    jCB_NormalizeValuesSE.setText("Normalize values");
    jCB_NormalizeValuesSE.setToolTipText(
            "Mark this check box to plot normalized values between 0 and 1 in parallel coordinates chart.");
    jCB_NormalizeValuesSE.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jPanel13.add(jCB_NormalizeValuesSE);
    jCB_NormalizeValuesSE.setBounds(315, 35, 170, 20);

    jButton28.setText("Signal Plot");
    jButton28.setToolTipText(
            "Display a signal plot of the selected variables indexes (rows) of the input data.");
    jButton28.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton28ActionPerformed(evt);
        }
    });
    jPanel13.add(jButton28);
    jButton28.setBounds(490, 20, 110, 30);

    jButton16.setText("Correlation Coefficient");
    jButton16.setToolTipText(
            "Display a table with correlation coefficient of the selected features indexes (columns) of the input data.");
    jButton16.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton16ActionPerformed(evt);
        }
    });
    jPanel13.add(jButton16);
    jButton16.setBounds(605, 20, 195, 30);

    jCB_MeanParallelCoordSE.setText("Average values only");
    jCB_MeanParallelCoordSE.setToolTipText(
            "Mark this check box to plot only the average values of the features/samples (considering all variables) in a parallel coordinates chart.");
    jCB_MeanParallelCoordSE.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jPanel13.add(jCB_MeanParallelCoordSE);
    jCB_MeanParallelCoordSE.setBounds(315, 15, 180, 20);

    jButton8.setText("View Inferred Network");
    jButton8.setToolTipText(
            "Displays a graph in which variables are pesented as nodes and its relationships as edges.");
    jButton8.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton8ActionPerformed(evt);
        }
    });
    jPanel13.add(jButton8);
    jButton8.setBounds(805, 20, 200, 30);

    jPanel5.add(jPanel13, java.awt.BorderLayout.SOUTH);

    jP_SFS.add(jPanel5, java.awt.BorderLayout.NORTH);

    jTabbedPane1.addTab("Single Execution / Network Identification", jP_SFS);

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

    jToolBar1.setRollover(true);

    jButton9.setText("Open");
    jButton9.setFocusable(false);
    jButton9.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    jButton9.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    jButton9.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton9ActionPerformed(evt);
        }
    });
    jToolBar1.add(jButton9);

    jButton10.setText("Save Network");
    jButton10.setFocusable(false);
    jButton10.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    jButton10.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    jButton10.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton10ActionPerformed(evt);
        }
    });
    jToolBar1.add(jButton10);

    jButton14.setText("Save Image");
    jButton14.setFocusable(false);
    jButton14.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    jButton14.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    jButton14.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton14ActionPerformed(evt);
        }
    });
    jToolBar1.add(jButton14);

    jButton19.setText("Change Color");
    jButton19.setFocusable(false);
    jButton19.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    jButton19.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    jButton19.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton19ActionPerformed(evt);
        }
    });
    jToolBar1.add(jButton19);

    jChBoxOnlineSearch.setText("Online Search?");
    jChBoxOnlineSearch.setFocusable(false);
    jChBoxOnlineSearch.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jChBoxOnlineSearch.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jChBoxOnlineSearch.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    jChBoxOnlineSearch.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jChBoxOnlineSearchActionPerformed(evt);
        }
    });
    jToolBar1.add(jChBoxOnlineSearch);

    jP_NetVis.add(jToolBar1, java.awt.BorderLayout.PAGE_START);

    jTabbedPane1.addTab("Network Visualization", jP_NetVis);

    jP_CV.setLayout(new java.awt.BorderLayout(3, 3));

    jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jPanel2.setPreferredSize(new java.awt.Dimension(409, 330));
    jPanel2.setLayout(new java.awt.BorderLayout());

    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Graphics and Utilities"));
    jPanel1.setMinimumSize(new java.awt.Dimension(100, 150));
    jPanel1.setPreferredSize(new java.awt.Dimension(100, 65));
    jPanel1.setLayout(null);

    jButton7.setText("CV Results");
    jButton7.setToolTipText(
            "Display a chart with classification results, obtained by cross validation execution.");
    jButton7.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton7ActionPerformed(evt);
        }
    });
    jPanel1.add(jButton7);
    jButton7.setBounds(805, 20, 200, 30);

    jBtn_ScatterPlot.setText("Scatter Plot");
    jBtn_ScatterPlot.setToolTipText(
            "Display a scatter plot chart with two selected features indexes (columns) of the input data.");
    jPanel1.add(jBtn_ScatterPlot);
    jBtn_ScatterPlot.setBounds(5, 20, 120, 30);

    jBtn_ParallelCoord_CV.setText("Parallel Coordinates");
    jBtn_ParallelCoord_CV.setToolTipText(
            "Display parallel coordinates chart with selected features indexes (columns) from the input data.");
    jBtn_ParallelCoord_CV.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jBtn_ParallelCoord_CVActionPerformed(evt);
        }
    });
    jPanel1.add(jBtn_ParallelCoord_CV);
    jBtn_ParallelCoord_CV.setBounds(130, 20, 180, 30);

    jButton17.setText("Correlation Coefficient");
    jButton17.setToolTipText(
            "Display a table with correlation coefficient of the selected features indexes (columns) of the input data.");
    jButton17.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton17ActionPerformed(evt);
        }
    });
    jPanel1.add(jButton17);
    jButton17.setBounds(605, 20, 195, 30);

    jButton36.setText("Signal Plot");
    jButton36
            .setToolTipText("Display a signal plot of the selected variable indexes (rows) of the input data.");
    jButton36.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton36ActionPerformed(evt);
        }
    });
    jPanel1.add(jButton36);
    jButton36.setBounds(490, 20, 110, 30);

    jCB_MeanParallelCoordCV.setText("Average values only");
    jCB_MeanParallelCoordCV.setToolTipText(
            "Mark this check box to plot only the average values of the features (considering all variables) in a parallel coordinates chart.");
    jCB_MeanParallelCoordCV.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jPanel1.add(jCB_MeanParallelCoordCV);
    jCB_MeanParallelCoordCV.setBounds(315, 15, 180, 20);

    jCB_NormalizeValuesCV.setText("Normalize values");
    jCB_NormalizeValuesCV.setToolTipText(
            "Mark this check box to plot normalized values between 0 and 1 in parallel coordinates chart.");
    jCB_NormalizeValuesCV.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jPanel1.add(jCB_NormalizeValuesCV);
    jCB_NormalizeValuesCV.setBounds(315, 35, 180, 20);

    jPanel2.add(jPanel1, java.awt.BorderLayout.SOUTH);

    jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder("Search Method"));
    jPanel10.setMinimumSize(new java.awt.Dimension(130, 30));
    jPanel10.setPreferredSize(new java.awt.Dimension(200, 80));
    jPanel10.setLayout(new java.awt.GridLayout(7, 1));

    buttonGroup_CV.add(jRB_SFSCV);
    jRB_SFSCV.setText("SFS");
    jRB_SFSCV.setToolTipText("Apply SFS algorithm for feature selection.");
    jRB_SFSCV.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRB_SFSCV.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jRB_SFSCV.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jRB_SFSCV.setPreferredSize(new java.awt.Dimension(107, 30));
    jRB_SFSCV.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRB_SFSCVActionPerformed(evt);
        }
    });
    jPanel10.add(jRB_SFSCV);

    buttonGroup_CV.add(jRB_SFFSCV);
    jRB_SFFSCV.setSelected(true);
    jRB_SFFSCV.setText("SFFS");
    jRB_SFFSCV.setToolTipText("Apply SFFS algorithm for feature selection.");
    jRB_SFFSCV.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRB_SFFSCV.setPreferredSize(new java.awt.Dimension(107, 30));
    jRB_SFFSCV.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRB_SFFSCVActionPerformed(evt);
        }
    });
    jPanel10.add(jRB_SFFSCV);

    buttonGroup_CV.add(jRB_ESCV);
    jRB_ESCV.setText("Exhaustive Search");
    jRB_ESCV.setToolTipText("Apply Exhaustive algorithm for feature selection.");
    jRB_ESCV.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    jRB_ESCV.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jRB_ESCV.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jRB_ESCV.setPreferredSize(new java.awt.Dimension(107, 30));
    jRB_ESCV.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRB_ESCVActionPerformed(evt);
        }
    });
    jPanel10.add(jRB_ESCV);

    jLabel30.setText("Maximum Set Size:");
    jLabel30.setPreferredSize(new java.awt.Dimension(107, 30));
    jPanel10.add(jLabel30);

    jS_MaxSetSizeCV.setToolTipText(
            "Select the maximum cardinality of the feature set to perform the search (SFFS only).");
    jS_MaxSetSizeCV.setPreferredSize(new java.awt.Dimension(107, 30));
    jPanel10.add(jS_MaxSetSizeCV);

    jPanel2.add(jPanel10, java.awt.BorderLayout.EAST);

    jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder("Execution of the Cross Validation"));
    jPanel11.setMinimumSize(new java.awt.Dimension(200, 180));
    jPanel11.setLayout(null);

    jProgressBarCV.setToolTipText("Display the progress of the cross validation execution.");
    jProgressBarCV.setStringPainted(true);
    jPanel11.add(jProgressBarCV);
    jProgressBarCV.setBounds(330, 215, 470, 30);

    jButton1.setText("Execute Cross Validation");
    jButton1.setToolTipText("Execute cross validation on input data.");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });
    jPanel11.add(jButton1);
    jButton1.setBounds(50, 215, 260, 30);

    jSliderCV.setMajorTickSpacing(20);
    jSliderCV.setMinorTickSpacing(5);
    jSliderCV.setPaintLabels(true);
    jSliderCV.setToolTipText("Select training set size to perform cross validation.");
    jSliderCV.setValue(80);
    jSliderCV.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            jSliderCVStateChanged(evt);
        }
    });
    jPanel11.add(jSliderCV);
    jSliderCV.setBounds(180, 155, 400, 50);

    jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel10.setText("Training set size (80%):");
    jPanel11.add(jLabel10);
    jLabel10.setBounds(10, 165, 170, 40);

    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel6.setText("Number of executions: ");
    jPanel11.add(jLabel6);
    jLabel6.setBounds(570, 165, 170, 40);

    jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel9.setText("Penalization Method: ");
    jPanel11.add(jLabel9);
    jLabel9.setBounds(10, 70, 170, 30);

    jCB_PenalizationCV.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "no_obs", "poor_obs" }));
    jCB_PenalizationCV.setToolTipText(
            "no_obs (penalty for non-observed instances)   poor_obs (penalty for poorly observed instances)");
    jCB_PenalizationCV.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCB_PenalizationCVActionPerformed(evt);
        }
    });
    jPanel11.add(jCB_PenalizationCV);
    jCB_PenalizationCV.setBounds(180, 70, 120, 30);

    jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel18.setText("Alpha (value for penalty): ");
    jPanel11.add(jLabel18);
    jLabel18.setBounds(300, 70, 220, 30);

    jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel19.setText("q-Entropy (Tsallis): ");
    jPanel11.add(jLabel19);
    jLabel19.setBounds(310, 30, 210, 30);

    jButton34.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/help.jpg"))); // NOI18N
    jButton34.setToolTipText("Shows help information about this panel.");
    jButton34.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton34.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton34ActionPerformed(evt);
        }
    });
    jPanel11.add(jButton34);
    jButton34.setBounds(765, 15, 35, 35);

    jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel8.setText("Criterion Function: ");
    jPanel11.add(jLabel8);
    jLabel8.setBounds(10, 30, 170, 30);

    jCB_CriterionFunctionCV.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Entropy", "CoD" }));
    jCB_CriterionFunctionCV.setToolTipText(
            "Select the criterion function based on classifier information (mean conditional entropy) or based on classifier error (CoD - Coefficient of Determination).");
    jCB_CriterionFunctionCV.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jCB_CriterionFunctionCVActionPerformed(evt);
        }
    });
    jPanel11.add(jCB_CriterionFunctionCV);
    jCB_CriterionFunctionCV.setBounds(180, 30, 120, 30);

    jLabelConfidenceCV.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabelConfidenceCV.setText("Beta (value of confidence) 80% : ");
    jPanel11.add(jLabelConfidenceCV);
    jLabelConfidenceCV.setBounds(180, 110, 290, 40);

    jSliderBetaCV.setMajorTickSpacing(20);
    jSliderBetaCV.setMinorTickSpacing(5);
    jSliderBetaCV.setPaintLabels(true);
    jSliderBetaCV.setToolTipText(
            "Beta value is attributed to the conditional probability of the observed class, given the instance (poor_obs only).");
    jSliderBetaCV.setValue(80);
    jSliderBetaCV.setEnabled(false);
    jSliderBetaCV.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            jSliderBetaCVStateChanged(evt);
        }
    });
    jPanel11.add(jSliderBetaCV);
    jSliderBetaCV.setBounds(470, 100, 330, 37);

    jS_NrExecutionsCV.setToolTipText(
            "Fill this text box with an integer value, which represents the number of executions of training and test of the cross validation.");
    jPanel11.add(jS_NrExecutionsCV);
    jS_NrExecutionsCV.setBounds(740, 165, 60, 40);

    jS_QEntropyCV.setToolTipText(
            "Use 1 to apply Shannon Entropy.  Use a value <> 1 to apply Tsallis Entropy (Entropy only).");
    jPanel11.add(jS_QEntropyCV);
    jS_QEntropyCV.setBounds(520, 30, 60, 30);

    jS_AlphaCV.setToolTipText(
            "Alpha value represents the probability mass for the non-observed instances (no_obs only).");
    jPanel11.add(jS_AlphaCV);
    jS_AlphaCV.setBounds(520, 70, 60, 30);

    jPanel2.add(jPanel11, java.awt.BorderLayout.CENTER);

    jP_CV.add(jPanel2, java.awt.BorderLayout.NORTH);

    jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jPanel6.setMinimumSize(new java.awt.Dimension(150, 90));
    jPanel6.setPreferredSize(new java.awt.Dimension(500, 250));
    jPanel6.setLayout(new java.awt.BorderLayout(3, 3));

    jLabel15.setFont(new java.awt.Font("Tahoma", 1, 12));
    jLabel15.setForeground(new java.awt.Color(0, 0, 255));
    jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel15.setText("Results");
    jLabel15.setOpaque(true);
    jLabel15.setPreferredSize(new java.awt.Dimension(40, 30));
    jPanel6.add(jLabel15, java.awt.BorderLayout.NORTH);

    jScrollPane3.setPreferredSize(new java.awt.Dimension(460, 100));

    jTA_SelectedFeaturesCV.setColumns(20);
    jTA_SelectedFeaturesCV.setRows(5);
    jTA_SelectedFeaturesCV.setToolTipText("Feature selection results.");
    jScrollPane3.setViewportView(jTA_SelectedFeaturesCV);

    jPanel6.add(jScrollPane3, java.awt.BorderLayout.EAST);

    jTA_SaidaCV.setColumns(20);
    jTA_SaidaCV.setRows(5);
    jTA_SaidaCV.setToolTipText("Classification results.");
    jScrollPane4.setViewportView(jTA_SaidaCV);

    jPanel6.add(jScrollPane4, java.awt.BorderLayout.CENTER);

    jBtnSaveResultsCV.setFont(new java.awt.Font("Tahoma", 1, 12));
    jBtnSaveResultsCV.setForeground(new java.awt.Color(0, 0, 255));
    jBtnSaveResultsCV.setText("Save Results");
    jBtnSaveResultsCV.setToolTipText("Click to save results into a text file.");
    jBtnSaveResultsCV.setPreferredSize(new java.awt.Dimension(104, 30));
    jBtnSaveResultsCV.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jBtnSaveResultsCVActionPerformed(evt);
        }
    });
    jPanel6.add(jBtnSaveResultsCV, java.awt.BorderLayout.SOUTH);

    jP_CV.add(jPanel6, java.awt.BorderLayout.CENTER);

    jTabbedPane1.addTab("Cross Validation", jP_CV);

    getContentPane().add(jTabbedPane1);

    java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    setBounds((screenSize.width - 1024) / 2, (screenSize.height - 768) / 2, 1024, 768);
}

From source file:lcmc.gui.resources.ServiceInfo.java

/** Returns info panel with comboboxes for service parameters. */
@Override//from   w  ww. j  a v a2 s.  c o  m
public JComponent getInfoPanel() {
    if (!getResourceAgent().isMetaDataLoaded()) {
        final JPanel p = new JPanel();
        p.add(new JLabel(Tools.getString("ServiceInfo.LoadingMetaData")));
        return p;
    }
    final CloneInfo ci = getCloneInfo();
    if (ci == null) {
        getBrowser().getCRMGraph().pickInfo(this);
    } else {
        getBrowser().getCRMGraph().pickInfo(ci);
    }
    if (infoPanel != null) {
        return infoPanel;
    }
    /* init save button */
    final boolean abExisted = getApplyButton() != null;
    final ServiceInfo thisClass = this;
    final ButtonCallback buttonCallback = new ButtonCallback() {
        private volatile boolean mouseStillOver = false;

        /**
         * Whether the whole thing should be enabled.
         */
        @Override
        public final boolean isEnabled() {
            final Host dcHost = getBrowser().getDCHost();
            if (dcHost == null) {
                return false;
            }
            if (Tools.versionBeforePacemaker(dcHost)) {
                return false;
            }
            return true;
        }

        @Override
        public final void mouseOut() {
            if (!isEnabled()) {
                return;
            }
            mouseStillOver = false;
            getBrowser().getCRMGraph().stopTestAnimation(getApplyButton());
            getApplyButton().setToolTipText(null);
        }

        @Override
        public final void mouseOver() {
            if (!isEnabled()) {
                return;
            }
            mouseStillOver = true;
            getApplyButton().setToolTipText(ClusterBrowser.STARTING_PTEST_TOOLTIP);
            getApplyButton()
                    .setToolTipBackground(Tools.getDefaultColor("ClusterBrowser.Test.Tooltip.Background"));
            Tools.sleep(250);
            if (!mouseStillOver) {
                return;
            }
            mouseStillOver = false;
            final CountDownLatch startTestLatch = new CountDownLatch(1);
            getBrowser().getCRMGraph().startTestAnimation(getApplyButton(), startTestLatch);
            final Host dcHost = getBrowser().getDCHost();
            getBrowser().ptestLockAcquire();
            final ClusterStatus cs = getBrowser().getClusterStatus();
            cs.setPtestData(null);
            apply(dcHost, true);
            final PtestData ptestData = new PtestData(CRM.getPtest(dcHost));
            getApplyButton().setToolTipText(ptestData.getToolTip());
            cs.setPtestData(ptestData);
            getBrowser().ptestLockRelease();
            startTestLatch.countDown();
        }
    };
    if (getResourceAgent().isGroup()) {
        initApplyButton(buttonCallback, Tools.getString("Browser.ApplyGroup"));
    } else {
        initApplyButton(buttonCallback);
    }
    if (ci != null) {
        ci.setApplyButton(getApplyButton());
        ci.setRevertButton(getRevertButton());
    }
    /* add item listeners to the apply button. */
    if (!abExisted) {
        getApplyButton().addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                final Thread thread = new Thread(new Runnable() {
                    @Override
                    public void run() {
                        getBrowser().clStatusLock();
                        apply(getBrowser().getDCHost(), false);
                        getBrowser().clStatusUnlock();
                    }
                });
                thread.start();
            }
        });

        getRevertButton().addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                final Thread thread = new Thread(new Runnable() {
                    @Override
                    public void run() {
                        getBrowser().clStatusLock();
                        revert();
                        getBrowser().clStatusUnlock();
                    }
                });
                thread.start();
            }
        });
    }
    /* main, button and options panels */
    final JPanel mainPanel = new JPanel();
    mainPanel.setBackground(ClusterBrowser.PANEL_BACKGROUND);
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
    final JPanel buttonPanel = new JPanel(new BorderLayout());
    buttonPanel.setBackground(ClusterBrowser.BUTTON_PANEL_BACKGROUND);
    buttonPanel.setMinimumSize(new Dimension(0, 50));
    buttonPanel.setPreferredSize(new Dimension(0, 50));
    buttonPanel.setMaximumSize(new Dimension(Short.MAX_VALUE, 50));

    final JPanel optionsPanel = new JPanel();
    optionsPanel.setBackground(ClusterBrowser.PANEL_BACKGROUND);
    optionsPanel.setLayout(new BoxLayout(optionsPanel, BoxLayout.Y_AXIS));
    optionsPanel.setAlignmentX(Component.LEFT_ALIGNMENT);

    /* Actions */
    final JMenuBar mb = new JMenuBar();
    mb.setBackground(ClusterBrowser.PANEL_BACKGROUND);
    AbstractButton serviceMenu;
    if (ci == null) {
        serviceMenu = getActionsButton();
    } else {
        serviceMenu = ci.getActionsButton();
    }
    buttonPanel.add(serviceMenu, BorderLayout.EAST);
    String defaultValue = PRIMITIVE_TYPE_STRING;
    if (ci != null) {
        if (ci.getService().isMaster()) {
            defaultValue = MASTER_SLAVE_TYPE_STRING;
        } else {
            defaultValue = CLONE_TYPE_STRING;
        }
    }
    if (!getResourceAgent().isClone() && getGroupInfo() == null) {
        typeRadioGroup = new Widget(defaultValue,
                new String[] { PRIMITIVE_TYPE_STRING, CLONE_TYPE_STRING, MASTER_SLAVE_TYPE_STRING },
                null, /* units */
                Widget.Type.RADIOGROUP, null, /* regexp */
                ClusterBrowser.SERVICE_LABEL_WIDTH + ClusterBrowser.SERVICE_FIELD_WIDTH, null, /* abbrv */
                new AccessMode(ConfigData.AccessType.ADMIN, false));

        if (!getService().isNew()) {
            typeRadioGroup.setEnabled(false);
        }
        typeRadioGroup.addListeners(new WidgetListener() {
            @Override
            public void check(final Object value) {
                changeType(((JRadioButton) value).getText());
            }
        });
        final JPanel tp = new JPanel();
        tp.setBackground(ClusterBrowser.PANEL_BACKGROUND);
        tp.setLayout(new BoxLayout(tp, BoxLayout.Y_AXIS));
        tp.add(typeRadioGroup);
        typeRadioGroup.setBackgroundColor(ClusterBrowser.PANEL_BACKGROUND);
        optionsPanel.add(tp);
    }
    if (ci != null) {
        /* add clone fields */
        addCloneFields(optionsPanel, ClusterBrowser.SERVICE_LABEL_WIDTH, ClusterBrowser.SERVICE_FIELD_WIDTH);
    }
    getResource().setValue(GUI_ID, getService().getId());

    /* get dependent resources and create combo boxes for ones, that
     * need parameters */
    final String[] params = getParametersFromXML();
    final Info savedMAIdRef = savedMetaAttrInfoRef;
    addParams(optionsPanel, params, ClusterBrowser.SERVICE_LABEL_WIDTH, ClusterBrowser.SERVICE_FIELD_WIDTH,
            getSameAsFields(savedMAIdRef));
    if (ci == null) {
        /* score combo boxes */
        addHostLocations(optionsPanel, ClusterBrowser.SERVICE_LABEL_WIDTH, ClusterBrowser.SERVICE_FIELD_WIDTH);
    }

    for (final String param : params) {
        if (isMetaAttr(param)) {
            final Widget wi = getWidget(param, null);
            wi.setEnabled(savedMAIdRef == null);
        }
    }
    if (!getService().isNew()) {
        getWidget(GUI_ID, null).setEnabled(false);
    }
    if (!getResourceAgent().isGroup() && !getResourceAgent().isClone()) {
        /* Operations */
        addOperations(optionsPanel, ClusterBrowser.SERVICE_LABEL_WIDTH, ClusterBrowser.SERVICE_FIELD_WIDTH);
        /* add item listeners to the operations combos */
        for (final String op : getResourceAgent().getOperationNames()) {
            for (final String param : getBrowser().getCRMOperationParams(op)) {
                addOperationListeners(op, param);
            }
        }
    }
    /* add item listeners to the host scores combos */
    if (ci == null) {
        addHostLocationsListeners();
    } else {
        ci.addHostLocationsListeners();
    }
    /* apply button */
    addApplyButton(buttonPanel);
    addRevertButton(buttonPanel);
    SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
            /* invoke later on purpose  */
            setApplyButtons(null, params);
        }
    });
    mainPanel.add(optionsPanel);
    final JPanel newPanel = new JPanel();
    newPanel.setBackground(ClusterBrowser.PANEL_BACKGROUND);
    newPanel.setLayout(new BoxLayout(newPanel, BoxLayout.Y_AXIS));
    newPanel.add(buttonPanel);
    newPanel.add(
            getMoreOptionsPanel(ClusterBrowser.SERVICE_LABEL_WIDTH + ClusterBrowser.SERVICE_FIELD_WIDTH + 4));
    newPanel.add(new JScrollPane(mainPanel));
    /* if id textfield was changed and this id is not used,
     * enable apply button */
    infoPanel = newPanel;
    infoPanelDone();
    return infoPanel;
}