Example usage for javax.swing GroupLayout setVerticalGroup

List of usage examples for javax.swing GroupLayout setVerticalGroup

Introduction

In this page you can find the example usage for javax.swing GroupLayout setVerticalGroup.

Prototype

public void setVerticalGroup(Group group) 

Source Link

Document

Sets the Group that positions and sizes components along the vertical axis.

Usage

From source file:canreg.client.gui.analysis.FrequenciesByYearInternalFrame.java

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

    rangeFilterPanel = new canreg.client.gui.components.RangeFilterPanel();
    variablesChooserPanel = new canreg.client.gui.components.VariablesChooserPanel();
    printTableButton = new javax.swing.JButton();
    resultPanel = new javax.swing.JPanel();
    resultScrollPane = new javax.swing.JScrollPane();
    resultTable = new javax.swing.JTable();
    popOutTableButton = new javax.swing.JButton();
    saveTableButton = new javax.swing.JButton();

    setClosable(true);
    setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
    setIconifiable(true);
    setMaximizable(true);
    setResizable(true);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getResourceMap(FrequenciesByYearInternalFrame.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setFrameIcon(resourceMap.getIcon("Form.frameIcon")); // NOI18N
    setName("Form"); // NOI18N

    rangeFilterPanel.setName("rangeFilterPanel"); // NOI18N

    variablesChooserPanel.setName("variablesChooserPanel"); // NOI18N

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getActionMap(FrequenciesByYearInternalFrame.class, this);
    printTableButton.setAction(actionMap.get("printTableAction")); // NOI18N
    printTableButton.setName("printTableButton"); // NOI18N

    resultPanel.setName("resultPanel"); // NOI18N

    resultScrollPane.setName("resultScrollPane"); // NOI18N

    resultTable.setAutoCreateRowSorter(true);
    resultTable
            .setModel(new javax.swing.table.DefaultTableModel(new Object[][] { {}, {}, {}, {} }, new String[] {

    }));
    resultTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    resultTable.setName("resultTable"); // NOI18N
    resultScrollPane.setViewportView(resultTable);

    javax.swing.GroupLayout resultPanelLayout = new javax.swing.GroupLayout(resultPanel);
    resultPanel.setLayout(resultPanelLayout);
    resultPanelLayout
            .setHorizontalGroup(resultPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(resultScrollPane, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 732, Short.MAX_VALUE));
    resultPanelLayout
            .setVerticalGroup(resultPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(resultScrollPane, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE));

    popOutTableButton.setAction(actionMap.get("popOutTableAction")); // NOI18N
    popOutTableButton.setName("popOutTableButton"); // NOI18N

    saveTableButton.setAction(actionMap.get("saveTableAction")); // NOI18N
    saveTableButton.setToolTipText(resourceMap.getString("saveTableButton.toolTipText")); // NOI18N
    saveTableButton.setName("saveTableButton"); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(rangeFilterPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 407,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addComponent(saveTableButton, javax.swing.GroupLayout.PREFERRED_SIZE, 115,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(printTableButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(popOutTableButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addComponent(variablesChooserPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 309,
                                    Short.MAX_VALUE))
                    .addContainerGap())
            .addComponent(resultPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(variablesChooserPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 249,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(17, 17, 17)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(printTableButton).addComponent(popOutTableButton)
                                    .addComponent(saveTableButton)))
                    .addComponent(rangeFilterPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 288,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(resultPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    rangeFilterPanel.initValues();
    rangeFilterPanel.setDeskTopPane(dtp);

    pack();
}

From source file:com.iisigroup.ris.WebFileScanUtilBrowserUI.java

private void initGUI() {
    final SwingActionUtil swingUtil = (SwingActionUtil) SwingActionUtil.newInstance(this);
    try {//from   w  ww .  ja v a  2s  . c  o  m
        BorderLayout thisLayout = new BorderLayout();
        getContentPane().setLayout(thisLayout);
        this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        this.setTitle("browser source code");
        {
            informationMenu = new JPopupMenu();
            setComponentPopupMenu(this, informationMenu);
        }
        {
            ListModel openFileListModel = new DefaultListModel();
            openFileList = new JList();
            openFileList.setModel(openFileListModel);
            getContentPane().add(openFileList, BorderLayout.NORTH);
            openFileList.setPreferredSize(new java.awt.Dimension(663, 281));
            openFileList.addListSelectionListener(new ListSelectionListener() {
                public void valueChanged(ListSelectionEvent evt) {
                    swingUtil.invokeAction("openFileList.valueChanged", evt);
                }
            });
            openFileList.addMouseMotionListener(new MouseMotionAdapter() {
                public void mouseMoved(MouseEvent evt) {
                    swingUtil.invokeAction("openFileList.mouseMoved", evt);
                }
            });
            openFileList.addKeyListener(new KeyAdapter() {
                public void keyPressed(KeyEvent evt) {
                    swingUtil.invokeAction("openFileList.keyPressed", evt);
                }
            });
        }
        {
            jPanel1 = new JPanel();
            GroupLayout jPanel1Layout = new GroupLayout((JComponent) jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            getContentPane().add(jPanel1, BorderLayout.SOUTH);
            jPanel1.setPreferredSize(new java.awt.Dimension(478, 35));
            {
                openSelected = new JButton();
                openSelected.setText("open all");
                openSelected.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent evt) {
                        swingUtil.invokeAction("openSelected.actionPerformed", evt);
                    }
                });
            }
            jPanel1Layout.setHorizontalGroup(jPanel1Layout.createSequentialGroup().addContainerGap(178, 178)
                    .addComponent(openSelected, GroupLayout.PREFERRED_SIZE, 126, GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(174, Short.MAX_VALUE));
            jPanel1Layout.setVerticalGroup(jPanel1Layout.createSequentialGroup().addGap(7)
                    .addComponent(openSelected, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 6, Short.MAX_VALUE));
        }
        {
            informationMenu = new JPopupMenu();
        }

        this.setSize(486, 350);
        this.setLocationRelativeTo(null);

        //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        // ?tooltip
        //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        int initialDelay = ToolTipManager.sharedInstance().getInitialDelay();
        ToolTipManager.sharedInstance().setInitialDelay(0);
        //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        // ?tooltip
        //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

        swingUtil.addAction("openFileList.mouseClicked", new Action() {
            public void action(EventObject evt) throws Exception {
                DefaultListModel model = (DefaultListModel) openFileList.getModel();
                int pos = openFileList.getLeadSelectionIndex();
                if (pos == -1) {
                    return;
                }
                setOpenFileListToolTip();
                MouseEvent eeev = (MouseEvent) evt;
                if (eeev.getClickCount() != 2) {
                    return;
                }
                MFile file = (MFile) model.elementAt(pos);
                openSource(file.file);
            }
        });
        final JListUtil jlistUtil = JListUtil.newInstance(openFileList);
        swingUtil.addAction("openFileList.keyPressed", new Action() {
            public void action(EventObject evt) throws Exception {
                jlistUtil.defaultJListKeyPressed((KeyEvent) evt);
                setOpenFileListToolTip();
            }
        });
        swingUtil.addAction("openSelected.actionPerformed", new Action() {
            public void action(EventObject evt) throws Exception {
                DefaultListModel model = (DefaultListModel) openFileList.getModel();
                for (Enumeration<?> enu = model.elements(); enu.hasMoreElements();) {
                    MFile file = (MFile) enu.nextElement();
                    openSource(file.file);
                }
            }
        });
        swingUtil.addAction("openFileList.mouseMoved", new Action() {
            public void action(EventObject evt) throws Exception {
                setOpenFileListToolTip();
            }
        });
        swingUtil.addAction("openFileList.valueChanged", new Action() {
            public void action(EventObject evt) throws Exception {
                System.out.println(evt);
                setOpenFileListToolTip();
            }
        });
    } catch (Exception e) {
        e.printStackTrace();
    }
}

From source file:interfaceTisseoWS.ST1.java

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

    jPanel1 = new javax.swing.JPanel();
    listeLignes = new javax.swing.JComboBox();
    jLabel1 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    horaires = new javax.swing.JList();
    jButton1 = new javax.swing.JButton();

    setTitle("ST1");

    listeLignes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Slectionner la ligne" }));
    listeLignes.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            listeLignesItemStateChanged(evt);
        }
    });

    jLabel1.setText("Veuillez choisir une ligne :");

    jScrollPane1.setViewportView(horaires);

    jButton1.setText("Retour");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(
                                    listeLignes, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                            .addGap(0, 0, Short.MAX_VALUE).addComponent(jButton1)))
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(listeLignes,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jButton1).addContainerGap()));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
            jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
            javax.swing.GroupLayout.PREFERRED_SIZE));

    pack();
}

From source file:io.github.jeddict.jpa.modeler.properties.implement.JavaClassArtifactPanel.java

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

    root_jLayeredPane = new javax.swing.JLayeredPane();
    action_jLayeredPane = new javax.swing.JLayeredPane();
    save_Button = new javax.swing.JButton();
    cancel_Button = new javax.swing.JButton();
    dataType_Action = new javax.swing.JButton();
    class_wrapperPanel = new javax.swing.JLayeredPane();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    org.openide.awt.Mnemonics.setLocalizedText(save_Button, org.openide.util.NbBundle
            .getMessage(JavaClassArtifactPanel.class, "JavaClassArtifactPanel.save_Button.text")); // NOI18N
    save_Button.setToolTipText(org.openide.util.NbBundle.getMessage(JavaClassArtifactPanel.class,
            "JavaClassArtifactPanel.save_Button.toolTipText")); // NOI18N
    save_Button.setSelected(true);
    save_Button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            save_ButtonActionPerformed(evt);
        }
    });

    org.openide.awt.Mnemonics.setLocalizedText(cancel_Button, org.openide.util.NbBundle
            .getMessage(JavaClassArtifactPanel.class, "JavaClassArtifactPanel.cancel_Button.text")); // NOI18N
    cancel_Button.setToolTipText(org.openide.util.NbBundle.getMessage(JavaClassArtifactPanel.class,
            "JavaClassArtifactPanel.cancel_Button.toolTipText")); // NOI18N
    cancel_Button.setPreferredSize(new java.awt.Dimension(60, 23));
    cancel_Button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancel_ButtonActionPerformed(evt);
        }
    });

    action_jLayeredPane.setLayer(save_Button, javax.swing.JLayeredPane.DEFAULT_LAYER);
    action_jLayeredPane.setLayer(cancel_Button, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout action_jLayeredPaneLayout = new javax.swing.GroupLayout(action_jLayeredPane);
    action_jLayeredPane.setLayout(action_jLayeredPaneLayout);
    action_jLayeredPaneLayout.setHorizontalGroup(
            action_jLayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(action_jLayeredPaneLayout.createSequentialGroup()
                            .addComponent(save_Button, javax.swing.GroupLayout.PREFERRED_SIZE, 80,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(cancel_Button, javax.swing.GroupLayout.PREFERRED_SIZE, 70,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    action_jLayeredPaneLayout.setVerticalGroup(action_jLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(action_jLayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(save_Button).addComponent(cancel_Button, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    dataType_Action.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/io/github/jeddict/jpa/modeler/properties/resource/searchbutton.png"))); // NOI18N
    dataType_Action.setPreferredSize(new java.awt.Dimension(37, 37));
    dataType_Action.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            dataType_ActionActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout class_wrapperPanelLayout = new javax.swing.GroupLayout(class_wrapperPanel);
    class_wrapperPanel.setLayout(class_wrapperPanelLayout);
    class_wrapperPanelLayout.setHorizontalGroup(class_wrapperPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    class_wrapperPanelLayout.setVerticalGroup(class_wrapperPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 18, Short.MAX_VALUE));

    root_jLayeredPane.setLayer(action_jLayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(dataType_Action, javax.swing.JLayeredPane.DEFAULT_LAYER);
    root_jLayeredPane.setLayer(class_wrapperPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout root_jLayeredPaneLayout = new javax.swing.GroupLayout(root_jLayeredPane);
    root_jLayeredPane.setLayout(root_jLayeredPaneLayout);
    root_jLayeredPaneLayout.setHorizontalGroup(root_jLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(root_jLayeredPaneLayout.createSequentialGroup().addContainerGap()
                    .addGroup(root_jLayeredPaneLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(class_wrapperPanel)
                            .addGroup(root_jLayeredPaneLayout.createSequentialGroup()
                                    .addComponent(dataType_Action, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 186,
                                            Short.MAX_VALUE)
                                    .addComponent(action_jLayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    root_jLayeredPaneLayout.setVerticalGroup(root_jLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(root_jLayeredPaneLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(class_wrapperPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(root_jLayeredPaneLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(action_jLayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dataType_Action, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap()));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(root_jLayeredPane));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(root_jLayeredPane));

    pack();
}

From source file:co.edu.eam.dinesoft.egresados.vista.gui.VentanaReportes.java

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

    jPPrincipal = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jTPPestanias = new javax.swing.JTabbedPane();
    jPReporteEgresados = new javax.swing.JPanel();
    jPGrafica = new javax.swing.JPanel();
    jLabel9 = new javax.swing.JLabel();
    jCBProgramaRep1 = new javax.swing.JComboBox();
    jPanel2 = new javax.swing.JPanel();
    panelOfertasAbiertas = new javax.swing.JPanel();
    jLabel10 = new javax.swing.JLabel();
    jCBProgramaRep2 = new javax.swing.JComboBox();
    jPanel3 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    tablaEmpleadosEmp = new javax.swing.JTable();
    jPanel1 = new javax.swing.JPanel();
    jLabel7 = new javax.swing.JLabel();
    btnBuscar = new javax.swing.JButton();
    jCBEmpresas = new javax.swing.JComboBox();
    jPanel4 = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    tablaOfertas = new javax.swing.JTable();
    jPanel10 = new javax.swing.JPanel();
    jLabel8 = new javax.swing.JLabel();
    btnBuscarOfertas = new javax.swing.JButton();
    jCBPrograma = new javax.swing.JComboBox();
    jBInicio = new javax.swing.JButton();
    jLabel6 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    jLabel1.setFont(new java.awt.Font("Bernard MT Condensed", 0, 36)); // NOI18N
    jLabel1.setForeground(new java.awt.Color(255, 255, 255));
    jLabel1.setText("REPORTES Y ESTADSTICAS");

    jPGrafica.setBorder(javax.swing.BorderFactory.createTitledBorder("Grfica de reportes"));

    javax.swing.GroupLayout jPGraficaLayout = new javax.swing.GroupLayout(jPGrafica);
    jPGrafica.setLayout(jPGraficaLayout);
    jPGraficaLayout.setHorizontalGroup(jPGraficaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 869, Short.MAX_VALUE));
    jPGraficaLayout.setVerticalGroup(jPGraficaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 381, Short.MAX_VALUE));

    jLabel9.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
    jLabel9.setText("Seleccione el programa acadmico");

    jCBProgramaRep1.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jCBProgramaRep1ItemStateChanged(evt);
        }
    });

    javax.swing.GroupLayout jPReporteEgresadosLayout = new javax.swing.GroupLayout(jPReporteEgresados);
    jPReporteEgresados.setLayout(jPReporteEgresadosLayout);
    jPReporteEgresadosLayout.setHorizontalGroup(
            jPReporteEgresadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPReporteEgresadosLayout.createSequentialGroup().addGap(20, 20, 20)
                            .addComponent(jPGrafica, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addContainerGap())
                    .addGroup(jPReporteEgresadosLayout.createSequentialGroup().addGap(176, 176, 176)
                            .addComponent(jLabel9).addGap(101, 101, 101)
                            .addComponent(jCBProgramaRep1, javax.swing.GroupLayout.PREFERRED_SIZE, 215,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPReporteEgresadosLayout.setVerticalGroup(jPReporteEgresadosLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPReporteEgresadosLayout
                    .createSequentialGroup().addContainerGap()
                    .addGroup(jPReporteEgresadosLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9).addComponent(jCBProgramaRep1,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 42,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addComponent(jPGrafica, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jTPPestanias.addTab("Por tipo de ocupacin", jPReporteEgresados);

    panelOfertasAbiertas.setBorder(javax.swing.BorderFactory
            .createTitledBorder("Estadstica de ofertas por area de conocimiento y programa acadmico"));

    javax.swing.GroupLayout panelOfertasAbiertasLayout = new javax.swing.GroupLayout(panelOfertasAbiertas);
    panelOfertasAbiertas.setLayout(panelOfertasAbiertasLayout);
    panelOfertasAbiertasLayout.setHorizontalGroup(panelOfertasAbiertasLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 807, Short.MAX_VALUE));
    panelOfertasAbiertasLayout.setVerticalGroup(panelOfertasAbiertasLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 374, Short.MAX_VALUE));

    jLabel10.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
    jLabel10.setText("Seleccione el programa acadmico");

    jCBProgramaRep2.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jCBProgramaRep2ItemStateChanged(evt);
        }
    });

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap(47, Short.MAX_VALUE).addGroup(
                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                            javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel2Layout.createSequentialGroup()
                                    .addComponent(panelOfertasAbiertas, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(45, 45, 45))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout
                                    .createSequentialGroup().addComponent(jLabel10).addGap(108, 108, 108)
                                    .addComponent(jCBProgramaRep2, javax.swing.GroupLayout.PREFERRED_SIZE, 215,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(174, 174, 174)))));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addGap(10, 10, 10)
                                    .addComponent(jLabel10)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jCBProgramaRep2, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 42,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18).addComponent(panelOfertasAbiertas, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));

    jTPPestanias.addTab("Ofertas abiertas", jPanel2);

    tablaEmpleadosEmp.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[] { "Nombre Egresado", "Programa", "Cargo", "Fecha de entrada" }));
    jScrollPane1.setViewportView(tablaEmpleadosEmp);

    jPanel1.setBorder(
            javax.swing.BorderFactory.createTitledBorder(null, "Seleccione la empresa en la que desea buscar",
                    javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
                    javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 12))); // NOI18N

    jLabel7.setText("Empresa");

    btnBuscar.setText("BUSCAR");
    btnBuscar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnBuscarActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(91, 91, 91).addComponent(jLabel7)
                    .addGap(88, 88, 88)
                    .addComponent(jCBEmpresas, javax.swing.GroupLayout.PREFERRED_SIZE, 254,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 78, Short.MAX_VALUE)
                    .addComponent(btnBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 90,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(35, 35, 35)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(11, 11, 11)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(btnBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBEmpresas, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(22, Short.MAX_VALUE)));

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(
                            javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel3Layout.createSequentialGroup().addContainerGap()
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 891,
                                            Short.MAX_VALUE)
                                    .addContainerGap())
                    .addGroup(jPanel3Layout.createSequentialGroup().addGap(88, 88, 88)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                    .addGap(37, 37, 37)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 298,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    jTPPestanias.addTab("Empleados por empresa", jPanel3);

    tablaOfertas.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { null, null, null, null, null, null }, { null, null, null, null, null, null },
                    { null, null, null, null, null, null }, { null, null, null, null, null, null } },
            new String[] { "Empresa", "Fecha publicacin", "Fecha cierre", "Cargo", "Salario", "Resumen" }));
    jScrollPane2.setViewportView(tablaOfertas);

    jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null,
            "Seleccione el programa del cual desea buscar las ofertas",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 12))); // NOI18N

    jLabel8.setText("Programa");

    btnBuscarOfertas.setText("BUSCAR");
    btnBuscarOfertas.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnBuscarOfertasActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
    jPanel10.setLayout(jPanel10Layout);
    jPanel10Layout.setHorizontalGroup(jPanel10Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup().addGap(91, 91, 91).addComponent(jLabel8)
                    .addGap(88, 88, 88)
                    .addComponent(jCBPrograma, javax.swing.GroupLayout.PREFERRED_SIZE, 254,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 78, Short.MAX_VALUE)
                    .addComponent(btnBuscarOfertas, javax.swing.GroupLayout.PREFERRED_SIZE, 90,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(35, 35, 35)));
    jPanel10Layout.setVerticalGroup(jPanel10Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup().addGap(11, 11, 11)
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(btnBuscarOfertas, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCBPrograma, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(22, Short.MAX_VALUE)));

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout
            .setHorizontalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup().addContainerGap()
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 891,
                                    Short.MAX_VALUE)
                            .addContainerGap())
                    .addGroup(jPanel4Layout.createSequentialGroup().addGap(76, 76, 76)
                            .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                    .addGap(36, 36, 36)
                    .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE)
                    .addContainerGap()));

    jTPPestanias.addTab("Ofertas por programa", jPanel4);

    jBInicio.setBackground(new java.awt.Color(255, 255, 255));
    jBInicio.setFont(new java.awt.Font("Arial Narrow", 0, 14)); // NOI18N
    jBInicio.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/1471496349_home.png"))); // NOI18N
    jBInicio.setText("INICIO");

    jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/1471498828_stats.png"))); // NOI18N

    javax.swing.GroupLayout jPPrincipalLayout = new javax.swing.GroupLayout(jPPrincipal);
    jPPrincipal.setLayout(jPPrincipalLayout);
    jPPrincipalLayout.setHorizontalGroup(jPPrincipalLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPPrincipalLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPPrincipalLayout.createSequentialGroup().addComponent(jTPPestanias)
                                    .addContainerGap())
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    jPPrincipalLayout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                            .addComponent(jLabel1).addGap(56, 56, 56).addComponent(jLabel6)
                                            .addGap(89, 89, 89))))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    jPPrincipalLayout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jBInicio).addContainerGap()));
    jPPrincipalLayout.setVerticalGroup(jPPrincipalLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPPrincipalLayout.createSequentialGroup().addGroup(jPPrincipalLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPPrincipalLayout.createSequentialGroup().addContainerGap().addComponent(jLabel6))
                    .addGroup(
                            jPPrincipalLayout.createSequentialGroup().addGap(53, 53, 53).addComponent(jLabel1)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jTPPestanias, javax.swing.GroupLayout.PREFERRED_SIZE, 507,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jBInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 65,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jPPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jPPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 11, Short.MAX_VALUE)));

    pack();
}

From source file:View.DialogoEstadisticas.java

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

    panelG = new javax.swing.JPanel();
    jButton8 = new javax.swing.JButton();
    jScrollPane3 = new javax.swing.JScrollPane();
    listaHistorico = new javax.swing.JList<>();
    jScrollPane2 = new javax.swing.JScrollPane();
    listaIndicadores = new javax.swing.JList<>();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    cmbPeriodoI = new javax.swing.JComboBox<>();
    cmbPeriodoF = new javax.swing.JComboBox<>();
    rdIntervalo = new javax.swing.JRadioButton();
    lbPeriodoI = new javax.swing.JLabel();
    lbPeriodoF = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    javax.swing.GroupLayout panelGLayout = new javax.swing.GroupLayout(panelG);
    panelG.setLayout(panelGLayout);
    panelGLayout.setHorizontalGroup(panelGLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 723, Short.MAX_VALUE));
    panelGLayout.setVerticalGroup(panelGLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 464, Short.MAX_VALUE));

    jButton8.setText("Guardar");
    jButton8.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton8ActionPerformed(evt);
        }
    });

    listaHistorico.setModel(new javax.swing.AbstractListModel<String>() {
        String[] strings = { "Ventas", "Clientes", "Gastos de Admin", "Costo Venta", "Almacen", "Efectivo",
                "Utilidad", "Gastos de Op", "Deudores Div", "Pagos", "Utilidad N", "Utilidad B" };

        public int getSize() {
            return strings.length;
        }

        public String getElementAt(int i) {
            return strings[i];
        }
    });
    listaHistorico.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            listaHistoricoValueChanged(evt);
        }
    });
    jScrollPane3.setViewportView(listaHistorico);

    listaIndicadores.setModel(new javax.swing.AbstractListModel<String>() {
        String[] strings = { "Activo", "Efectivo", "Margen" };

        public int getSize() {
            return strings.length;
        }

        public String getElementAt(int i) {
            return strings[i];
        }
    });
    listaIndicadores.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    listaIndicadores.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            listaIndicadoresValueChanged(evt);
        }
    });
    jScrollPane2.setViewportView(listaIndicadores);

    jLabel1.setText("Indicadores:");

    jLabel2.setText("Histrico de cuentas:");

    cmbPeriodoI.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "periodo inicial" }));
    cmbPeriodoI.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            cmbPeriodoIItemStateChanged(evt);
        }
    });
    cmbPeriodoI.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseEntered(java.awt.event.MouseEvent evt) {
            cmbPeriodoIMouseEntered(evt);
        }
    });
    cmbPeriodoI.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmbPeriodoIActionPerformed(evt);
        }
    });

    cmbPeriodoF.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "periodo final" }));
    cmbPeriodoF.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            cmbPeriodoFItemStateChanged(evt);
        }
    });
    cmbPeriodoF.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
        public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            cmbPeriodoFPopupMenuWillBecomeVisible(evt);
        }

        public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
        }

        public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
        }
    });
    cmbPeriodoF.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cmbPeriodoFActionPerformed(evt);
        }
    });

    rdIntervalo.setText("Intervalo:");
    rdIntervalo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            rdIntervaloActionPerformed(evt);
        }
    });

    lbPeriodoI.setText("jLabel3");

    lbPeriodoF.setText("jLabel3");

    jLabel3.setText("De:");

    jLabel4.setText("a");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addGap(18, 18, 18).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false).addComponent(jLabel1)
                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jScrollPane3).addComponent(jScrollPane2,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 146,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(panelG, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup().addComponent(rdIntervalo)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel3)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(cmbPeriodoI, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    185, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    layout.createSequentialGroup().addComponent(lbPeriodoI)
                                                            .addGap(104, 104, 104)))
                                    .addGap(29, 29, 29).addComponent(jLabel4).addGap(18, 18, 18)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(layout.createSequentialGroup()
                                                    .addComponent(cmbPeriodoF,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 185,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(84, 84, 84).addComponent(jButton8))
                                            .addGroup(layout.createSequentialGroup().addGap(35, 35, 35)
                                                    .addComponent(lbPeriodoF)))))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0,
                                            Short.MAX_VALUE)
                                    .addGap(18, 18, 18).addComponent(jLabel2)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(
                                            jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 227,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup().addComponent(
                                    panelG, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(cmbPeriodoI,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(rdIntervalo)
                                                    .addComponent(cmbPeriodoF,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(jLabel3).addComponent(jLabel4))
                                            .addComponent(jButton8))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(lbPeriodoI).addComponent(lbPeriodoF))))
                    .addGap(19, 19, 19)));

    pack();
    setLocationRelativeTo(null);
}

From source file:UserInterface.AppUsersProfile.DetailAnalysis.DetailAnalysisJPanel.java

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

    jLabel1 = new javax.swing.JLabel();
    webButton1 = new com.alee.laf.button.WebButton();
    vitalSignsTabbedPane = new com.alee.laf.tabbedpane.WebTabbedPane();
    bloodPressurePanel = new javax.swing.JPanel();
    pulseRatePanel = new javax.swing.JPanel();
    respiratoryRatePanel = new javax.swing.JPanel();
    temperaturePanel = new javax.swing.JPanel();

    setFont(new java.awt.Font("Segoe UI", 0, 11)); // NOI18N
    setPreferredSize(new java.awt.Dimension(1025, 682));

    jLabel1.setFont(new java.awt.Font("Segoe UI", 1, 18)); // NOI18N
    jLabel1.setText("Detail Analysis");

    webButton1.setText("Refresh");
    webButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            webButton1ActionPerformed(evt);
        }
    });

    vitalSignsTabbedPane.setTabPlacement(javax.swing.JTabbedPane.LEFT);
    vitalSignsTabbedPane.setFont(new java.awt.Font("Segoe UI", 0, 11)); // NOI18N
    vitalSignsTabbedPane.setPreferredSize(new java.awt.Dimension(1000, 250));

    bloodPressurePanel.setFont(new java.awt.Font("Segoe UI", 0, 11)); // NOI18N
    bloodPressurePanel.setLayout(new java.awt.BorderLayout());
    vitalSignsTabbedPane.addTab("Blood Pressure", bloodPressurePanel);

    pulseRatePanel.setFont(new java.awt.Font("Segoe UI", 0, 11)); // NOI18N
    pulseRatePanel.setPreferredSize(new java.awt.Dimension(925, 250));
    pulseRatePanel.setLayout(new java.awt.BorderLayout());
    vitalSignsTabbedPane.addTab("Pulse Rate", pulseRatePanel);

    respiratoryRatePanel.setFont(new java.awt.Font("Segoe UI", 0, 11)); // NOI18N
    respiratoryRatePanel.setLayout(new java.awt.BorderLayout());
    vitalSignsTabbedPane.addTab("Respiratory Rate", respiratoryRatePanel);

    temperaturePanel.setFont(new java.awt.Font("Segoe UI", 0, 11)); // NOI18N
    temperaturePanel.setPreferredSize(new java.awt.Dimension(925, 250));
    temperaturePanel.setLayout(new java.awt.BorderLayout());
    vitalSignsTabbedPane.addTab("Temperature", temperaturePanel);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addGap(202, 202, 202)
                    .addComponent(webButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(278, 278, 278))
            .addGroup(layout.createSequentialGroup().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGap(361, 361, 361).addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup().addGap(40, 40, 40).addComponent(
                            vitalSignsTabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 945, Short.MAX_VALUE)))
                    .addGap(40, 40, 40)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(50, 50, 50).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(webButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup().addComponent(jLabel1).addGap(58, 58, 58)))
                    .addGap(26, 26, 26)
                    .addComponent(vitalSignsTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(273, 273, 273)));

    vitalSignsTabbedPane.getAccessibleContext().setAccessibleName("Blood Pressure");
}

From source file:maltcms.ui.fileHandles.csv.CSVTableView.java

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

    jToolBar1 = new javax.swing.JToolBar();
    jToggleButton1 = new javax.swing.JToggleButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();

    jToolBar1.setRollover(true);

    org.openide.awt.Mnemonics.setLocalizedText(jToggleButton1,
            org.openide.util.NbBundle.getMessage(CSVTableView.class, "CSVTableView.jToggleButton1.text")); // NOI18N
    jToggleButton1.setFocusable(false);
    jToggleButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    jToggleButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    jToggleButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jToggleButton1ActionPerformed(evt);
        }
    });
    jToolBar1.add(jToggleButton1);

    jTable1.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" }));
    jScrollPane1.setViewportView(jTable1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING,
                    javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE)));
}

From source file:net.sf.maltcms.chromaui.msviewer.ui.panel.MassSpectrumPanel.java

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

    jPanel1 = new javax.swing.JPanel();
    jToolBar1 = new javax.swing.JToolBar();
    hideAnnotations = new javax.swing.JToggleButton();
    activeMassSpectrum = new javax.swing.JComboBox();
    remove = new javax.swing.JButton();
    jSeparator1 = new javax.swing.JToolBar.Separator();
    jLabel1 = new javax.swing.JLabel();
    filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0),
            new java.awt.Dimension(5, 32767));
    barWidthSpinner = new javax.swing.JSpinner();
    filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0),
            new java.awt.Dimension(5, 32767));
    jLabel2 = new javax.swing.JLabel();
    filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 0), new java.awt.Dimension(5, 0),
            new java.awt.Dimension(5, 32767));
    massLabelsSpinner = new javax.swing.JSpinner();
    jPanel2 = new javax.swing.JPanel();
    jToolBar2 = new javax.swing.JToolBar();
    clear = new javax.swing.JButton();
    addMs = new javax.swing.JToggleButton();
    addSeriesTop = new javax.swing.JToggleButton();
    jSeparator3 = new javax.swing.JToolBar.Separator();
    absoluteRelativeToggle = new javax.swing.JToggleButton();
    diffToggle = new javax.swing.JToggleButton();
    jSeparator4 = new javax.swing.JToolBar.Separator();
    fixXAxis = new javax.swing.JToggleButton();
    fixYAxis = new javax.swing.JToggleButton();

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

    jToolBar1.setFloatable(false);
    jToolBar1.setRollover(true);

    hideAnnotations.setText(org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class,
            "MassSpectrumPanel.hideAnnotations.text")); // NOI18N
    hideAnnotations.setFocusable(false);
    hideAnnotations.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    hideAnnotations.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    hideAnnotations.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            hideAnnotationsActionPerformed(evt);
        }
    });
    jToolBar1.add(hideAnnotations);

    activeMassSpectrum.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            activeMassSpectrumActionPerformed(evt);
        }
    });
    jToolBar1.add(activeMassSpectrum);

    remove.setText(
            org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class, "MassSpectrumPanel.remove.text")); // NOI18N
    remove.setToolTipText(org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class,
            "MassSpectrumPanel.remove.toolTipText")); // NOI18N
    remove.setFocusable(false);
    remove.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    remove.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    remove.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            removeActionPerformed(evt);
        }
    });
    jToolBar1.add(remove);
    jToolBar1.add(jSeparator1);

    jLabel1.setText(
            org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class, "MassSpectrumPanel.jLabel1.text")); // NOI18N
    jToolBar1.add(jLabel1);
    jToolBar1.add(filler1);

    barWidthSpinner.setModel(new javax.swing.SpinnerNumberModel(0.5d, 1.0E-6d, 1.0d, 1.0E-6d));
    barWidthSpinner.setMinimumSize(new java.awt.Dimension(100, 28));
    barWidthSpinner.setPreferredSize(new java.awt.Dimension(100, 28));
    barWidthSpinner.setEditor(new JSpinner.NumberEditor(barWidthSpinner, "#.######"));
    barWidthSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            barWidthSpinnerStateChanged(evt);
        }
    });
    jToolBar1.add(barWidthSpinner);
    jToolBar1.add(filler2);

    jLabel2.setText(
            org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class, "MassSpectrumPanel.jLabel2.text")); // NOI18N
    jToolBar1.add(jLabel2);
    jToolBar1.add(filler3);

    massLabelsSpinner.setModel(new javax.swing.SpinnerNumberModel(0, 0, 500, 1));
    massLabelsSpinner.setToolTipText(org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class,
            "MassSpectrumPanel.massLabelsSpinner.toolTipText")); // NOI18N
    massLabelsSpinner.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            massLabelsSpinnerStateChanged(evt);
        }
    });
    jToolBar1.add(massLabelsSpinner);

    jPanel1.add(jToolBar1, java.awt.BorderLayout.NORTH);

    jPanel2.setLayout(new java.awt.GridLayout(1, 0));
    jPanel1.add(jPanel2, java.awt.BorderLayout.CENTER);

    jToolBar2.setFloatable(false);
    jToolBar2.setOrientation(javax.swing.SwingConstants.VERTICAL);
    jToolBar2.setRollover(true);

    java.util.ResourceBundle bundle = java.util.ResourceBundle
            .getBundle("net/sf/maltcms/chromaui/msviewer/ui/panel/Bundle"); // NOI18N
    clear.setText(bundle.getString("MassSpectrumPanel.clear.text")); // NOI18N
    clear.setFocusable(false);
    clear.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    clear.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    clear.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            clearActionPerformed(evt);
        }
    });
    jToolBar2.add(clear);

    addMs.setText(bundle.getString("MassSpectrumPanel.addMs.text")); // NOI18N
    addMs.setFocusable(false);
    addMs.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    addMs.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    addMs.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addMsActionPerformed(evt);
        }
    });
    jToolBar2.add(addMs);

    addSeriesTop.setSelected(true);
    addSeriesTop.setText(org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class,
            "MassSpectrumPanel.addSeriesTop.text")); // NOI18N
    addSeriesTop.setFocusable(false);
    addSeriesTop.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    addSeriesTop.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    addSeriesTop.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addSeriesTopActionPerformed(evt);
        }
    });
    jToolBar2.add(addSeriesTop);
    jToolBar2.add(jSeparator3);

    absoluteRelativeToggle.setText(org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class,
            "MassSpectrumPanel.absoluteRelativeToggle.text")); // NOI18N
    absoluteRelativeToggle.setFocusable(false);
    absoluteRelativeToggle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    absoluteRelativeToggle.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    absoluteRelativeToggle.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            absoluteRelativeToggleActionPerformed(evt);
        }
    });
    jToolBar2.add(absoluteRelativeToggle);

    diffToggle.setText(
            org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class, "MassSpectrumPanel.diffToggle.text")); // NOI18N
    diffToggle.setFocusable(false);
    diffToggle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    diffToggle.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    diffToggle.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            diffToggleActionPerformed(evt);
        }
    });
    jToolBar2.add(diffToggle);
    jToolBar2.add(jSeparator4);

    fixXAxis.setText(
            org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class, "MassSpectrumPanel.fixXAxis.text")); // NOI18N
    fixXAxis.setFocusable(false);
    fixXAxis.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    fixXAxis.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    fixXAxis.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            fixXAxisActionPerformed(evt);
        }
    });
    jToolBar2.add(fixXAxis);

    fixYAxis.setText(
            org.openide.util.NbBundle.getMessage(MassSpectrumPanel.class, "MassSpectrumPanel.fixYAxis.text")); // NOI18N
    fixYAxis.setFocusable(false);
    fixYAxis.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    fixYAxis.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    fixYAxis.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            fixYAxisActionPerformed(evt);
        }
    });
    jToolBar2.add(fixYAxis);

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

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 765, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 332, Short.MAX_VALUE));
}

From source file:UserInterface.CentreForDiseaseControl.AddDiseaseJPanel.java

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

    panelDescriptionJLabel = new javax.swing.JLabel();
    backJButton = new javax.swing.JButton();
    displayJLabel = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    diseaseJTable = new javax.swing.JTable();
    removeDiseaseJButton = new javax.swing.JButton();
    diseaseJInternalFrame = new javax.swing.JInternalFrame();
    nameJLabel = new javax.swing.JLabel();
    nameJTextField = new javax.swing.JTextField();
    addDiseaseJButton = new javax.swing.JButton();
    vaccineSummaryJLabel = new javax.swing.JLabel();
    viewGraphJButton = new javax.swing.JButton();
    stateJLabel = new javax.swing.JLabel();
    stateNameJTextField = new javax.swing.JTextField();

    panelDescriptionJLabel.setFont(new java.awt.Font("Arial", 1, 14)); // NOI18N
    panelDescriptionJLabel.setText("Add Disease");

    backJButton.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    backJButton.setText("<< Back");
    backJButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            backJButtonActionPerformed(evt);
        }
    });

    displayJLabel.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
    displayJLabel.setText("Display of Disease");

    diseaseJTable.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    diseaseJTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { null }, { null }, { null }, { null } }, new String[] { "Disease Name" }));
    diseaseJTable.setRowHeight(24);
    jScrollPane1.setViewportView(diseaseJTable);

    removeDiseaseJButton.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    removeDiseaseJButton.setText("Remove Disease");
    removeDiseaseJButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            removeDiseaseJButtonActionPerformed(evt);
        }
    });

    diseaseJInternalFrame.setVisible(true);

    nameJLabel.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    nameJLabel.setText("Name");

    nameJTextField.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N

    addDiseaseJButton.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    addDiseaseJButton.setText("Add Disease");
    addDiseaseJButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addDiseaseJButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout diseaseJInternalFrameLayout = new javax.swing.GroupLayout(
            diseaseJInternalFrame.getContentPane());
    diseaseJInternalFrame.getContentPane().setLayout(diseaseJInternalFrameLayout);
    diseaseJInternalFrameLayout.setHorizontalGroup(
            diseaseJInternalFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(diseaseJInternalFrameLayout.createSequentialGroup().addContainerGap()
                            .addComponent(nameJLabel).addGap(18, 18, 18)
                            .addComponent(nameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 99,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18).addComponent(addDiseaseJButton)
                            .addContainerGap(22, Short.MAX_VALUE)));
    diseaseJInternalFrameLayout.setVerticalGroup(diseaseJInternalFrameLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(diseaseJInternalFrameLayout.createSequentialGroup().addContainerGap()
                    .addGroup(diseaseJInternalFrameLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nameJLabel)
                            .addComponent(nameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(addDiseaseJButton))
                    .addContainerGap(67, Short.MAX_VALUE)));

    vaccineSummaryJLabel.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N
    vaccineSummaryJLabel.setText("Vaccine summary in states wrt Disease");

    viewGraphJButton.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    viewGraphJButton.setText("View Graphically ");
    viewGraphJButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            viewGraphJButtonActionPerformed(evt);
        }
    });

    stateJLabel.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
    stateJLabel.setText("State in which maximum people are suffering from this disease");

    stateNameJTextField.setEditable(false);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(panelDescriptionJLabel).addComponent(displayJLabel)
                    .addComponent(diseaseJInternalFrame, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup().addComponent(vaccineSummaryJLabel)
                            .addGap(18, 18, 18).addComponent(viewGraphJButton))
                    .addComponent(backJButton)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                    layout.createSequentialGroup()
                                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    310, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(removeDiseaseJButton))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                    layout.createSequentialGroup().addComponent(stateJLabel).addGap(18, 18, 18)
                                            .addComponent(stateNameJTextField,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 108,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap(137, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(panelDescriptionJLabel)
                    .addGap(18, 18, 18)
                    .addComponent(diseaseJInternalFrame, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(28, 28, 28).addComponent(displayJLabel).addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 124,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(removeDiseaseJButton))
                    .addGap(28, 28, 28)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(vaccineSummaryJLabel).addComponent(viewGraphJButton))
                    .addGap(26, 26, 26)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(stateJLabel).addComponent(stateNameJTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(29, 29, 29).addComponent(backJButton).addContainerGap(436, Short.MAX_VALUE)));
}