Example usage for javax.swing GroupLayout setVerticalGroup

List of usage examples for javax.swing GroupLayout setVerticalGroup

Introduction

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

Prototype

public void setVerticalGroup(Group group) 

Source Link

Document

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

Usage

From source file:graphics.MainWindow.java

/** This method is called from within the constructor to
 * initialize the form./*from  w  ww .  j  av  a 2 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() {

    jPanel1 = new javax.swing.JPanel();
    jPanelpos1 = new javax.swing.JPanel();
    jPanelpos2 = new javax.swing.JPanel();
    jPanelpos3 = new javax.swing.JPanel();
    jPanelpos4 = new javax.swing.JPanel();
    jPanelpos5 = new javax.swing.JPanel();
    jPanelpos6 = new javax.swing.JPanel();
    jPanelpos7 = new javax.swing.JPanel();
    jPanelpos8 = new javax.swing.JPanel();
    jPanelpos9 = new javax.swing.JPanel();
    jPanelpos10 = new javax.swing.JPanel();
    jPanelpos11 = new javax.swing.JPanel();
    jPanelpos12 = new javax.swing.JPanel();
    jPanelpos13 = new javax.swing.JPanel();
    jPanelpos14 = new javax.swing.JPanel();
    jPanelpos15 = new javax.swing.JPanel();
    jPanelpos16 = new javax.swing.JPanel();
    jMenuBar6 = new javax.swing.JMenuBar();
    jMenu6 = new javax.swing.JMenu();
    Start = new javax.swing.JMenuItem();
    PauseMenuItem = new javax.swing.JCheckBoxMenuItem();
    Stop = new javax.swing.JMenuItem();
    Exit = new javax.swing.JMenuItem();
    jMenu1 = new javax.swing.JMenu();
    SimulationConf = new javax.swing.JMenuItem();
    AddSpecie = new javax.swing.JMenuItem();
    AddCell = new javax.swing.JMenuItem();
    jMenu2 = new javax.swing.JMenu();
    Help = new javax.swing.JMenuItem();
    About = new javax.swing.JMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jPanel1.setLayout(new java.awt.GridLayout(4, 4));

    jPanelpos1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos1.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos1);

    jPanelpos2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos2.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos2);

    jPanelpos3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos3.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos3);

    jPanelpos4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos4.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos4);

    jPanelpos5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos5.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos5);

    jPanelpos6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos6.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos6);

    jPanelpos7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos7.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos7);

    jPanelpos8.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos8.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos8);

    jPanelpos9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos9.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos9);

    jPanelpos10.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos10.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos10);

    jPanelpos11.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos11.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos11);

    jPanelpos12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos12.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos12);

    jPanelpos13.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos13.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos13);

    jPanelpos14.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos14.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos14);

    jPanelpos15.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos15.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos15);

    jPanelpos16.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
    jPanelpos16.setLayout(new java.awt.CardLayout());
    jPanel1.add(jPanelpos16);

    jMenu6.setText("Simulation");

    Start.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N,
            java.awt.event.InputEvent.CTRL_MASK));
    Start.setText("Start");
    Start.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            StartActionPerformed(evt);
        }
    });
    jMenu6.add(Start);

    PauseMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P,
            java.awt.event.InputEvent.CTRL_MASK));
    PauseMenuItem.setText("Pause");
    PauseMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            PauseMenuItemActionPerformed(evt);
        }
    });
    jMenu6.add(PauseMenuItem);

    Stop.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O,
            java.awt.event.InputEvent.CTRL_MASK));
    Stop.setText("Stop");
    Stop.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            StopActionPerformed(evt);
        }
    });
    jMenu6.add(Stop);

    Exit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X,
            java.awt.event.InputEvent.CTRL_MASK));
    Exit.setText("Exit");
    Exit.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            ExitActionPerformed(evt);
        }
    });
    jMenu6.add(Exit);

    jMenuBar6.add(jMenu6);

    jMenu1.setText("Edit");

    SimulationConf.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C,
            java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
    SimulationConf.setText("Simulation Configuration");
    SimulationConf.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            SimulationConfActionPerformed(evt);
        }
    });
    jMenu1.add(SimulationConf);

    AddSpecie.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S,
            java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
    AddSpecie.setText("Add New Specie");
    AddSpecie.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AddSpecieActionPerformed(evt);
        }
    });
    jMenu1.add(AddSpecie);

    AddCell.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A,
            java.awt.event.InputEvent.CTRL_MASK));
    AddCell.setText("Add New Cell");
    AddCell.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            AddCellActionPerformed(evt);
        }
    });
    jMenu1.add(AddCell);

    jMenuBar6.add(jMenu1);

    jMenu2.setText("Help");

    Help.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H,
            java.awt.event.InputEvent.CTRL_MASK));
    Help.setText("Help");
    jMenu2.add(Help);

    About.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A,
            java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
    About.setText("About");
    jMenu2.add(About);

    jMenuBar6.add(jMenu2);

    setJMenuBar(jMenuBar6);

    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(66, 66, 66).addComponent(jPanel1,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 468, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(76, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout
                    .createSequentialGroup().addGap(47, 47, 47).addComponent(jPanel1,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 439, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(60, Short.MAX_VALUE)));

    pack();
}

From source file:view.ViewReportUI.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  a2  s.  c om*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();
    jButton1 = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle(" Expense Report");
    setResizable(false);
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);
        }
    });

    String col[] = { "Amount", "Store", "Date of Purchase", "Date Addded" };
    DefaultTableModel tableModel = new DefaultTableModel(col, 0) {
        public boolean isCellEditable(int row, int column) {
            return false;//This causes all cells to be not editable
        }
    };
    jTable1.setModel(tableModel);
    for (model.InvoiceModel in : myInvoice) {

        Object[] objs = { "$" + in.getAmount(), in.getStore(), in.getDateOfPurchase(), in.getAddedDate() };
        tableModel.addRow(objs);
    }

    jTable1.setGridColor(Color.gray);
    jTable1.getTableHeader().setBackground(new Color(102, 178, 255));
    jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jTable1MouseClicked(evt);
        }
    });
    jScrollPane1.setViewportView(jTable1);

    jButton1.setText("Close");

    jPanel1.setLayout(new java.awt.BorderLayout());
    PieDataset dataset = createDataset();
    // based on the dataset we create the chart
    JFreeChart chart = createChart(dataset, "Hello");
    // we put the chart into a panel
    this.chartPanel = new ChartPanel(chart);
    // default size
    chartPanel.setPreferredSize(new Dimension(500, 270));
    //        this.jPanel1.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    //
    System.out.println(chartPanel == null);
    jPanel1.add(chartPanel);
    jPanel1.validate();

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton1).addGap(242, 242, 242))
            .addGroup(layout.createSequentialGroup().addGap(15, 15, 15)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 536,
                                    Short.MAX_VALUE)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap(14, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 293,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jButton1)
                    .addGap(20, 20, 20)));

    pack();
    setLocationRelativeTo(null);
}

From source file:EnrollFingerprint.Verify.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  v  a 2  s.  c o m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    buttonGroup1 = new javax.swing.ButtonGroup();
    jPanelBackground = new javax.swing.JPanel();
    picFingerprint = new javax.swing.JLabel();
    jPanelConsole = new javax.swing.JPanel();
    txtConsole = new javax.swing.JTextField();
    lblConsole = new javax.swing.JLabel();
    btnCancel = new javax.swing.JButton();
    jPanelLog = new javax.swing.JPanel();
    JScrollPane1 = new javax.swing.JScrollPane();
    txtLog = new javax.swing.JTextArea();
    lblLog = new javax.swing.JLabel();
    btnVerify = new javax.swing.JButton();
    lblStatus = new javax.swing.JLabel();
    btnFind = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Almacenar Huellas");
    setResizable(false);

    jPanelBackground.setBackground(new java.awt.Color(238, 241, 245));

    picFingerprint.setBackground(new java.awt.Color(255, 255, 255));
    picFingerprint.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

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

    txtConsole.setEditable(false);
    txtConsole.setForeground(new java.awt.Color(136, 136, 136));
    txtConsole.setText("Consola de estado");

    lblConsole.setForeground(new java.awt.Color(136, 136, 136));
    lblConsole.setText("Consola:");

    javax.swing.GroupLayout jPanelConsoleLayout = new javax.swing.GroupLayout(jPanelConsole);
    jPanelConsole.setLayout(jPanelConsoleLayout);
    jPanelConsoleLayout.setHorizontalGroup(jPanelConsoleLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsoleLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelConsoleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtConsole).addGroup(jPanelConsoleLayout.createSequentialGroup()
                                    .addComponent(lblConsole).addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanelConsoleLayout.setVerticalGroup(jPanelConsoleLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsoleLayout.createSequentialGroup()
                    .addGap(5, 5, 5).addComponent(lblConsole)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(txtConsole, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(15, Short.MAX_VALUE)));

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

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

    txtLog.setEditable(false);
    txtLog.setColumns(20);
    txtLog.setForeground(new java.awt.Color(168, 168, 168));
    txtLog.setRows(5);
    JScrollPane1.setViewportView(txtLog);

    lblLog.setForeground(new java.awt.Color(136, 136, 136));
    lblLog.setText("Estado:");

    javax.swing.GroupLayout jPanelLogLayout = new javax.swing.GroupLayout(jPanelLog);
    jPanelLog.setLayout(jPanelLogLayout);
    jPanelLogLayout.setHorizontalGroup(jPanelLogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLogLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelLogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(JScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 409, Short.MAX_VALUE)
                            .addGroup(jPanelLogLayout.createSequentialGroup().addComponent(lblLog).addGap(0, 0,
                                    Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanelLogLayout.setVerticalGroup(jPanelLogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelLogLayout.createSequentialGroup().addContainerGap().addComponent(lblLog)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(JScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
                    .addContainerGap()));

    btnVerify.setText("Verificar Huella");
    btnVerify.setEnabled(false);
    btnVerify.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnVerifyActionPerformed(evt);
        }
    });

    lblStatus.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    lblStatus.setText("Intentos");

    btnFind.setText("Cargar Huellas");
    btnFind.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnFindActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanelBackgroundLayout = new javax.swing.GroupLayout(jPanelBackground);
    jPanelBackground.setLayout(jPanelBackgroundLayout);
    jPanelBackgroundLayout.setHorizontalGroup(jPanelBackgroundLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBackgroundLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelBackgroundLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanelBackgroundLayout.createSequentialGroup()
                                    .addComponent(picFingerprint, javax.swing.GroupLayout.PREFERRED_SIZE, 250,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addGroup(jPanelBackgroundLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jPanelConsole, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jPanelLog, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(jPanelBackgroundLayout.createSequentialGroup().addComponent(lblStatus)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(btnFind)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnVerify)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnCancel)))
                    .addContainerGap()));
    jPanelBackgroundLayout.setVerticalGroup(jPanelBackgroundLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBackgroundLayout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanelBackgroundLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelBackgroundLayout.createSequentialGroup()
                                    .addComponent(jPanelConsole, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jPanelLog, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(picFingerprint, javax.swing.GroupLayout.PREFERRED_SIZE, 300,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                    .addGroup(jPanelBackgroundLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnCancel).addComponent(btnVerify).addComponent(lblStatus)
                            .addComponent(btnFind))
                    .addContainerGap()));

    btnFind.getAccessibleContext().setAccessibleName("Cargar Huellas");

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

    pack();
}

From source file:st.jigasoft.dbutil.view.DUReport.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 ww .  j a va  2 s . c o  m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    separatorTabelaGrafico = new javax.swing.JSplitPane();
    separatorGrafico = new javax.swing.JSplitPane();
    jPanel9 = new javax.swing.JPanel();
    panelGraficoTop = new javax.swing.JPanel();
    jPanel10 = new javax.swing.JPanel();
    choseGrafico = new st.jigasoft.dbutil.view.DUOptions<String>();
    panelGraficoButton = new javax.swing.JPanel();
    separatorTable = new javax.swing.JSplitPane();
    panelTable = new javax.swing.JPanel();
    table = new st.jigasoft.dbutil.view.FiterableTable();
    jPanel1 = new javax.swing.JPanel();
    btWindowsBtRigth = new javax.swing.JButton();
    btWindowsLeft = new javax.swing.JButton();
    panelCommands = new javax.swing.JPanel();
    dtEnd = new com.toedter.calendar.JDateChooser();
    dtStart = new com.toedter.calendar.JDateChooser();
    choseGroupData = new st.jigasoft.dbutil.view.DUOptions<String>();
    btFindItem = new javax.swing.JButton();
    txtItemDescrision = new st.jigasoft.dbutil.view.EditText();
    choseTopOptions = new st.jigasoft.dbutil.view.DUOptions<String>();
    panelFuter = new javax.swing.JPanel();
    choseExport = new st.jigasoft.dbutil.view.DUOptions();
    panelCuston = new javax.swing.JPanel();

    addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentResized(java.awt.event.ComponentEvent evt) {
            formComponentResized(evt);
        }
    });

    separatorTabelaGrafico.setDividerLocation(900);

    separatorGrafico.setDividerLocation(250);
    separatorGrafico.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

    javax.swing.GroupLayout panelGraficoTopLayout = new javax.swing.GroupLayout(panelGraficoTop);
    panelGraficoTop.setLayout(panelGraficoTopLayout);
    panelGraficoTopLayout.setHorizontalGroup(panelGraficoTopLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 213, Short.MAX_VALUE));
    panelGraficoTopLayout.setVerticalGroup(panelGraficoTopLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 383, Short.MAX_VALUE));

    javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
    jPanel9.setLayout(jPanel9Layout);
    jPanel9Layout.setHorizontalGroup(jPanel9Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(panelGraficoTop,
                    javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    jPanel9Layout.setVerticalGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelGraficoTop, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));

    separatorGrafico.setTopComponent(jPanel9);

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

    javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
    jPanel10.setLayout(jPanel10Layout);
    jPanel10Layout.setHorizontalGroup(jPanel10Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
            .addComponent(choseGrafico, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(panelGraficoButton, javax.swing.GroupLayout.Alignment.LEADING,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
    jPanel10Layout
            .setVerticalGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel10Layout.createSequentialGroup()
                                    .addComponent(panelGraficoButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(choseGrafico, javax.swing.GroupLayout.PREFERRED_SIZE, 38,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    separatorGrafico.setRightComponent(jPanel10);

    separatorTabelaGrafico.setRightComponent(separatorGrafico);

    separatorTable.setDividerLocation(500);
    separatorTable.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);

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

    btWindowsBtRigth.setFont(new java.awt.Font("DejaVu Sans", 1, 11)); // NOI18N
    btWindowsBtRigth.setForeground(new java.awt.Color(204, 0, 0));
    btWindowsBtRigth.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btWindowsBtRigthActionPerformed(evt);
        }
    });

    btWindowsLeft.setFont(new java.awt.Font("DejaVu Sans", 1, 11)); // NOI18N
    btWindowsLeft.setForeground(new java.awt.Color(204, 0, 0));
    btWindowsLeft.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btWindowsLeftActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel1Layout.createSequentialGroup()
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(btWindowsLeft, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btWindowsBtRigth, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btWindowsBtRigth, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btWindowsLeft, javax.swing.GroupLayout.PREFERRED_SIZE, 32,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    dtEnd.setDate(new Date());
    dtEnd.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            dtEndPropertyChange(evt);
        }
    });

    dtStart.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent evt) {
            dtStartPropertyChange(evt);
        }
    });

    btFindItem.setText("...");
    btFindItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btFindItemActionPerformed(evt);
        }
    });

    txtItemDescrision.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyReleased(java.awt.event.KeyEvent evt) {
            txtItemDescrisionKeyReleased(evt);
        }
    });

    javax.swing.GroupLayout panelCommandsLayout = new javax.swing.GroupLayout(panelCommands);
    panelCommands.setLayout(panelCommandsLayout);
    panelCommandsLayout.setHorizontalGroup(
            panelCommandsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelCommandsLayout.createSequentialGroup()
                            .addComponent(choseGroupData, javax.swing.GroupLayout.PREFERRED_SIZE, 175,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(dtStart, javax.swing.GroupLayout.PREFERRED_SIZE, 145,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(dtEnd, javax.swing.GroupLayout.PREFERRED_SIZE, 145,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(choseTopOptions, javax.swing.GroupLayout.PREFERRED_SIZE, 150,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtItemDescrision, javax.swing.GroupLayout.PREFERRED_SIZE, 194,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(btFindItem, javax.swing.GroupLayout.PREFERRED_SIZE, 46,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)));
    panelCommandsLayout.setVerticalGroup(panelCommandsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCommandsLayout.createSequentialGroup().addContainerGap().addGroup(panelCommandsLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dtStart, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(panelCommandsLayout.createSequentialGroup()
                            .addGroup(panelCommandsLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(btFindItem, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)
                                    .addComponent(choseTopOptions, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(dtEnd, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(txtItemDescrision, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(choseGroupData, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));

    javax.swing.GroupLayout panelTableLayout = new javax.swing.GroupLayout(panelTable);
    panelTable.setLayout(panelTableLayout);
    panelTableLayout.setHorizontalGroup(panelTableLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(table, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    panelTableLayout.createSequentialGroup().addContainerGap()
                            .addComponent(panelCommands, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addContainerGap())
            .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
    panelTableLayout.setVerticalGroup(panelTableLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelTableLayout.createSequentialGroup()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(panelCommands, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(table, javax.swing.GroupLayout.DEFAULT_SIZE, 301, Short.MAX_VALUE)));

    separatorTable.setTopComponent(panelTable);

    choseExport.setModoSelection(st.jigasoft.dbutil.view.DUOptions.ModoSelection.SAMPLES);

    javax.swing.GroupLayout panelCustonLayout = new javax.swing.GroupLayout(panelCuston);
    panelCuston.setLayout(panelCustonLayout);
    panelCustonLayout.setHorizontalGroup(panelCustonLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 621, Short.MAX_VALUE));
    panelCustonLayout.setVerticalGroup(panelCustonLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    javax.swing.GroupLayout panelFuterLayout = new javax.swing.GroupLayout(panelFuter);
    panelFuter.setLayout(panelFuterLayout);
    panelFuterLayout
            .setHorizontalGroup(panelFuterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            panelFuterLayout.createSequentialGroup()
                                    .addComponent(panelCuston, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(choseExport, javax.swing.GroupLayout.PREFERRED_SIZE, 270,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)));
    panelFuterLayout.setVerticalGroup(panelFuterLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelCuston, javax.swing.GroupLayout.Alignment.TRAILING,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    panelFuterLayout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addComponent(
                            choseExport, javax.swing.GroupLayout.PREFERRED_SIZE, 38,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    separatorTable.setRightComponent(panelFuter);

    separatorTabelaGrafico.setLeftComponent(separatorTable);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(separatorTabelaGrafico, javax.swing.GroupLayout.Alignment.TRAILING));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(separatorTabelaGrafico));
}

From source file:io.github.jeddict.jpa.modeler.properties.annotation.AnnotationPanel.java

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

    root_jLayeredPane = new javax.swing.JLayeredPane();
    action_jLayeredPane = new javax.swing.JLayeredPane();
    save_Button = new javax.swing.JButton();
    cancel_Button = new javax.swing.JButton();
    annotation_ScrollPane = new javax.swing.JScrollPane();
    annotation_EditorPane = new javax.swing.JEditorPane();
    dataType_Action = new javax.swing.JButton();
    scopeComboBox = new javax.swing.JComboBox();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

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

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

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

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

    annotation_ScrollPane.setPreferredSize(new java.awt.Dimension(400, 100));

    annotation_EditorPane.setContentType("text/x-java"); // NOI18N
    annotation_EditorPane.setAutoscrolls(false);
    annotation_EditorPane.setPreferredSize(new java.awt.Dimension(210, 23));
    annotation_ScrollPane.setViewportView(annotation_EditorPane);

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

    scopeComboBox.setToolTipText(org.openide.util.NbBundle.getMessage(AnnotationPanel.class,
            "AnnotationPanel.scopeComboBox.toolTipText")); // NOI18N

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

    javax.swing.GroupLayout root_jLayeredPaneLayout = new javax.swing.GroupLayout(root_jLayeredPane);
    root_jLayeredPane.setLayout(root_jLayeredPaneLayout);
    root_jLayeredPaneLayout.setHorizontalGroup(root_jLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(root_jLayeredPaneLayout.createSequentialGroup().addContainerGap()
                    .addGroup(root_jLayeredPaneLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(annotation_ScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(root_jLayeredPaneLayout.createSequentialGroup()
                                    .addComponent(dataType_Action, javax.swing.GroupLayout.PREFERRED_SIZE, 18,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(scopeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 131,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(action_jLayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            158, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    root_jLayeredPaneLayout.setVerticalGroup(root_jLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(root_jLayeredPaneLayout.createSequentialGroup().addContainerGap()
                    .addComponent(
                            annotation_ScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 162, Short.MAX_VALUE)
                    .addGap(12, 12, 12)
                    .addGroup(root_jLayeredPaneLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(action_jLayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(root_jLayeredPaneLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(dataType_Action, javax.swing.GroupLayout.PREFERRED_SIZE, 18,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(scopeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));

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

    pack();
}

From source file:hwcdhackwaterloo.GUIMain.java

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

    menuPanel = new javax.swing.JPanel();
    titleLabel = new javax.swing.JLabel();
    closeButton = new javax.swing.JButton();
    topPanel = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    roomChoice = new javax.swing.JComboBox();
    jLabel3 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    timeField = new javax.swing.JTextField();
    findButton = new javax.swing.JButton();
    monthChoice = new javax.swing.JComboBox();
    dayChoice = new javax.swing.JComboBox();
    jLabel6 = new javax.swing.JLabel();
    middlePanel = new javax.swing.JPanel();
    resultHeader = new javax.swing.JLabel();
    result = new javax.swing.JLabel();
    bottomPanel = new javax.swing.JPanel();
    jLabel4 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Fuck_Nuts");
    setBackground(new java.awt.Color(0, 0, 0));
    setForeground(java.awt.Color.pink);
    setUndecorated(true);
    setResizable(false);

    menuPanel.setBackground(new java.awt.Color(10, 10, 10));

    titleLabel.setBackground(new java.awt.Color(255, 255, 255));
    titleLabel.setFont(new java.awt.Font("DejaVu Sans Condensed", 0, 18)); // NOI18N
    titleLabel.setForeground(new java.awt.Color(230, 230, 230));
    titleLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    titleLabel.setText("WaterLOOKup");

    closeButton.setBackground(new java.awt.Color(0, 0, 0));
    closeButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/closeButtonAlt.png"))); // NOI18N
    closeButton.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            closeButtonMouseClicked(evt);
        }
    });

    javax.swing.GroupLayout menuPanelLayout = new javax.swing.GroupLayout(menuPanel);
    menuPanel.setLayout(menuPanelLayout);
    menuPanelLayout
            .setHorizontalGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(menuPanelLayout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(titleLabel).addGap(156, 156, 156).addComponent(closeButton,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)));
    menuPanelLayout.setVerticalGroup(menuPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(menuPanelLayout.createSequentialGroup()
                    .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(titleLabel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    menuPanelLayout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                            .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    29, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));

    topPanel.setBackground(new java.awt.Color(135, 0, 71));
    topPanel.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

    jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
    jLabel1.setForeground(new java.awt.Color(250, 250, 250));
    jLabel1.setText("SEARCH FOR AVAILABLE ROOMS");

    roomChoice.setBackground(new java.awt.Color(200, 50, 100));
    roomChoice.addItem("MC");

    roomChoice.addItemListener(new ItemListener() {
        Object state = new Object();
        //Object oldState = new Object();
        Object oldState = roomChoice.getSelectedItem();

        public void itemStateChanged(ItemEvent e) {

            state = e.getItem();
            if (state != oldState) {
                //System.out.println("changed to:"+ state);
                // code here to pass info to openroom.java
            }
            oldState = state;

        }
    });
    String json = getJSONData("/buildings/list");
    JSONObject obj = (JSONObject) JSONValue.parse(json);
    JSONArray courses = (JSONArray) obj.get("data");
    ArrayList<String> buildingNames = new ArrayList<>();
    for (Object course : courses) {
        JSONObject courseBlock = (JSONObject) course;
        buildingNames.add(courseBlock.get("building_code").toString());
    }
    Collections.sort(buildingNames);
    for (String buildingName : buildingNames) {
        roomChoice.addItem(buildingName);
    }

    jLabel3.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
    jLabel3.setForeground(new java.awt.Color(250, 250, 250));
    jLabel3.setText("WHAT'S DA CLOSEST BUILDIN TO YOU?");

    jLabel5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    jLabel5.setForeground(new java.awt.Color(250, 250, 250));
    jLabel5.setText("WHEN DO YOU WANT A ROOM, AND FOR HOW LONG?");

    timeField.setBackground(new java.awt.Color(255, 160, 202));
    timeField.setText("(minutes)");

    findButton.setBackground(new java.awt.Color(255, 170, 202));
    findButton.setText("FIND AVAILABLE ROOM!");
    Object comboBoxState = roomChoice.getSelectedItem();
    findButton.setActionCommand("FIND");
    //findButton.addActionListener(this);
    findButton.setToolTipText("Dooooo itttt!");

    //pubic void actionPerformed(ActionEvent e){
    //    if("FIND".equals(e.getActionCommand())){
    //        System.out.println("Press registered.");
    //    }
    //}
    findButton.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseReleased(java.awt.event.MouseEvent evt) {
            findButtonMouseReleased(evt);
        }
    });

    monthChoice.setBackground(new java.awt.Color(200, 50, 100));
    monthChoice.setModel(new javax.swing.DefaultComboBoxModel(
            new String[] { "<select month>", "January", "February", "March", "April", "May", "June", "July",
                    "August", "September", "October", "November", "December" }));
    monthChoice.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            monthChoiceItemStateChanged(evt);
        }
    });

    dayChoice.setBackground(new java.awt.Color(200, 50, 100));

    jLabel6.setForeground(new java.awt.Color(255, 255, 255));
    jLabel6.setText("DURATION:");

    javax.swing.GroupLayout topPanelLayout = new javax.swing.GroupLayout(topPanel);
    topPanel.setLayout(topPanelLayout);
    topPanelLayout.setHorizontalGroup(topPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(topPanelLayout.createSequentialGroup().addGroup(topPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(topPanelLayout.createSequentialGroup().addGap(34, 34, 34)
                            .addGroup(topPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel3)
                                    .addComponent(roomChoice, javax.swing.GroupLayout.PREFERRED_SIZE, 87,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel5)
                                    .addGroup(topPanelLayout.createSequentialGroup()
                                            .addComponent(monthChoice, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    122, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(dayChoice, javax.swing.GroupLayout.PREFERRED_SIZE, 55,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jLabel6)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(timeField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    108, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(topPanelLayout.createSequentialGroup().addGap(135, 135, 135).addComponent(
                            findButton, javax.swing.GroupLayout.PREFERRED_SIZE, 187,
                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(38, 38, 38))
            .addGroup(topPanelLayout.createSequentialGroup().addGap(93, 93, 93).addComponent(jLabel1)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    topPanelLayout.setVerticalGroup(topPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(topPanelLayout.createSequentialGroup()
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(roomChoice, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(timeField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(monthChoice, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dayChoice, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(findButton, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
                    .addContainerGap()));

    middlePanel.setBackground(new java.awt.Color(0, 129, 16));
    middlePanel.setForeground(new java.awt.Color(240, 240, 240));

    resultHeader.setFont(new java.awt.Font("Tahoma", 0, 18));
    resultHeader.setForeground(new java.awt.Color(250, 250, 250));

    result.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
    result.setForeground(new java.awt.Color(255, 255, 255));

    javax.swing.GroupLayout middlePanelLayout = new javax.swing.GroupLayout(middlePanel);
    middlePanel.setLayout(middlePanelLayout);
    middlePanelLayout.setHorizontalGroup(middlePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(middlePanelLayout.createSequentialGroup().addGap(84, 84, 84)
                    .addComponent(resultHeader, javax.swing.GroupLayout.PREFERRED_SIZE, 267,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(115, Short.MAX_VALUE))
            .addGroup(middlePanelLayout.createSequentialGroup().addContainerGap().addComponent(result,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()));
    middlePanelLayout.setVerticalGroup(middlePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(middlePanelLayout.createSequentialGroup()
                    .addComponent(resultHeader, javax.swing.GroupLayout.PREFERRED_SIZE, 27,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                    .addComponent(result, javax.swing.GroupLayout.PREFERRED_SIZE, 82,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(44, 44, 44)));

    bottomPanel.setBackground(new java.awt.Color(159, 238, 0));

    jLabel4.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
    jLabel4.setText("BY: KERI WARR, ANTHONY CALANDRA, DANIEL HOPPER, NEIL DE VRIES");

    javax.swing.GroupLayout bottomPanelLayout = new javax.swing.GroupLayout(bottomPanel);
    bottomPanel.setLayout(bottomPanelLayout);
    bottomPanelLayout
            .setHorizontalGroup(bottomPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            bottomPanelLayout.createSequentialGroup()
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 406,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap()));
    bottomPanelLayout.setVerticalGroup(
            bottomPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    bottomPanelLayout.createSequentialGroup().addGap(0, 132, Short.MAX_VALUE).addComponent(
                            jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(middlePanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(menuPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addComponent(bottomPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(topPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(menuPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(topPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(middlePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(bottomPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

    pack();
}

From source file:GroupLayoutTest.java

public FontFrame() {
    setTitle("GroupLayoutTest");
    setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);

    ActionListener listener = new FontAction();

    // construct components

    JLabel faceLabel = new JLabel("Face: ");

    face = new JComboBox(new String[] { "Serif", "SansSerif", "Monospaced", "Dialog", "DialogInput" });

    face.addActionListener(listener);/* ww w.  j a  v  a2s  .co  m*/

    JLabel sizeLabel = new JLabel("Size: ");

    size = new JComboBox(new String[] { "8", "10", "12", "15", "18", "24", "36", "48" });

    size.addActionListener(listener);

    bold = new JCheckBox("Bold");
    bold.addActionListener(listener);

    italic = new JCheckBox("Italic");
    italic.addActionListener(listener);

    sample = new JTextArea();
    sample.setText("The quick brown fox jumps over the lazy dog");
    sample.setEditable(false);
    sample.setLineWrap(true);
    sample.setBorder(BorderFactory.createEtchedBorder());

    pane = new JScrollPane(sample);

    GroupLayout layout = new GroupLayout(getContentPane());
    setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                            .addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addGroup(layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
                                            .addComponent(faceLabel).addComponent(sizeLabel))
                                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING, false)
                                            .addComponent(size).addComponent(face)))
                            .addComponent(italic).addComponent(bold))
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(pane)
                    .addContainerGap()));

    layout.linkSize(SwingConstants.HORIZONTAL, new java.awt.Component[] { face, size });

    layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout
            .createSequentialGroup().addContainerGap()
            .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(pane, GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                                    .addComponent(face).addComponent(faceLabel))
                            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                                    .addComponent(size).addComponent(sizeLabel))
                            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(italic, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(bold,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
            .addContainerGap()));
}

From source file:maltcms.ui.fileHandles.properties.wizards.PipelinePropertiesVisualPanel2.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*from  ww  w. j av  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();
    addPropertyButton = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jScrollPane2 = new javax.swing.JScrollPane();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();

    jLabel1.setText(org.openide.util.NbBundle.getMessage(PipelinePropertiesVisualPanel2.class,
            "PipelinePropertiesVisualPanel2.jLabel1.text")); // NOI18N

    addPropertyButton.setText(org.openide.util.NbBundle.getMessage(PipelinePropertiesVisualPanel2.class,
            "PipelinePropertiesVisualPanel2.addPropertyButton.text_1")); // NOI18N
    addPropertyButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addPropertyButtonActionPerformed(evt);
        }
    });

    jButton2.setText(org.openide.util.NbBundle.getMessage(PipelinePropertiesVisualPanel2.class,
            "PipelinePropertiesVisualPanel2.jButton2.text_1")); // NOI18N
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });

    jTable1.setModel(
            new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Title 1", "Title 2", "Title 3", "Title 4" }));
    jScrollPane1.setViewportView(jTable1);

    jScrollPane2.setViewportView(jScrollPane1);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel1)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jButton2, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)
                            .addComponent(addPropertyButton, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)))
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup().addComponent(jLabel1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(addPropertyButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButton2).addGap(0, 191, Short.MAX_VALUE)))
                    .addContainerGap()));
}

From source file:au.org.ala.delta.editor.ui.ActionSetsDialog.java

private void createUI() {
    setName("actionSetsDialog");

    tabbedPane = new JTabbedPane(JTabbedPane.TOP);
    getContentPane().add(tabbedPane, BorderLayout.CENTER);

    conforTable = new JTable();
    tabbedPane.addTab(_resources.getString("directiveTypeConfor.text"), new JScrollPane(conforTable));

    intkeyTable = new JTable();
    tabbedPane.addTab(_resources.getString("directiveTypeIntkey.text"), new JScrollPane(intkeyTable));

    distTable = new JTable();
    tabbedPane.addTab(_resources.getString("directiveTypeDist.text"), new JScrollPane(distTable));

    keyTable = new JTable();
    tabbedPane.addTab(_resources.getString("directiveTypeKey.text"), new JScrollPane(keyTable));

    JPanel buttonPanel = new JPanel();
    getContentPane().add(buttonPanel, BorderLayout.EAST);

    runButton = new JButton();

    addButton = new JButton();

    editButton = new JButton();

    deleteButton = new JButton();

    doneButton = new JButton();
    GroupLayout gl_buttonPanel = new GroupLayout(buttonPanel);
    gl_buttonPanel.setHorizontalGroup(gl_buttonPanel.createParallelGroup(Alignment.LEADING)
            .addComponent(runButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(addButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(editButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(deleteButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(doneButton, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    gl_buttonPanel.setVerticalGroup(gl_buttonPanel.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_buttonPanel.createSequentialGroup().addComponent(runButton).addComponent(addButton)
                    .addComponent(editButton).addComponent(deleteButton).addComponent(doneButton)));
    buttonPanel.setLayout(gl_buttonPanel);

    JPanel labelPanel = new JPanel();
    FlowLayout flowLayout = (FlowLayout) labelPanel.getLayout();
    flowLayout.setHgap(20);//from w w  w. ja v a  2 s  .  co  m
    flowLayout.setAlignment(FlowLayout.LEFT);
    getContentPane().add(labelPanel, BorderLayout.NORTH);

    JLabel actionSetLabel = new JLabel();
    actionSetLabel.setName("actionSetsActionSetsLabel");
    labelPanel.add(actionSetLabel);

    actionSetDetailsLabel = new JLabel("");
    labelPanel.add(actionSetDetailsLabel);
}

From source file:org.mongkie.ui.context.GroupsContextPanel.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 . c  o m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    groupsPiePanel = new javax.swing.JPanel();
    groupListScrollPane = new GroupListView();

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

    groupListScrollPane.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 45, 10, 45));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(groupListScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 290,
                                    Short.MAX_VALUE)
                            .addComponent(groupsPiePanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(groupsPiePanel, javax.swing.GroupLayout.PREFERRED_SIZE, 230,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(groupListScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 262,
                            Short.MAX_VALUE)
                    .addContainerGap()));
}