Example usage for javax.swing GroupLayout linkSize

List of usage examples for javax.swing GroupLayout linkSize

Introduction

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

Prototype

public void linkSize(int axis, Component... components) 

Source Link

Document

Forces the specified components to have the same size along the specified axis regardless of their preferred, minimum or maximum sizes.

Usage

From source file:com.softenido.findrepe.showgroup.JImageDiffFrame.java

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

    jButtonPanel = new javax.swing.JPanel();
    jbExit = new javax.swing.JButton();
    jbNext = new javax.swing.JButton();
    jbAll = new javax.swing.JButton();
    jbNone = new javax.swing.JButton();
    jpnTable = new javax.swing.JPanel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jbExit.setMnemonic('E');
    jbExit.setText("Exit");
    jbExit.setMaximumSize(null);
    jbExit.setMinimumSize(null);
    jbExit.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbExitActionPerformed(evt);
        }
    });

    jbNext.setMnemonic('N');
    jbNext.setText("Next");
    jbNext.setMaximumSize(null);
    jbNext.setMinimumSize(null);
    jbNext.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbNextActionPerformed(evt);
        }
    });

    jbAll.setMnemonic('A');
    jbAll.setText("All");
    jbAll.setMaximumSize(null);
    jbAll.setMinimumSize(null);
    jbAll.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbAllActionPerformed(evt);
        }
    });

    jbNone.setMnemonic('o');
    jbNone.setText("None");
    jbNone.setMaximumSize(null);
    jbNone.setMinimumSize(null);
    jbNone.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbNoneActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jButtonPanelLayout = new javax.swing.GroupLayout(jButtonPanel);
    jButtonPanel.setLayout(jButtonPanelLayout);
    jButtonPanelLayout.setHorizontalGroup(jButtonPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jButtonPanelLayout.createSequentialGroup()
                    .addContainerGap(154, Short.MAX_VALUE)
                    .addComponent(jbAll, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jbNone, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jbNext, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jbExit,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    jButtonPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jbAll, jbExit, jbNext, jbNone });

    jButtonPanelLayout.setVerticalGroup(
            jButtonPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    jButtonPanelLayout.createSequentialGroup().addContainerGap()
                            .addGroup(jButtonPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                                    .addComponent(jbNone, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jbAll, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jbNext, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jbExit, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap()));

    jButtonPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { jbAll, jbExit, jbNext, jbNone });

    jpnTable.setLayout(new javax.swing.BoxLayout(jpnTable, javax.swing.BoxLayout.Y_AXIS));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jButtonPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jpnTable, javax.swing.GroupLayout.DEFAULT_SIZE, 664, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addComponent(jpnTable, javax.swing.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButtonPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

    pack();
}

From source file:com.firmansyah.imam.sewa.kendaraan.FormRegister.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  . j av  a2s. c om*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    inputNama = new javax.swing.JTextField();
    inputPassword = new javax.swing.JPasswordField();
    inputUsername = new javax.swing.JTextField();
    btnRegister = new javax.swing.JButton();
    btnCancel = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Form Pendaftaran");
    setMinimumSize(new java.awt.Dimension(323, 195));
    setResizable(false);

    jLabel1.setText("Nama");

    jLabel2.setText("Username");

    jLabel3.setText("Password");

    btnRegister.setText("Register");
    btnRegister.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnRegisterActionPerformed(evt);
        }
    });

    btnCancel.setText("Cancel");
    btnCancel.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnCancelActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(60, 60, 60).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel3).addComponent(jLabel1).addComponent(jLabel2))
                            .addGap(10, 10, 10)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(inputNama).addComponent(inputPassword)
                                    .addComponent(inputUsername)))
                    .addGroup(javax.swing.GroupLayout.Alignment.CENTER,
                            layout.createSequentialGroup()
                                    .addComponent(btnRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 94,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 103,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(60, 60, 60)));

    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { btnCancel, btnRegister });

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(32, 32, 32).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1)
                    .addComponent(inputNama, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(12, 12, 12)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2).addComponent(inputUsername,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(inputPassword,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnCancel).addComponent(btnRegister))
                    .addGap(32, 32, 32)));

    setBounds(0, 0, 339, 234);
}

From source file:com.mirth.connect.connectors.jdbc.DatabaseMetadataDialog.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
// <editor-fold defaultstate="collapsed" desc=" Generated Code
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    cancelButton = new javax.swing.JButton();
    generateButton = new javax.swing.JButton();
    jSeparator1 = new javax.swing.JSeparator();
    includedMetaDataPane = new javax.swing.JScrollPane();
    includedMetaDataTable = null;
    tableFilterNamePanel = new javax.swing.JPanel();
    filterByLabel = new javax.swing.JLabel();
    filterTableTextField = new javax.swing.JTextField();
    filterButton = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("SQL Creation");

    jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));

    cancelButton.setText("Cancel");
    cancelButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });

    generateButton.setText("Generate");
    generateButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            generateButtonActionPerformed(evt);
        }
    });

    includedMetaDataPane.setViewportView(includedMetaDataTable);

    filterByLabel.setText("Filter by:");

    filterTableTextField.setToolTipText(
            "<html>Enter an optional table name filter before querying the <br/>\ndatabase to limit the number of tables returned.<br/>\nExample: rad*,table*test</html>");

    filterButton.setText("Get Tables");
    filterButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            filterButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout tableFilterNamePanelLayout = new javax.swing.GroupLayout(tableFilterNamePanel);
    tableFilterNamePanel.setLayout(tableFilterNamePanelLayout);
    tableFilterNamePanelLayout.setHorizontalGroup(tableFilterNamePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tableFilterNamePanelLayout.createSequentialGroup().addComponent(filterByLabel)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(filterTableTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 308,
                            Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(filterButton)));
    tableFilterNamePanelLayout.setVerticalGroup(
            tableFilterNamePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tableFilterNamePanelLayout.createSequentialGroup().addContainerGap()
                            .addGroup(tableFilterNamePanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(filterByLabel)
                                    .addComponent(filterTableTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(filterButton))
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    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(includedMetaDataPane, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 444, Short.MAX_VALUE)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 444, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel1Layout.createSequentialGroup().addComponent(generateButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cancelButton))
                    .addComponent(tableFilterNamePanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));

    jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { cancelButton, generateButton });

    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addComponent(tableFilterNamePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(includedMetaDataPane, javax.swing.GroupLayout.DEFAULT_SIZE, 458,
                            Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cancelButton).addComponent(generateButton))
                    .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.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
            Short.MAX_VALUE));

    pack();
}

From source file:cgpanalyser.gui.MainWindow.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  .j a v a  2 s .com
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    btnCompare = new javax.swing.JButton();
    btnNextGraph = new javax.swing.JButton();
    btnZoomInGraph = new javax.swing.JButton();
    btnPrevGraph = new javax.swing.JButton();
    btnZoomOutGraph = new javax.swing.JButton();
    jSplitPane1 = new javax.swing.JSplitPane();
    panelMain = new cgpanalyser.gui.MainPanel(dVars, gateFuncsAll, this);
    xYChartPanel = new cgpanalyser.gui.chart.XYChartPanel(jFreeChart, panelMain);
    checkBoxGreyUnused = new javax.swing.JCheckBox();
    checkBoxColorsFF = new javax.swing.JCheckBox();
    spinnerFitDeltaThreshold = new javax.swing.JSpinner(new SpinnerNumberModel(0, 0, 9999, 1));
    btnResample = new javax.swing.JButton();
    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    menuOpenEvo = new javax.swing.JMenuItem();
    menuOpenFF = new javax.swing.JMenuItem();
    menuDefaultFF = new javax.swing.JMenuItem();
    menuGateUsage = new javax.swing.JMenuItem();
    jMenu2 = new javax.swing.JMenu();
    menuAbout = new javax.swing.JMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("CGP Analyser");

    btnCompare.setText("Compare");
    btnCompare.setToolTipText("Compare selected chromosomes (with left and right mouse button).");
    btnCompare.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnCompareActionPerformed(evt);
        }
    });

    btnNextGraph.setText(">");
    btnNextGraph.setToolTipText("Graph next.");
    btnNextGraph.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnNextGraphActionPerformed(evt);
        }
    });

    btnZoomInGraph.setText("Zoom In");
    btnZoomInGraph.setToolTipText("Graph zoom in selected area.");
    btnZoomInGraph.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnZoomInGraphActionPerformed(evt);
        }
    });

    btnPrevGraph.setText("<");
    btnPrevGraph.setToolTipText("Graph previous.");
    btnPrevGraph.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnPrevGraphActionPerformed(evt);
        }
    });

    btnZoomOutGraph.setText("Zoom Out");
    btnZoomOutGraph.setToolTipText("Graph zoom out.");
    btnZoomOutGraph.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnZoomOutGraphActionPerformed(evt);
        }
    });

    jSplitPane1.setBorder(null);
    jSplitPane1.setDividerSize(6);
    jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    jSplitPane1.setResizeWeight(0.5);

    javax.swing.GroupLayout panelMainLayout = new javax.swing.GroupLayout(panelMain);
    panelMain.setLayout(panelMainLayout);
    panelMainLayout.setHorizontalGroup(panelMainLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    panelMainLayout.setVerticalGroup(panelMainLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 369, Short.MAX_VALUE));

    jSplitPane1.setRightComponent(panelMain);

    xYChartPanel.setPreferredSize(new java.awt.Dimension(680, 280));
    xYChartPanel.setLayout(null);
    jSplitPane1.setLeftComponent(xYChartPanel);

    checkBoxGreyUnused.setSelected(true);
    checkBoxGreyUnused.setText("Grey Unused");
    checkBoxGreyUnused.setToolTipText("Gery unused elements.");
    checkBoxGreyUnused.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            checkBoxGreyUnusedActionPerformed(evt);
        }
    });

    checkBoxColorsFF.setSelected(true);
    checkBoxColorsFF.setText("Function colors");
    checkBoxColorsFF.setToolTipText("Use colors from function file.");
    checkBoxColorsFF.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            checkBoxColorsFFActionPerformed(evt);
        }
    });

    spinnerFitDeltaThreshold
            .setToolTipText("Fitness delta threshold for graph sampling - higher threshold, less samples.");
    spinnerFitDeltaThreshold.setPreferredSize(new java.awt.Dimension(29, 23));

    btnResample.setText("Resample");
    btnResample.setToolTipText(
            "Sample graph data again with new threshold. Too low threshold may cause performance or memory issues.");
    btnResample.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnResampleActionPerformed(evt);
        }
    });

    jMenu1.setText("File");

    menuOpenEvo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O,
            java.awt.event.InputEvent.CTRL_MASK));
    menuOpenEvo.setText("Open Evolution");
    menuOpenEvo.setToolTipText("Open evolution record file.");
    menuOpenEvo.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menuOpenEvoActionPerformed(evt);
        }
    });
    jMenu1.add(menuOpenEvo);

    menuOpenFF.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I,
            java.awt.event.InputEvent.CTRL_MASK));
    menuOpenFF.setText("Open Function File");
    menuOpenFF.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menuOpenFFActionPerformed(evt);
        }
    });
    jMenu1.add(menuOpenFF);

    menuDefaultFF.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P,
            java.awt.event.InputEvent.CTRL_MASK));
    menuDefaultFF.setText("Create Default FF");
    menuDefaultFF.setToolTipText("Creates default function file in current working directory.");
    menuDefaultFF.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menuDefaultFFActionPerformed(evt);
        }
    });
    jMenu1.add(menuDefaultFF);

    menuGateUsage.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U,
            java.awt.event.InputEvent.CTRL_MASK));
    menuGateUsage.setText("Gate Usage");
    menuGateUsage.setToolTipText("Swot stats of used function in whole evolution (best chromosomes only).");
    menuGateUsage.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menuGateUsageActionPerformed(evt);
        }
    });
    jMenu1.add(menuGateUsage);

    jMenuBar1.add(jMenu1);

    jMenu2.setText("Help");

    menuAbout.setText("About");
    menuAbout.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            menuAboutActionPerformed(evt);
        }
    });
    jMenu2.add(menuAbout);

    jMenuBar1.add(jMenu2);

    setJMenuBar(jMenuBar1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGap(0, 0, 0).addComponent(btnCompare)
                            .addGap(12, 12, 12).addComponent(btnZoomOutGraph).addGap(6, 6, 6)
                            .addComponent(btnZoomInGraph).addGap(12, 12, 12).addComponent(btnPrevGraph)
                            .addGap(6, 6, 6).addComponent(btnNextGraph).addGap(12, 12, 12)
                            .addComponent(checkBoxGreyUnused).addGap(6, 6, 6).addComponent(checkBoxColorsFF)
                            .addGap(12, 12, 12)
                            .addComponent(spinnerFitDeltaThreshold, javax.swing.GroupLayout.PREFERRED_SIZE, 65,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(6, 6, 6).addComponent(btnResample).addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1216, Short.MAX_VALUE))
                    .addContainerGap()));

    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { btnZoomInGraph, btnZoomOutGraph });

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGap(6, 6, 6)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnCompare).addComponent(btnNextGraph).addComponent(btnZoomInGraph)
                            .addComponent(btnPrevGraph).addComponent(btnZoomOutGraph)
                            .addComponent(checkBoxGreyUnused).addComponent(checkBoxColorsFF)
                            .addComponent(spinnerFitDeltaThreshold, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnResample))
                    .addGap(6, 6, 6)
                    .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)
                    .addGap(12, 12, 12)));

    pack();
}

From source file:com.igormaznitsa.jhexed.swing.editor.ui.dialogs.hexeditors.DialogEditSVGImageValue.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.  j  a  v a 2 s.c  o  m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jLabel1 = new javax.swing.JLabel();
    textName = new javax.swing.JTextField();
    jScrollPane1 = new javax.swing.JScrollPane();
    textComments = new javax.swing.JTextArea();
    buttonCancel = new javax.swing.JButton();
    buttonOk = new javax.swing.JButton();
    panelPreview = new javax.swing.JPanel();
    buttonLoad = new javax.swing.JButton();
    buttonSaveAs = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setLocationByPlatform(true);

    jLabel1.setText("Name:");

    jScrollPane1.setBorder(javax.swing.BorderFactory.createTitledBorder("Commentary"));

    textComments.setColumns(20);
    textComments.setRows(5);
    jScrollPane1.setViewportView(textComments);

    buttonCancel.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/igormaznitsa/jhexed/swing/editor/icons/cross.png"))); // NOI18N
    buttonCancel.setText("Cancel");
    buttonCancel.setToolTipText("Reject changes");
    buttonCancel.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonCancelActionPerformed(evt);
        }
    });

    buttonOk.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/igormaznitsa/jhexed/swing/editor/icons/tick.png"))); // NOI18N
    buttonOk.setText("Ok");
    buttonOk.setToolTipText("Save the changes");
    buttonOk.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonOkActionPerformed(evt);
        }
    });

    panelPreview.setBorder(javax.swing.BorderFactory.createTitledBorder("Preview"));
    panelPreview.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            panelPreviewMouseClicked(evt);
        }
    });
    panelPreview.setLayout(new java.awt.BorderLayout());

    buttonLoad.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/igormaznitsa/jhexed/swing/editor/icons/drive-upload.png"))); // NOI18N
    buttonLoad.setText("Load from file");
    buttonLoad.setToolTipText("Load the image from a file");
    buttonLoad.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonLoadActionPerformed(evt);
        }
    });

    buttonSaveAs.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/igormaznitsa/jhexed/swing/editor/icons/drive-download.png"))); // NOI18N
    buttonSaveAs.setText("Save as file");
    buttonSaveAs.setToolTipText("Save the image as a file");
    buttonSaveAs.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            buttonSaveAsActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(panelPreview, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup().addComponent(jLabel1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(textName))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addComponent(buttonOk)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(buttonCancel))
                    .addGroup(layout.createSequentialGroup().addComponent(buttonLoad)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(buttonSaveAs).addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));

    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { buttonCancel, buttonOk });

    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { buttonLoad, buttonSaveAs });

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(textName,
                                    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.PREFERRED_SIZE, 115,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(panelPreview, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(buttonLoad).addComponent(buttonSaveAs))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(buttonCancel).addComponent(buttonOk))
                    .addContainerGap()));

    pack();
}

From source file:ru.develgame.jflickrorganizer.LoginForm.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 ww  . jav a  2  s  . c o m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

    jLabelURL = new javax.swing.JLabel();
    jTextFieldURL = new javax.swing.JTextField();
    jLabelToken = new javax.swing.JLabel();
    jTextFieldToken = new javax.swing.JTextField();
    jButtonCancel = new javax.swing.JButton();
    jButtonOK = new javax.swing.JButton();
    jCheckBoxOfflineMode = new javax.swing.JCheckBox();
    jLabelLogin = new javax.swing.JLabel();
    jTextFieldLogin = new javax.swing.JTextField();
    jPassword = new javax.swing.JPasswordField();
    jLabelPassword = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("LoginForm"); // NOI18N
    setTitle(bundle.getString("LoginForm.title")); // NOI18N
    setName("Form"); // NOI18N
    setResizable(false);

    jLabelURL.setText(bundle.getString("LoginForm.jLabelURL.text")); // NOI18N
    jLabelURL.setName("jLabelURL"); // NOI18N

    org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jCheckBoxOfflineMode,
            org.jdesktop.beansbinding.ELProperty.create("${!selected}"), jLabelURL,
            org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);

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

    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jCheckBoxOfflineMode,
            org.jdesktop.beansbinding.ELProperty.create("${!selected}"), jTextFieldURL,
            org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);

    jLabelToken.setText(bundle.getString("LoginForm.jLabelToken.text")); // NOI18N
    jLabelToken.setName("jLabelToken"); // NOI18N

    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jCheckBoxOfflineMode,
            org.jdesktop.beansbinding.ELProperty.create("${!selected}"), jLabelToken,
            org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);

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

    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jCheckBoxOfflineMode,
            org.jdesktop.beansbinding.ELProperty.create("${!selected}"), jTextFieldToken,
            org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);

    jButtonCancel.setText(bundle.getString("LoginForm.jButtonCancel.text")); // NOI18N
    jButtonCancel.setName("jButtonCancel"); // NOI18N
    jButtonCancel.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonCancelActionPerformed(evt);
        }
    });

    jButtonOK.setText(bundle.getString("LoginForm.jButtonOK.text")); // NOI18N
    jButtonOK.setName("jButtonOK"); // NOI18N
    jButtonOK.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonOKActionPerformed(evt);
        }
    });

    jCheckBoxOfflineMode.setText(bundle.getString("LoginForm.jCheckBoxOfflineMode.text")); // NOI18N
    jCheckBoxOfflineMode.setName("jCheckBoxOfflineMode"); // NOI18N

    jLabelLogin.setText(bundle.getString("LoginForm.jLabelLogin.text")); // NOI18N
    jLabelLogin.setName("jLabelLogin"); // NOI18N

    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jCheckBoxOfflineMode,
            org.jdesktop.beansbinding.ELProperty.create("${selected}"), jLabelLogin,
            org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);

    jTextFieldLogin.setText(bundle.getString("LoginForm.jTextFieldLogin.text")); // NOI18N
    jTextFieldLogin.setName("jTextFieldLogin"); // NOI18N

    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jCheckBoxOfflineMode,
            org.jdesktop.beansbinding.ELProperty.create("${selected}"), jTextFieldLogin,
            org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);

    jPassword.setText(bundle.getString("LoginForm.jPassword.text")); // NOI18N
    jPassword.setName("jPassword"); // NOI18N

    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jCheckBoxOfflineMode,
            org.jdesktop.beansbinding.ELProperty.create("${selected}"), jPassword,
            org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);

    jLabelPassword.setText(bundle.getString("LoginForm.jLabelPassword.text")); // NOI18N
    jLabelPassword.setName("jLabelPassword"); // NOI18N

    binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, jCheckBoxOfflineMode,
            org.jdesktop.beansbinding.ELProperty.create("${selected}"), jLabelPassword,
            org.jdesktop.beansbinding.BeanProperty.create("enabled"));
    bindingGroup.addBinding(binding);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jTextFieldURL)
                    .addComponent(jTextFieldToken)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jCheckBoxOfflineMode).addComponent(jLabelURL)
                                    .addComponent(jLabelToken))
                            .addGap(0, 230, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelLogin).addComponent(jLabelPassword))
                            .addGap(73, 73, 73)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPassword).addComponent(jTextFieldLogin)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addComponent(jButtonOK)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jButtonCancel)))
                    .addContainerGap()));

    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jButtonCancel, jButtonOK });

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabelURL)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jTextFieldURL, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jLabelToken)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jTextFieldToken, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jCheckBoxOfflineMode)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelLogin).addComponent(jTextFieldLogin,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jPassword, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelPassword))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButtonCancel).addComponent(jButtonOK))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    bindingGroup.bind();

    pack();
}

From source file:com.mirth.connect.client.ui.browsers.message.MessageBrowserAdvancedFilter.java

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

    jScrollPane2 = new javax.swing.JScrollPane();
    mirthTable1 = new com.mirth.connect.client.ui.components.MirthTable();
    jScrollPane3 = new javax.swing.JScrollPane();
    mirthTable2 = new com.mirth.connect.client.ui.components.MirthTable();
    jScrollPane5 = new javax.swing.JScrollPane();
    mirthTable3 = new com.mirth.connect.client.ui.components.MirthTable();
    containerPanel = new javax.swing.JPanel();
    messageIdLabel = new javax.swing.JLabel();
    messageIdLowerField = new com.mirth.connect.client.ui.components.MirthTextField();
    serverIdField = new com.mirth.connect.client.ui.components.MirthTextField();
    serverIdLabel = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    jSeparator1 = new javax.swing.JSeparator();
    cancelButton = new javax.swing.JButton();
    okButton1 = new javax.swing.JButton();
    jScrollPane4 = new javax.swing.JScrollPane();
    contentSearchTable = new com.mirth.connect.client.ui.components.MirthTable();
    addContentSearchButton = new com.mirth.connect.client.ui.components.MirthButton();
    deleteContentSearchButton = new com.mirth.connect.client.ui.components.MirthButton();
    sendAttemptsUpper = new com.mirth.connect.client.ui.components.MirthBlankableSpinner(0, null);
    jScrollPane6 = new javax.swing.JScrollPane();
    connectorTable = new com.mirth.connect.client.ui.components.MirthTable();
    connectorSelectAll = new javax.swing.JLabel();
    connectorDeselectAll = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    sendAttemptsLower = new javax.swing.JSpinner();
    addMetaDataSearchButton = new com.mirth.connect.client.ui.components.MirthButton();
    jScrollPane7 = new javax.swing.JScrollPane();
    metaDataSearchTable = new com.mirth.connect.client.ui.components.MirthTable();
    deleteMetaDataSearchButton = new com.mirth.connect.client.ui.components.MirthButton();
    jLabel1 = new javax.swing.JLabel();
    attachmentCheckBox = new com.mirth.connect.client.ui.components.MirthCheckBox();
    importIdLabel = new javax.swing.JLabel();
    importIdLowerField = new com.mirth.connect.client.ui.components.MirthTextField();
    jLabel4 = new javax.swing.JLabel();
    messageIdUpperField = new com.mirth.connect.client.ui.components.MirthTextField();
    jLabel6 = new javax.swing.JLabel();
    importIdUpperField = new com.mirth.connect.client.ui.components.MirthTextField();
    jLabel8 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    errorCheckBox = new com.mirth.connect.client.ui.components.MirthCheckBox();
    originalIdLabel = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    originalIdUpperField = new com.mirth.connect.client.ui.components.MirthTextField();
    originalIdLowerField = new com.mirth.connect.client.ui.components.MirthTextField();

    mirthTable1
            .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" }));
    jScrollPane2.setViewportView(mirthTable1);

    mirthTable2
            .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" }));
    jScrollPane3.setViewportView(mirthTable2);

    mirthTable3
            .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" }));
    jScrollPane5.setViewportView(mirthTable3);

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);
        }
    });

    containerPanel.setBackground(new java.awt.Color(255, 255, 255));

    messageIdLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    messageIdLabel.setText("Message Id:");

    serverIdField.setToolTipText(
            "<html>The GUID of the message in the Mirth Connect database.<br>This can be retrieved from the Meta Data tab in the Message Browser.</html>");

    serverIdLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    serverIdLabel.setText("Server Id:");

    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel5.setText("Send Attempts:");

    jPanel1.setBackground(new java.awt.Color(255, 255, 255));

    cancelButton.setText("Cancel");
    cancelButton.setMargin(new java.awt.Insets(0, 2, 0, 2));
    cancelButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });

    okButton1.setText("OK");
    okButton1.setMargin(new java.awt.Insets(0, 2, 0, 2));
    okButton1.setMaximumSize(new java.awt.Dimension(48, 21));
    okButton1.setMinimumSize(new java.awt.Dimension(48, 21));
    okButton1.setPreferredSize(new java.awt.Dimension(48, 21));
    okButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            okButton1ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jSeparator1)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(okButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(cancelButton)));

    jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { cancelButton, okButton1 });

    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addGap(0, 6, Short.MAX_VALUE)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(8, 8, 8).addGroup(
                            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(cancelButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(okButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))));

    jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { cancelButton, okButton1 });

    contentSearchTable.setToolTipText(
            "<html> \nSearch specific message content. This process could take a long time<br/>\ndepending on the amount of message content currently stored. Any message<br/>\ncontent that was encrypted by this channel will not be searchable. </html>");
    jScrollPane4.setViewportView(contentSearchTable);

    addContentSearchButton.setText("New");
    addContentSearchButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addContentSearchButtonActionPerformed(evt);
        }
    });

    deleteContentSearchButton.setText("Delete");
    deleteContentSearchButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            deleteContentSearchButtonActionPerformed(evt);
        }
    });

    connectorTable.setToolTipText(
            "<html>\nInclude messages from the selected connectors. Connectors that were<br/>\nremoved from this channel are not available to select. Messages for removed<br/>\nconnectors will only be included if all connectors are selected. If a connector's<br/>\nname has changed, messages before the name change will still be included.\n</html>");
    jScrollPane6.setViewportView(connectorTable);

    connectorSelectAll.setForeground(java.awt.Color.blue);
    connectorSelectAll.setText("<html><u>Select All</u></html>");
    connectorSelectAll.setToolTipText("Select all connectors below.");
    connectorSelectAll.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
    connectorSelectAll.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            connectorSelectAllMouseReleased(evt);
        }
    });

    connectorDeselectAll.setForeground(java.awt.Color.blue);
    connectorDeselectAll.setText("<html><u>Deselect All</u></html>");
    connectorDeselectAll.setToolTipText("Deselect all connectors below.");
    connectorDeselectAll.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
    connectorDeselectAll.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            connectorDeselectAllMouseReleased(evt);
        }
    });

    jLabel7.setFont(new java.awt.Font("Lucida Grande", 0, 12)); // NOI18N
    jLabel7.setText("|");

    addMetaDataSearchButton.setText("New");
    addMetaDataSearchButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addMetaDataSearchButtonActionPerformed(evt);
        }
    });

    metaDataSearchTable.setToolTipText(
            "<html>Search on custom metadata stored for this channel.<br/>Note that if Ignore Case is unchecked, case<br/>sensitivity depends on the database collation.</html>");
    jScrollPane7.setViewportView(metaDataSearchTable);

    deleteMetaDataSearchButton.setText("Delete");
    deleteMetaDataSearchButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            deleteMetaDataSearchButtonActionPerformed(evt);
        }
    });

    jLabel1.setText("Has Attachment:");

    attachmentCheckBox.setBackground(new java.awt.Color(255, 255, 255));
    attachmentCheckBox.setToolTipText("If checked, only messages with attachments will be included.");

    importIdLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    importIdLabel.setText("Import Id:");

    jLabel4.setText("-");

    jLabel6.setText("-");

    jLabel8.setText("-");

    jLabel2.setText("Has Error:");

    errorCheckBox.setBackground(new java.awt.Color(255, 255, 255));
    errorCheckBox.setToolTipText("If checked, only messages with errors will be included.");

    originalIdLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    originalIdLabel.setText("Original Id:");

    jLabel9.setText("-");

    javax.swing.GroupLayout containerPanelLayout = new javax.swing.GroupLayout(containerPanel);
    containerPanel.setLayout(containerPanelLayout);
    containerPanelLayout.setHorizontalGroup(containerPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(containerPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(containerPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(containerPanelLayout.createSequentialGroup().addGroup(containerPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(serverIdLabel, javax.swing.GroupLayout.Alignment.TRAILING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 52,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(importIdLabel, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(originalIdLabel, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(messageIdLabel, javax.swing.GroupLayout.Alignment.TRAILING))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(containerPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(attachmentCheckBox,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(errorCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(containerPanelLayout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.TRAILING, false)
                                                    .addComponent(serverIdField,
                                                            javax.swing.GroupLayout.Alignment.LEADING,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE)
                                                    .addGroup(containerPanelLayout.createSequentialGroup()
                                                            .addGroup(containerPanelLayout.createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                                    .addComponent(messageIdLowerField,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                            118,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                    .addComponent(originalIdLowerField,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                            118,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                    .addComponent(importIdLowerField,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                            118,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                                    .addComponent(sendAttemptsLower,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                            118,
                                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                                            .addPreferredGap(
                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addGroup(containerPanelLayout.createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                                    .addGroup(containerPanelLayout
                                                                            .createSequentialGroup()
                                                                            .addComponent(jLabel9)
                                                                            .addPreferredGap(
                                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                            .addComponent(originalIdUpperField,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    118,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                    .addGroup(containerPanelLayout
                                                                            .createSequentialGroup()
                                                                            .addComponent(jLabel4)
                                                                            .addPreferredGap(
                                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                            .addComponent(messageIdUpperField,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    118,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                    .addGroup(containerPanelLayout
                                                                            .createSequentialGroup()
                                                                            .addComponent(jLabel6)
                                                                            .addPreferredGap(
                                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                            .addComponent(importIdUpperField,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    118,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                                    .addGroup(containerPanelLayout
                                                                            .createSequentialGroup()
                                                                            .addComponent(jLabel8)
                                                                            .addPreferredGap(
                                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                                            .addComponent(sendAttemptsUpper,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                                    118,
                                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))))
                                    .addGap(0, 167, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, containerPanelLayout
                                    .createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addComponent(connectorSelectAll, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel7)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(connectorDeselectAll, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(containerPanelLayout.createSequentialGroup()
                                    .addGroup(containerPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jScrollPane7).addComponent(jScrollPane4))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(containerPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    containerPanelLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(addContentSearchButton,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(deleteContentSearchButton,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    containerPanelLayout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(addMetaDataSearchButton,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(deleteMetaDataSearchButton,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 52,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane6, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addContainerGap()));
    containerPanelLayout.setVerticalGroup(containerPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(containerPanelLayout.createSequentialGroup().addGap(4, 4, 4).addGroup(containerPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(connectorSelectAll, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(connectorDeselectAll, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 140,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(5, 5, 5)
                    .addGroup(containerPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(messageIdLabel)
                            .addComponent(messageIdLowerField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4).addComponent(messageIdUpperField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(containerPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(containerPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel9).addComponent(originalIdUpperField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(containerPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(originalIdLowerField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(originalIdLabel)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(containerPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(containerPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel6).addComponent(importIdUpperField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(containerPanelLayout.createSequentialGroup().addGroup(containerPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(importIdLowerField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(importIdLabel)).addGap(5, 5, 5)
                                    .addGroup(containerPanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(serverIdField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(serverIdLabel))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            containerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel5)
                                    .addComponent(sendAttemptsLower, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(sendAttemptsUpper, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel8))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(containerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(attachmentCheckBox, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1))
                    .addGap(5, 5, 5)
                    .addGroup(containerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(jLabel2).addComponent(errorCheckBox,
                                    javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            containerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(containerPanelLayout.createSequentialGroup()
                                            .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    0, Short.MAX_VALUE)
                                            .addPreferredGap(
                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                                    .addGroup(containerPanelLayout.createSequentialGroup()
                                            .addComponent(addContentSearchButton,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(deleteContentSearchButton,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(85, 85, 85)))
                    .addGroup(
                            containerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(containerPanelLayout.createSequentialGroup()
                                            .addComponent(addMetaDataSearchButton,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(deleteMetaDataSearchButton,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(0, 0, Short.MAX_VALUE))
                                    .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 129,
                                            Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(11, 11, 11)));

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

    pack();
}

From source file:esmska.gui.AboutFrame.java

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

    jLabel1 = new JLabel();
    jLabel2 = new JLabel();
    jLabel3 = new JLabel();
    creditsButton = new JButton();
    closeButton = new JButton();
    licenseButton = new JButton();
    jLabel5 = new JLabel();
    jLabel4 = new JLabel();
    jLabel6 = new JLabel();
    jLabel7 = new JLabel();
    jLabel8 = new JLabel();
    homeHyperlink = new JXHyperlink();
    supportHyperlink = new JXHyperlink();

    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    ResourceBundle bundle = ResourceBundle.getBundle("esmska/resources/l10n"); // NOI18N
    setTitle(bundle.getString("AboutFrame.title")); // NOI18N
    setLocationByPlatform(true);

    jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel1.setIcon(new ImageIcon(getClass().getResource("/esmska/resources/esmska.png"))); // NOI18N
    jLabel1.setFocusable(false);

    jLabel2.setFont(jLabel2.getFont().deriveFont(jLabel2.getFont().getStyle() | Font.BOLD,
            jLabel2.getFont().getSize() + 22));
    jLabel2.setHorizontalAlignment(SwingConstants.CENTER);
    Mnemonics.setLocalizedText(jLabel2, "Esmska " + config.getLatestVersion());
    jLabel2.setFocusable(false);

    jLabel3.setHorizontalAlignment(SwingConstants.CENTER);
    Mnemonics.setLocalizedText(jLabel3, bundle.getString("AboutFrame.jLabel3.text")); // NOI18N
    jLabel3.setFocusable(false);

    creditsButton.setIcon(new ImageIcon(getClass().getResource("/esmska/resources/about-22.png"))); // NOI18N
    Mnemonics.setLocalizedText(creditsButton, bundle.getString("AboutFrame.creditsButton.text"));
    creditsButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            creditsButtonActionPerformed(evt);
        }
    });

    closeButton.setIcon(new ImageIcon(getClass().getResource("/esmska/resources/close-22.png"))); // NOI18N
    Mnemonics.setLocalizedText(closeButton, bundle.getString("Close_"));
    closeButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            closeButtonActionPerformed(evt);
        }
    });
    Mnemonics.setLocalizedText(licenseButton, bundle.getString("AboutFrame.licenseButton.text"));
    licenseButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            licenseButtonActionPerformed(evt);
        }
    });

    jLabel5.setFont(jLabel5.getFont().deriveFont(jLabel5.getFont().getSize() - 2f));
    jLabel5.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel5.setIcon(new ImageIcon(getClass().getResource("/esmska/resources/copyleft-12.png"))); // NOI18N
    Mnemonics.setLocalizedText(jLabel5, bundle.getString("AboutFrame.jLabel5.text")); // NOI18N
    jLabel5.setFocusable(false);

    setURI(homeHyperlink, Links.getURI(Links.HOMEPAGE));
    Mnemonics.setLocalizedText(homeHyperlink, l10n.getString("AboutFrame.homeHyperlink.text"));
    homeHyperlink.setToolTipText(l10n.getString("AboutFrame.homeHyperlink.toolTipText")); // NOI18N
    setURI(supportHyperlink, Links.getURI(Links.DONATE));
    Mnemonics.setLocalizedText(supportHyperlink, l10n.getString("AboutFrame.supportHyperlink.text"));
    supportHyperlink.setToolTipText(l10n.getString("AboutFrame.supportHyperlink.toolTipText")); // NOI18N
    GroupLayout layout = new GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout
            .createSequentialGroup().addContainerGap()
            .addGroup(layout.createParallelGroup(Alignment.LEADING)
                    .addComponent(jLabel5, Alignment.CENTER, GroupLayout.DEFAULT_SIZE, 451, Short.MAX_VALUE)
                    .addComponent(homeHyperlink, Alignment.CENTER, GroupLayout.PREFERRED_SIZE,
                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(supportHyperlink, Alignment.CENTER, GroupLayout.PREFERRED_SIZE,
                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3, Alignment.CENTER, GroupLayout.DEFAULT_SIZE, 451, Short.MAX_VALUE)
                    .addComponent(jLabel2, Alignment.CENTER, GroupLayout.DEFAULT_SIZE, 451, Short.MAX_VALUE)
                    .addComponent(jLabel1, Alignment.CENTER, GroupLayout.DEFAULT_SIZE, 451, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup().addComponent(creditsButton)
                            .addPreferredGap(ComponentPlacement.RELATED).addComponent(licenseButton)
                            .addPreferredGap(ComponentPlacement.RELATED, 151, Short.MAX_VALUE)
                            .addComponent(closeButton))
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(jLabel4, GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)
                            .addGap(108, 108, 108)
                            .addComponent(jLabel6, GroupLayout.DEFAULT_SIZE, 172, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(jLabel8, GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE)
                            .addGap(138, 138, 138)
                            .addComponent(jLabel7, GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)))
            .addContainerGap()));

    layout.linkSize(SwingConstants.HORIZONTAL, new Component[] { closeButton, creditsButton, licenseButton });

    layout.setVerticalGroup(
            layout.createParallelGroup(Alignment.LEADING).addGroup(Alignment.TRAILING,
                    layout.createSequentialGroup().addContainerGap().addComponent(jLabel1).addGap(18, 18, 18)
                            .addComponent(jLabel2).addPreferredGap(ComponentPlacement.RELATED)
                            .addComponent(jLabel3).addPreferredGap(ComponentPlacement.UNRELATED)
                            .addComponent(jLabel5).addGap(18, 18, 18)
                            .addGroup(layout.createParallelGroup(Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                            .addGroup(layout.createParallelGroup(Alignment.BASELINE)
                                                    .addComponent(jLabel4).addComponent(jLabel6))
                                            .addPreferredGap(ComponentPlacement.RELATED)
                                            .addGroup(layout.createParallelGroup(Alignment.BASELINE)
                                                    .addComponent(jLabel7).addComponent(jLabel8)))
                                    .addComponent(homeHyperlink, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(ComponentPlacement.UNRELATED)
                            .addComponent(supportHyperlink, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(ComponentPlacement.RELATED, 48, Short.MAX_VALUE)
                            .addGroup(layout.createParallelGroup(Alignment.BASELINE).addComponent(creditsButton)
                                    .addComponent(closeButton).addComponent(licenseButton))
                            .addContainerGap()));

    layout.linkSize(SwingConstants.VERTICAL, new Component[] { jLabel4, jLabel6 });

    layout.linkSize(SwingConstants.VERTICAL, new Component[] { closeButton, creditsButton, licenseButton });

    pack();
}

From source file:au.com.jwatmuff.eventmanager.gui.main.LoadCompetitionWindow.java

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

    buttonGroup1 = new javax.swing.ButtonGroup();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    jPanel3 = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    existingCompRadioButton = new javax.swing.JRadioButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    competitionList = new javax.swing.JList<DatabaseInfo>();
    loadBackupButton = new javax.swing.JButton();
    saveBackupButton = new javax.swing.JButton();
    deleteCompButton = new javax.swing.JButton();
    renameCompButton = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    newCompRadioButton = new javax.swing.JRadioButton();
    cancelButton = new javax.swing.JButton();
    okButton = new javax.swing.JButton();
    expiryWarningLabel = new javax.swing.JLabel();
    jPanel4 = new javax.swing.JPanel();
    manualScoreboardButton = new javax.swing.JButton();
    displayScoreboardButton = new javax.swing.JButton();
    jPanel5 = new javax.swing.JPanel();
    jPanel6 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    licenseNameLabel = new javax.swing.JLabel();
    licenseContactLabel = new javax.swing.JLabel();
    licenseTypeLabel = new javax.swing.JLabel();
    licenseExpiryLabel = new javax.swing.JLabel();
    loadLicenseButton = new javax.swing.JButton();
    enterLicenseKeyButton = new javax.swing.JButton();
    chatPanelContainer = new javax.swing.JPanel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Event Manager");
    setLocationByPlatform(true);
    setResizable(false);

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

    buttonGroup1.add(existingCompRadioButton);
    existingCompRadioButton.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    existingCompRadioButton.setText("Open Existing Competition");
    existingCompRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    existingCompRadioButton.setEnabled(false);
    existingCompRadioButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
    existingCompRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            existingCompRadioButtonActionPerformed(evt);
        }
    });

    competitionList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    competitionList.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            competitionListMouseClicked(evt);
        }
    });
    competitionList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
        public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
            competitionListValueChanged(evt);
        }
    });
    competitionList.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusGained(java.awt.event.FocusEvent evt) {
            competitionListFocusGained(evt);
        }
    });
    jScrollPane1.setViewportView(competitionList);

    loadBackupButton.setText("Load Backup..");
    loadBackupButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            loadBackupButtonActionPerformed(evt);
        }
    });

    saveBackupButton.setText("Save Backup..");
    saveBackupButton.setEnabled(false);
    saveBackupButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            saveBackupButtonActionPerformed(evt);
        }
    });

    deleteCompButton
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/famfamfam/icons/silk/delete.png"))); // NOI18N
    deleteCompButton.setText("Delete Competition");
    deleteCompButton.setEnabled(false);
    deleteCompButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            deleteCompButtonActionPerformed(evt);
        }
    });

    renameCompButton
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/famfamfam/icons/silk/delete.png"))); // NOI18N
    renameCompButton.setText("Rename");
    renameCompButton.setEnabled(false);
    renameCompButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            renameCompButtonActionPerformed(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()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(
                                    jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 572, Short.MAX_VALUE)
                            .addComponent(existingCompRadioButton)
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(loadBackupButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(saveBackupButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(deleteCompButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(renameCompButton)))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                    .addComponent(existingCompRadioButton)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(loadBackupButton).addComponent(saveBackupButton)
                            .addComponent(deleteCompButton).addComponent(renameCompButton))
                    .addContainerGap()));

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

    buttonGroup1.add(newCompRadioButton);
    newCompRadioButton.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    newCompRadioButton.setSelected(true);
    newCompRadioButton.setText("Create New Competition");
    newCompRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    newCompRadioButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
    newCompRadioButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            newCompRadioButtonActionPerformed(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()
                            .addComponent(newCompRadioButton).addContainerGap(427, Short.MAX_VALUE)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(newCompRadioButton)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    cancelButton.setText("Exit");
    cancelButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });

    okButton.setText("Open");
    okButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            okButtonActionPerformed(evt);
        }
    });

    expiryWarningLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    expiryWarningLabel.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/famfamfam/icons/silk/exclamation.png"))); // NOI18N
    expiryWarningLabel.setText("Your EventManager license will expire in X days.");

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addGroup(jPanel3Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel3Layout.createSequentialGroup()
                                    .addComponent(expiryWarningLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 455,
                                            Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(okButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cancelButton)))
                    .addContainerGap()));

    jPanel3Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { cancelButton, okButton });

    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel3Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(cancelButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(okButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addComponent(expiryWarningLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap()));

    jTabbedPane1.addTab("Start Competition", jPanel3);

    manualScoreboardButton.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/famfamfam/icons/silk/application_view_tile.png"))); // NOI18N
    manualScoreboardButton.setText("Manual Scoreboard Entry..");
    manualScoreboardButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    manualScoreboardButton.setIconTextGap(8);
    manualScoreboardButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            manualScoreboardButtonActionPerformed(evt);
        }
    });

    displayScoreboardButton.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/famfamfam/icons/silk/application_view_tile.png"))); // NOI18N
    displayScoreboardButton.setText("Manual Scoreboard Display..");
    displayScoreboardButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            displayScoreboardButtonActionPerformed(evt);
        }
    });

    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()
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(manualScoreboardButton).addComponent(displayScoreboardButton))
                    .addContainerGap(415, Short.MAX_VALUE)));

    jPanel4Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { displayScoreboardButton, manualScoreboardButton });

    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup().addContainerGap()
                    .addComponent(manualScoreboardButton).addGap(18, 18, 18)
                    .addComponent(displayScoreboardButton).addContainerGap(360, Short.MAX_VALUE)));

    jTabbedPane1.addTab("Manual Interfaces", jPanel4);

    jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder("Current License"));

    jLabel1.setText("Name:");

    jLabel2.setText("Contact Phone:");

    jLabel3.setText("Level:");

    jLabel4.setText("Expiry:");

    licenseNameLabel.setText("N/A");

    licenseContactLabel.setText("N/A");

    licenseTypeLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    licenseTypeLabel.setText("FREE");

    licenseExpiryLabel.setText("N/A");

    javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout.setHorizontalGroup(jPanel6Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel6Layout.createSequentialGroup().addComponent(jLabel1)
                                    .addGap(18, 18, 18).addComponent(licenseNameLabel))
                            .addGroup(jPanel6Layout.createSequentialGroup().addComponent(jLabel2)
                                    .addGap(18, 18, 18).addComponent(licenseContactLabel))
                            .addGroup(jPanel6Layout.createSequentialGroup().addComponent(jLabel3)
                                    .addGap(18, 18, 18).addComponent(licenseTypeLabel))
                            .addGroup(jPanel6Layout.createSequentialGroup().addComponent(jLabel4)
                                    .addGap(18, 18, 18).addComponent(licenseExpiryLabel)))
                    .addContainerGap(437, Short.MAX_VALUE)));

    jPanel6Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jLabel1, jLabel2, jLabel3, jLabel4 });

    jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(licenseNameLabel,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 14,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2).addComponent(licenseContactLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(licenseTypeLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4).addComponent(licenseExpiryLabel))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    loadLicenseButton.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/famfamfam/icons/silk/key_add.png"))); // NOI18N
    loadLicenseButton.setText("Load License File..");
    loadLicenseButton.setIconTextGap(8);
    loadLicenseButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            loadLicenseButtonActionPerformed(evt);
        }
    });

    enterLicenseKeyButton.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/famfamfam/icons/silk/key_add.png"))); // NOI18N
    enterLicenseKeyButton.setText("Enter License Key..");
    enterLicenseKeyButton.setIconTextGap(8);
    enterLicenseKeyButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            enterLicenseKeyButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
    jPanel5.setLayout(jPanel5Layout);
    jPanel5Layout.setHorizontalGroup(jPanel5Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jPanel5Layout.createSequentialGroup().addComponent(loadLicenseButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(enterLicenseKeyButton)))
                    .addContainerGap()));
    jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap()
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(loadLicenseButton).addComponent(enterLicenseKeyButton))
                    .addContainerGap(288, Short.MAX_VALUE)));

    jTabbedPane1.addTab("Licenses", jPanel5);

    javax.swing.GroupLayout chatPanelContainerLayout = new javax.swing.GroupLayout(chatPanelContainer);
    chatPanelContainer.setLayout(chatPanelContainerLayout);
    chatPanelContainerLayout.setHorizontalGroup(chatPanelContainerLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 263, Short.MAX_VALUE));
    chatPanelContainerLayout.setVerticalGroup(chatPanelContainerLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, 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().addContainerGap()
                                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 629,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(chatPanelContainer, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(chatPanelContainer, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addContainerGap()));

    pack();
}

From source file:co.udea.edu.proyectointegrador.gr11.parqueaderoapp.view.stadistics.EstadisticaUI.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 ww  .ja  va2 s.  c om
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanelTipoVehiculo = new ChartPanel(this.chartTypeVehicle);
    jPanelTipoUsuario = new ChartPanel(this.chartTypeUser);
    jPanelHorasDelDia = new ChartPanel(this.chartHourOfDay);
    jLabel1 = new javax.swing.JLabel();
    jLabelFechaFinal = new javax.swing.JLabel();
    jLabelFechaInicial = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jButton1 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Estadisticas");
    setResizable(false);

    javax.swing.GroupLayout jPanelTipoVehiculoLayout = new javax.swing.GroupLayout(jPanelTipoVehiculo);
    jPanelTipoVehiculo.setLayout(jPanelTipoVehiculoLayout);
    jPanelTipoVehiculoLayout.setHorizontalGroup(jPanelTipoVehiculoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 391, Short.MAX_VALUE));
    jPanelTipoVehiculoLayout.setVerticalGroup(jPanelTipoVehiculoLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 317, Short.MAX_VALUE));

    javax.swing.GroupLayout jPanelTipoUsuarioLayout = new javax.swing.GroupLayout(jPanelTipoUsuario);
    jPanelTipoUsuario.setLayout(jPanelTipoUsuarioLayout);
    jPanelTipoUsuarioLayout.setHorizontalGroup(jPanelTipoUsuarioLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 391, Short.MAX_VALUE));
    jPanelTipoUsuarioLayout.setVerticalGroup(jPanelTipoUsuarioLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 317, Short.MAX_VALUE));

    jPanelHorasDelDia.setToolTipText("");

    javax.swing.GroupLayout jPanelHorasDelDiaLayout = new javax.swing.GroupLayout(jPanelHorasDelDia);
    jPanelHorasDelDia.setLayout(jPanelHorasDelDiaLayout);
    jPanelHorasDelDiaLayout.setHorizontalGroup(jPanelHorasDelDiaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 391, Short.MAX_VALUE));
    jPanelHorasDelDiaLayout.setVerticalGroup(jPanelHorasDelDiaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 317, Short.MAX_VALUE));

    jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("Fecha inicial");

    jLabelFechaFinal.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    jLabelFechaFinal.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

    jLabelFechaInicial.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    jLabelFechaInicial.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

    jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel3.setText("Fecha Final");

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

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(135, 135, 135)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 87,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabelFechaInicial, javax.swing.GroupLayout.PREFERRED_SIZE, 128,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 87,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabelFechaFinal, javax.swing.GroupLayout.PREFERRED_SIZE, 87,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18).addComponent(jButton1).addGap(68, 68, 68))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addGap(25, 25, 25)
                    .addComponent(jPanelTipoVehiculo, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)
                    .addComponent(jPanelTipoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(19, 19, 19))
            .addGroup(layout.createSequentialGroup().addGap(234, 234, 234)
                    .addComponent(jPanelHorasDelDia, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jPanelHorasDelDia, jPanelTipoUsuario, jPanelTipoVehiculo });

    layout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
            new java.awt.Component[] { jLabel1, jLabel3, jLabelFechaFinal, jLabelFechaInicial });

    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addGroup(
                            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addGap(31, 31, 31).addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabelFechaFinal,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabelFechaInicial,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 34,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(18, 18, 18))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                            layout.createSequentialGroup().addContainerGap()
                                                    .addComponent(jButton1).addGap(29, 29, 29)))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanelTipoVehiculo, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanelTipoUsuario, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
                    .addComponent(jPanelHorasDelDia, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

    layout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { jPanelHorasDelDia, jPanelTipoUsuario, jPanelTipoVehiculo });

    layout.linkSize(javax.swing.SwingConstants.VERTICAL,
            new java.awt.Component[] { jLabel1, jLabel3, jLabelFechaFinal, jLabelFechaInicial });

    pack();
}