Example usage for javax.swing GroupLayout createSequentialGroup

List of usage examples for javax.swing GroupLayout createSequentialGroup

Introduction

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

Prototype

public SequentialGroup createSequentialGroup() 

Source Link

Document

Creates and returns a SequentialGroup .

Usage

From source file:com.dsdev.mupdate.MainForm.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.co  m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    popupDialog = new javax.swing.JDialog();
    popupDialogCaptionLabel = new javax.swing.JLabel();
    popupDialogOkButton = new javax.swing.JButton();
    popupDialogImageLabel = new javax.swing.JLabel();
    popupDialogYesButton = new javax.swing.JButton();
    UpdateLogoLabel = new javax.swing.JLabel();
    StatusBar = new javax.swing.JProgressBar();

    popupDialog.setMinimumSize(new java.awt.Dimension(505, 143));
    popupDialog.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
    popupDialog.setResizable(false);
    popupDialog.addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosed(java.awt.event.WindowEvent evt) {
            popupDialogWindowClosed(evt);
        }
    });

    popupDialogCaptionLabel.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

    popupDialogOkButton.setText("Ok");
    popupDialogOkButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            popupDialogOkButtonActionPerformed(evt);
        }
    });

    popupDialogYesButton.setText("Yes");
    popupDialogYesButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            popupDialogYesButtonActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout popupDialogLayout = new javax.swing.GroupLayout(popupDialog.getContentPane());
    popupDialog.getContentPane().setLayout(popupDialogLayout);
    popupDialogLayout.setHorizontalGroup(popupDialogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(popupDialogLayout.createSequentialGroup().addContainerGap().addGroup(popupDialogLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(popupDialogLayout.createSequentialGroup()
                            .addComponent(popupDialogImageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 65,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(popupDialogCaptionLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 410,
                                    Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            popupDialogLayout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addComponent(popupDialogYesButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(popupDialogOkButton, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            82, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    popupDialogLayout.setVerticalGroup(popupDialogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(popupDialogLayout.createSequentialGroup().addContainerGap()
                    .addGroup(popupDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    popupDialogLayout.createSequentialGroup().addGap(6, 6, 6).addComponent(
                                            popupDialogCaptionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 59,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(popupDialogImageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 65,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(9, 9, 9)
                    .addGroup(popupDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(popupDialogOkButton).addComponent(popupDialogYesButton))
                    .addContainerGap(35, Short.MAX_VALUE)));

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("MUpdate");
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowOpened(java.awt.event.WindowEvent evt) {
            formWindowOpened(evt);
        }
    });

    StatusBar.setIndeterminate(true);

    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(StatusBar, javax.swing.GroupLayout.DEFAULT_SIZE, 501, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup().addGap(143, 143, 143)
                            .addComponent(UpdateLogoLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 200,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(UpdateLogoLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 100,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(StatusBar, javax.swing.GroupLayout.PREFERRED_SIZE, 18,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
}

From source file:io.github.jeddict.jpa.modeler.properties.pkjoincolumn.PrimaryKeyJoinColumnPanel.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 va  2s .  co m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jLayeredPane1 = new javax.swing.JLayeredPane();
    name_LayeredPane = new javax.swing.JLayeredPane();
    name_Label = new javax.swing.JLabel();
    name_TextField = new javax.swing.JTextField();
    referencedColumnName_LayeredPane = new javax.swing.JLayeredPane();
    referencedColumnName_Label = new javax.swing.JLabel();
    referencedColumnName_TextField = new javax.swing.JTextField();
    columnDefinition_LayeredPane = new javax.swing.JLayeredPane();
    columnDefinition_Label = new javax.swing.JLabel();
    columnDefinition_ScrollPane = new javax.swing.JScrollPane();
    columnDefinition_TextArea = new javax.swing.JTextArea();
    jLayeredPane8 = new javax.swing.JLayeredPane();
    save_Button = new javax.swing.JButton();
    cancel_Button = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setPreferredSize(new java.awt.Dimension(576, 331));

    name_LayeredPane.setToolTipText(org.openide.util.NbBundle.getMessage(PrimaryKeyJoinColumnPanel.class,
            "PrimaryKeyJoinColumnPanel.name_LayeredPane.toolTipText")); // NOI18N
    name_LayeredPane.setPreferredSize(new java.awt.Dimension(170, 27));
    name_LayeredPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(name_Label, org.openide.util.NbBundle
            .getMessage(PrimaryKeyJoinColumnPanel.class, "PrimaryKeyJoinColumnPanel.name_Label.text")); // NOI18N
    name_Label.setPreferredSize(new java.awt.Dimension(90, 14));
    name_LayeredPane.add(name_Label, java.awt.BorderLayout.WEST);

    name_TextField.setText(org.openide.util.NbBundle.getMessage(PrimaryKeyJoinColumnPanel.class,
            "PrimaryKeyJoinColumnPanel.name_TextField.text")); // NOI18N
    name_TextField.setToolTipText(org.openide.util.NbBundle.getMessage(PrimaryKeyJoinColumnPanel.class,
            "PrimaryKeyJoinColumnPanel.name_TextField.toolTipText")); // NOI18N
    name_LayeredPane.add(name_TextField, java.awt.BorderLayout.CENTER);

    referencedColumnName_LayeredPane.setPreferredSize(new java.awt.Dimension(170, 27));
    referencedColumnName_LayeredPane.setLayout(new java.awt.BorderLayout());

    org.openide.awt.Mnemonics.setLocalizedText(referencedColumnName_Label, org.openide.util.NbBundle.getMessage(
            PrimaryKeyJoinColumnPanel.class, "PrimaryKeyJoinColumnPanel.referencedColumnName_Label.text")); // NOI18N
    referencedColumnName_Label.setPreferredSize(new java.awt.Dimension(90, 14));
    referencedColumnName_LayeredPane.add(referencedColumnName_Label, java.awt.BorderLayout.WEST);

    referencedColumnName_TextField.setText(org.openide.util.NbBundle.getMessage(PrimaryKeyJoinColumnPanel.class,
            "PrimaryKeyJoinColumnPanel.referencedColumnName_TextField.text")); // NOI18N
    referencedColumnName_LayeredPane.add(referencedColumnName_TextField, java.awt.BorderLayout.CENTER);

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

    org.openide.awt.Mnemonics.setLocalizedText(columnDefinition_Label, org.openide.util.NbBundle.getMessage(
            PrimaryKeyJoinColumnPanel.class, "PrimaryKeyJoinColumnPanel.columnDefinition_Label.text")); // NOI18N
    columnDefinition_Label.setPreferredSize(new java.awt.Dimension(90, 14));
    columnDefinition_LayeredPane.add(columnDefinition_Label, java.awt.BorderLayout.WEST);

    columnDefinition_TextArea.setColumns(20);
    columnDefinition_TextArea.setRows(5);
    columnDefinition_ScrollPane.setViewportView(columnDefinition_TextArea);

    columnDefinition_LayeredPane.add(columnDefinition_ScrollPane, java.awt.BorderLayout.CENTER);

    org.openide.awt.Mnemonics.setLocalizedText(save_Button, org.openide.util.NbBundle
            .getMessage(PrimaryKeyJoinColumnPanel.class, "PrimaryKeyJoinColumnPanel.save_Button.text")); // NOI18N
    save_Button.setToolTipText(org.openide.util.NbBundle.getMessage(PrimaryKeyJoinColumnPanel.class,
            "PrimaryKeyJoinColumnPanel.save_Button.toolTipText")); // NOI18N
    save_Button.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            save_ButtonActionPerformed(evt);
        }
    });
    jLayeredPane8.add(save_Button);
    save_Button.setBounds(20, 0, 70, 30);

    org.openide.awt.Mnemonics.setLocalizedText(cancel_Button, org.openide.util.NbBundle
            .getMessage(PrimaryKeyJoinColumnPanel.class, "PrimaryKeyJoinColumnPanel.cancel_Button.text")); // NOI18N
    cancel_Button.setToolTipText(org.openide.util.NbBundle.getMessage(PrimaryKeyJoinColumnPanel.class,
            "PrimaryKeyJoinColumnPanel.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);
        }
    });
    jLayeredPane8.add(cancel_Button);
    cancel_Button.setBounds(100, 0, 70, 30);

    jLayeredPane1.setLayer(name_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane1.setLayer(referencedColumnName_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane1.setLayer(columnDefinition_LayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLayeredPane1.setLayer(jLayeredPane8, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout jLayeredPane1Layout = new javax.swing.GroupLayout(jLayeredPane1);
    jLayeredPane1.setLayout(jLayeredPane1Layout);
    jLayeredPane1Layout.setHorizontalGroup(jLayeredPane1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPane1Layout.createSequentialGroup().addContainerGap().addGroup(jLayeredPane1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(name_LayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(referencedColumnName_LayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(columnDefinition_LayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 543,
                            Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jLayeredPane1Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                                    .addComponent(jLayeredPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 184,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    jLayeredPane1Layout.setVerticalGroup(jLayeredPane1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jLayeredPane1Layout.createSequentialGroup().addContainerGap()
                    .addComponent(name_LayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(referencedColumnName_LayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(columnDefinition_LayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, Short.MAX_VALUE).addComponent(jLayeredPane8,
                            javax.swing.GroupLayout.PREFERRED_SIZE, 34, 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(jLayeredPane1));
    layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLayeredPane1));

    pack();
}

From source file:gtaps2.GTASAGUI.java

@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jFileChooser1 = new javax.swing.JFileChooser();
    jOptionPane1 = new javax.swing.JOptionPane();
    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jTextField1 = new javax.swing.JTextField();
    jButton1 = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    jCheckBox1 = new javax.swing.JCheckBox();
    jCheckBox2 = new javax.swing.JCheckBox();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("GTA:SA PC2PS2 (+ Silent Patch)");
    setResizable(false);//from  w  w  w.  j  a va2s  .  c  o  m

    jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
    jPanel1.setFocusable(false);

    jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/splash.png"))); // NOI18N
    jLabel1.setText("jLabel1");

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel1,
                    javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));
    jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel1));

    jTextField1.setFocusable(false);

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

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

    jCheckBox1.setText("Silent ASI Loader 1.3 + Silent Patch 1.1");

    jCheckBox2.setText("SkyGFX PS2 Atmosphere");

    jButton2.setText("Patch Game");
    jButton2.setEnabled(false);
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });

    jButton3.setText("Clean and Fix");
    jButton3.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton3ActionPerformed(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)
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(jCheckBox1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jCheckBox2))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 228,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jCheckBox1).addComponent(jCheckBox2))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton2).addComponent(jButton3))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jTextArea1.setEditable(false);
    jTextArea1.setColumns(20);
    jTextArea1.setRows(5);
    jTextArea1.setText(
            "Silent API Loader + Silent Patch is developed by Silent and can be found at: http://www.gtagarage.com/mods/show.php?id=25368\nSkyGFX is developed by The Hero and can be found at: http://gtaforums.com/topic/750681-skygfx-ps2-graphics-for-pc/\n\nThis tool is developed by vegasss. This is just a simple way to install the essential modifications to get that nostalgic feeling of the old PS2 GTA:SA. I am not the author of the mods used in this tool.");
    jScrollPane1.setViewportView(jTextArea1);

    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()
                                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 108,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextField1))
                            .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(jScrollPane1))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.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)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton1).addComponent(jTextField1,
                                    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.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,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
}

From source file:gui.AddPerson.java

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

    jTextField1 = new javax.swing.JTextField();
    jTextField2 = new javax.swing.JTextField();
    jTextField3 = new javax.swing.JTextField();
    jTextField4 = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jTextField5 = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jPasswordField1 = new javax.swing.JPasswordField();
    jPasswordField2 = new javax.swing.JPasswordField();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    jTextField2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jTextField2ActionPerformed(evt);
        }
    });

    jLabel1.setText("Username:");

    jLabel2.setText("First Name:");

    jLabel3.setText("Last Name:");

    jLabel4.setText("Mobile Number");

    jLabel5.setText("E-Mail Address");

    jLabel6.setText("Password:");

    jLabel7.setText("Confirm Password:");

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

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

    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(101, Short.MAX_VALUE).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 90,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 75,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton1)).addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton2)
                            .addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jTextField5).addComponent(jTextField4)
                                    .addComponent(jTextField3).addComponent(jTextField2)
                                    .addComponent(jTextField1).addComponent(jPasswordField1)
                                    .addComponent(jPasswordField2, javax.swing.GroupLayout.PREFERRED_SIZE, 100,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(91, 91, 91)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(76, 76, 76)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jPasswordField2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton1).addComponent(jButton2))
                    .addGap(22, 22, 22)));

    pack();
}

From source file:io.github.jeddict.jpa.modeler.properties.custom.snippet.CustomSnippetPanel.java

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

    rootLayeredPane = new javax.swing.JLayeredPane();
    actionLayeredPane = new javax.swing.JLayeredPane();
    saveButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    customCodeScrollPane = new javax.swing.JScrollPane();
    customCodeEditorPane = new javax.swing.JEditorPane();
    scopeComboBox = new javax.swing.JComboBox();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

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

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

    actionLayeredPane.setLayer(saveButton, javax.swing.JLayeredPane.DEFAULT_LAYER);
    actionLayeredPane.setLayer(cancelButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout actionLayeredPaneLayout = new javax.swing.GroupLayout(actionLayeredPane);
    actionLayeredPane.setLayout(actionLayeredPaneLayout);
    actionLayeredPaneLayout.setHorizontalGroup(
            actionLayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(actionLayeredPaneLayout.createSequentialGroup()
                            .addComponent(saveButton, javax.swing.GroupLayout.PREFERRED_SIZE, 80,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(cancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    actionLayeredPaneLayout.setVerticalGroup(actionLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(actionLayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(saveButton).addComponent(cancelButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

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

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

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

    rootLayeredPane.setLayer(actionLayeredPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    rootLayeredPane.setLayer(customCodeScrollPane, javax.swing.JLayeredPane.DEFAULT_LAYER);
    rootLayeredPane.setLayer(scopeComboBox, javax.swing.JLayeredPane.DEFAULT_LAYER);

    javax.swing.GroupLayout rootLayeredPaneLayout = new javax.swing.GroupLayout(rootLayeredPane);
    rootLayeredPane.setLayout(rootLayeredPaneLayout);
    rootLayeredPaneLayout.setHorizontalGroup(rootLayeredPaneLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(rootLayeredPaneLayout.createSequentialGroup().addContainerGap()
                    .addGroup(rootLayeredPaneLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(customCodeScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 535,
                                    Short.MAX_VALUE)
                            .addGroup(rootLayeredPaneLayout.createSequentialGroup()
                                    .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(actionLayeredPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            159, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    rootLayeredPaneLayout.setVerticalGroup(
            rootLayeredPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(rootLayeredPaneLayout.createSequentialGroup().addContainerGap()
                            .addComponent(customCodeScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 227,
                                    Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(rootLayeredPaneLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(scopeComboBox, javax.swing.GroupLayout.Alignment.TRAILING,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(actionLayeredPane, javax.swing.GroupLayout.Alignment.TRAILING,
                                            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(rootLayeredPane));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(rootLayeredPane));

    pack();
}

From source file:graficos.Grafico1.java

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

    jLabel1 = new javax.swing.JLabel();
    l = new javax.swing.JRadioButton();
    b = new javax.swing.JRadioButton();
    t = new javax.swing.JRadioButton();
    Tabla = new javax.swing.JScrollPane();
    datos = new javax.swing.JTable();
    capas = new javax.swing.JLayeredPane();
    GraficoLinea = new javax.swing.JPanel();
    GraficoBarra = new javax.swing.JPanel();
    GraficoTorta = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jLabel1.setText("Tipo de Grafico: ");

    l.setText("Linea");
    l.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            lActionPerformed(evt);
        }
    });

    b.setText("Barras");
    b.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            bActionPerformed(evt);
        }
    });

    t.setText("Torta");
    t.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            tActionPerformed(evt);
        }
    });

    datos.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { null, null }, { null, null }, { null, null }, { null, null }, { null, null } },
            new String[] { "X", "Y" }) {
        Class[] types = new Class[] { java.lang.Float.class, java.lang.Float.class };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }
    });
    Tabla.setViewportView(datos);

    capas.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

    GraficoLinea.setBorder(new javax.swing.border.MatteBorder(null));

    javax.swing.GroupLayout GraficoLineaLayout = new javax.swing.GroupLayout(GraficoLinea);
    GraficoLinea.setLayout(GraficoLineaLayout);
    GraficoLineaLayout.setHorizontalGroup(GraficoLineaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 397, Short.MAX_VALUE));
    GraficoLineaLayout.setVerticalGroup(GraficoLineaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 423, Short.MAX_VALUE));

    GraficoBarra.setBorder(new javax.swing.border.MatteBorder(null));

    javax.swing.GroupLayout GraficoBarraLayout = new javax.swing.GroupLayout(GraficoBarra);
    GraficoBarra.setLayout(GraficoBarraLayout);
    GraficoBarraLayout.setHorizontalGroup(GraficoBarraLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 348, Short.MAX_VALUE));
    GraficoBarraLayout.setVerticalGroup(GraficoBarraLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 423, Short.MAX_VALUE));

    GraficoTorta.setBorder(new javax.swing.border.MatteBorder(null));

    javax.swing.GroupLayout GraficoTortaLayout = new javax.swing.GroupLayout(GraficoTorta);
    GraficoTorta.setLayout(GraficoTortaLayout);
    GraficoTortaLayout.setHorizontalGroup(GraficoTortaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 348, Short.MAX_VALUE));
    GraficoTortaLayout.setVerticalGroup(GraficoTortaLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 423, Short.MAX_VALUE));

    javax.swing.GroupLayout capasLayout = new javax.swing.GroupLayout(capas);
    capas.setLayout(capasLayout);
    capasLayout.setHorizontalGroup(capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(capasLayout.createSequentialGroup().addContainerGap()
                    .addComponent(GraficoLinea, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
            .addGroup(capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(capasLayout.createSequentialGroup().addContainerGap()
                            .addComponent(GraficoBarra, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addContainerGap()))
            .addGroup(
                    capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(capasLayout.createSequentialGroup().addContainerGap()
                                    .addComponent(GraficoTorta, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addContainerGap())));
    capasLayout.setVerticalGroup(capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(capasLayout.createSequentialGroup().addGap(25, 25, 25)
                    .addComponent(GraficoLinea, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
            .addGroup(capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(capasLayout.createSequentialGroup().addGap(15, 15, 15)
                            .addComponent(GraficoBarra, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(23, 23, 23)))
            .addGroup(
                    capasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(capasLayout.createSequentialGroup().addGap(25, 25, 25)
                                    .addComponent(GraficoTorta, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addContainerGap())));
    capas.setLayer(GraficoLinea, javax.swing.JLayeredPane.DEFAULT_LAYER);
    capas.setLayer(GraficoBarra, javax.swing.JLayeredPane.DEFAULT_LAYER);
    capas.setLayer(GraficoTorta, javax.swing.JLayeredPane.DEFAULT_LAYER);

    jButton1.setText("Graficar");
    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(39, 39, 39).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup().addComponent(l).addGap(18, 18, 18)
                                    .addComponent(b).addGap(18, 18, 18).addComponent(t))
                            .addComponent(jLabel1)
                            .addComponent(Tabla, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 173,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(32, 32, 32).addComponent(capas).addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(31, 31, 31).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(capas, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup().addComponent(jLabel1).addGap(34, 34, 34)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(l).addComponent(b).addComponent(t))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(Tabla, javax.swing.GroupLayout.PREFERRED_SIZE, 125,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18).addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    49, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(55, Short.MAX_VALUE)));

    pack();
}

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

    loginButton = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    usernameText = new javax.swing.JTextField();
    passwordText = new javax.swing.JPasswordField();
    jPanel1 = new javax.swing.JPanel();
    jLabel4 = new javax.swing.JLabel();
    passwordText.setEchoChar('*');

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("MoneyTree Trading Platform");

    loginButton.setText("Login");
    loginButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            loginButtonActionPerformed(evt);
        }
    });

    jLabel1.setText("Username:");

    jLabel2.setText("Password:");

    jLabel3.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
    jLabel3.setText("USER LOGIN");

    usernameText.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            usernameTextActionPerformed(evt);
        }
    });

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

    jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("logo.jpg")));

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 236, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                            .addComponent(jLabel4).addGap(0, 0, Short.MAX_VALUE))));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE)
                            .addComponent(jLabel4).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(jPanel1, 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.LEADING)
                            .addComponent(jLabel3)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout
                                            .createSequentialGroup()
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    195, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(loginButton))
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(layout.createSequentialGroup().addComponent(jLabel2)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(passwordText,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 170,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout
                                                    .createSequentialGroup().addComponent(jLabel1)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(usernameText,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 168,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(2, 2, 2)))
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    20, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addGroup(
                            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(
                                            layout.createSequentialGroup().addGap(38, 38, 38)
                                                    .addComponent(
                                                            jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            Short.MAX_VALUE))
                                    .addGroup(layout.createSequentialGroup().addGap(28, 28, 28)
                                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 47,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(26, 26, 26)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(jLabel1).addComponent(usernameText,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(23, 23, 23)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(jLabel2).addComponent(passwordText,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(27, 27, 27).addComponent(loginButton)))
                    .addContainerGap(27, Short.MAX_VALUE)));

    pack();
}

From source file:misc.DesktopDemo.java

/** Create and show components
 *//*from  ww w .  j  a  v a 2 s  . c  om*/
private void initComponents() {

    setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    setTitle("DesktopDemo");
    txtBrowserURI.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            onLaunchBrowser(null);
        }
    });

    btnLaunchBrowser.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            onLaunchBrowser(evt);
        }
    });

    txtMailTo.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            onLaunchMail(null);
        }
    });

    btnLaunchEmail.setText("Launch Mail");
    btnLaunchEmail.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            onLaunchMail(evt);
        }
    });

    txtFile.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            onLaunchDefaultApplication(null);
        }
    });

    rbOpen.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            onOpenAction(evt);
        }
    });

    rbEdit.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            onEditAction(evt);
        }
    });

    rbPrint.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            onPrintAction(evt);
        }
    });

    btnLaunchApplication.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            onLaunchDefaultApplication(evt);
        }
    });

    btnFile.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            onChooseFile(evt);
        }
    });

    Container conFrame = this.getContentPane();

    bgAppAction.add(rbOpen);
    bgAppAction.add(rbEdit);
    bgAppAction.add(rbPrint);

    // Components layouting

    GroupLayout layout = new GroupLayout(conFrame);
    conFrame.setLayout(layout);
    layout.setAutoCreateContainerGaps(true);
    layout.setAutoCreateGaps(true);

    GroupLayout.SequentialGroup majorHGroup = layout.createSequentialGroup();

    // Horizontal group

    GroupLayout.ParallelGroup lblHGroup = layout.createParallelGroup(GroupLayout.Alignment.LEADING);
    lblHGroup.addComponent(lblBrowserUri, GroupLayout.Alignment.TRAILING);
    lblHGroup.addComponent(lblMailRecipient, GroupLayout.Alignment.TRAILING);
    lblHGroup.addComponent(lblFile, GroupLayout.Alignment.TRAILING);

    GroupLayout.ParallelGroup txtFieldsHGroup = layout.createParallelGroup(GroupLayout.Alignment.LEADING);
    txtFieldsHGroup.addComponent(txtMailTo);
    txtFieldsHGroup.addComponent(txtBrowserURI);
    GroupLayout.SequentialGroup rbHGroup = layout.createSequentialGroup();
    rbHGroup.addComponent(rbOpen);
    rbHGroup.addComponent(rbEdit);
    rbHGroup.addComponent(rbPrint);
    txtFieldsHGroup.addGroup(rbHGroup);
    GroupLayout.SequentialGroup fileHGroup = layout.createSequentialGroup();
    fileHGroup.addComponent(txtFile);
    fileHGroup.addComponent(btnFile);
    txtFieldsHGroup.addGroup(fileHGroup);

    GroupLayout.ParallelGroup btnHGroup = layout.createParallelGroup(GroupLayout.Alignment.LEADING);
    btnHGroup.addComponent(btnLaunchBrowser);
    btnHGroup.addComponent(btnLaunchEmail);
    btnHGroup.addComponent(btnLaunchApplication);

    majorHGroup.addGroup(lblHGroup);
    majorHGroup.addGroup(txtFieldsHGroup);
    majorHGroup.addGroup(btnHGroup);

    layout.setHorizontalGroup(majorHGroup);

    // Vertical group

    GroupLayout.SequentialGroup majorVGroup = layout.createSequentialGroup();

    GroupLayout.ParallelGroup uriVGroup = layout.createParallelGroup(GroupLayout.Alignment.BASELINE);
    uriVGroup.addComponent(lblBrowserUri);
    uriVGroup.addComponent(txtBrowserURI);
    uriVGroup.addComponent(btnLaunchBrowser);

    GroupLayout.ParallelGroup mailVGroup = layout.createParallelGroup(GroupLayout.Alignment.BASELINE);
    mailVGroup.addComponent(lblMailRecipient);
    mailVGroup.addComponent(txtMailTo);
    mailVGroup.addComponent(btnLaunchEmail);

    GroupLayout.ParallelGroup rbVGroup = layout.createParallelGroup(GroupLayout.Alignment.BASELINE);
    rbVGroup.addComponent(rbOpen);
    rbVGroup.addComponent(rbEdit);
    rbVGroup.addComponent(rbPrint);

    GroupLayout.ParallelGroup fileVGroup = layout.createParallelGroup(GroupLayout.Alignment.BASELINE);
    fileVGroup.addComponent(lblFile);
    fileVGroup.addComponent(btnLaunchApplication);
    fileVGroup.addComponent(txtFile);
    fileVGroup.addComponent(btnFile);

    majorVGroup.addGroup(uriVGroup);
    majorVGroup.addGroup(mailVGroup);
    majorVGroup.addGroup(rbVGroup);
    majorVGroup.addGroup(fileVGroup);

    layout.setVerticalGroup(majorVGroup);

    pack();
}

From source file:estacionmeteorologica.main.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() {

    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jSpinnerdia = new javax.swing.JSpinner();
    jLabel2 = new javax.swing.JLabel();
    jTextFieldlitros = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    jTextFieldciudad = new javax.swing.JTextField();
    jButtonincluir = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextAreatexto = new javax.swing.JTextArea();
    jPanel2 = new javax.swing.JPanel();
    jButtoniniciar = new javax.swing.JButton();
    jButtonparar = new javax.swing.JButton();
    jButtonmas = new javax.swing.JButton();
    jButtonmenos = new javax.swing.JButton();
    jButtontormenta = new javax.swing.JButton();
    jLabel4 = new javax.swing.JLabel();
    jTextFieldintensidad = new javax.swing.JTextField();
    lluvia = new es.javiergarciescobedo.swing.pluviometro.Pluviometro();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

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

    jLabel1.setText("Da:");

    jLabel2.setText("Litros:");

    jLabel3.setText("Ciudad:");

    jButtonincluir.setText("Aadir");
    jButtonincluir.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonincluirActionPerformed(evt);
        }
    });

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

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jScrollPane1)
                    .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jSpinnerdia, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18).addComponent(jLabel2)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jTextFieldlitros, javax.swing.GroupLayout.PREFERRED_SIZE, 68,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel3)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextFieldciudad)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButtonincluir).addGap(0, 1, Short.MAX_VALUE)))
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel1)
                    .addComponent(jSpinnerdia, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2).addComponent(jTextFieldlitros,
                            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(jTextFieldciudad, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButtonincluir).addComponent(jLabel3))
                    .addGap(32, 32, 32).addComponent(jScrollPane1).addContainerGap()));

    jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));

    jButtoniniciar.setText("Iniciar");
    jButtoniniciar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtoniniciarActionPerformed(evt);
        }
    });

    jButtonparar.setText("Parar");
    jButtonparar.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonpararActionPerformed(evt);
        }
    });

    jButtonmas.setText("Ms");
    jButtonmas.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonmasActionPerformed(evt);
        }
    });

    jButtonmenos.setText("Menos");
    jButtonmenos.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonmenosActionPerformed(evt);
        }
    });

    jButtontormenta.setText("Tormenta Inmediata");
    jButtontormenta.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtontormentaActionPerformed(evt);
        }
    });

    jLabel4.setText("Intensidad:");

    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)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(lluvia, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jPanel2Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jButtonmenos, javax.swing.GroupLayout.DEFAULT_SIZE, 73,
                                            Short.MAX_VALUE)
                                    .addComponent(jButtonmas, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButtonparar, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButtoniniciar, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addComponent(jButtontormenta, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createSequentialGroup().addComponent(jLabel4).addGap(0, 0,
                            Short.MAX_VALUE))
                    .addComponent(jTextFieldintensidad)).addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addGap(21, 21, 21)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel2Layout.createSequentialGroup().addComponent(jButtoniniciar)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButtonparar)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButtonmas)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jButtonmenos))
                            .addComponent(lluvia, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(29, 29, 29).addComponent(jButtontormenta).addGap(18, 18, 18).addComponent(jLabel4)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(jTextFieldintensidad, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(28, 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(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)
                    .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(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))
                    .addContainerGap()));

    pack();
}

From source file:graphic.ihm.dialog.createperso.DialCreatePerso.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. ja va 2  s .co  m*/
 */
public void initComponents() {

    MessageResolver msgRes = new MessageResolver();
    group = new javax.swing.ButtonGroup();
    jPanel1 = new javax.swing.JPanel();
    jPanel5 = new javax.swing.JPanel();
    caracteristiques = new javax.swing.JLabel();
    caracteristiques2 = new javax.swing.JLabel();
    caracteristiques.setHorizontalAlignment(JLabel.CENTER);
    caracteristiques2.setHorizontalAlignment(JLabel.CENTER);
    jPanel6 = new javax.swing.JPanel();
    jPanel7 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    txtFieldNom = new javax.swing.JTextField();
    jPanel8 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    comboRace = new javax.swing.JComboBox();
    jPanel9 = new javax.swing.JPanel();
    jLabel3 = new javax.swing.JLabel();
    homme = new javax.swing.JRadioButton();
    femme = new javax.swing.JRadioButton();
    jPanel2 = new javax.swing.JPanel();
    jPanel3 = new javax.swing.JPanel();
    jButton1 = new javax.swing.JButton();
    jPanel4 = new javax.swing.JPanel();
    jButton2 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

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

    jPanel5.setLayout(new java.awt.GridLayout(1, 2));
    jPanel5.add(caracteristiques);
    jPanel5.add(caracteristiques2);

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

    jPanel6.setLayout(new java.awt.GridLayout(3, 2));
    jPanel6.add(new JPanel());
    jPanel6.add(new JPanel());
    jPanel7.setLayout(new java.awt.GridLayout(1, 2));

    jLabel1.setText("  " + msgRes.getValueFromCode("dial.create.nom"));
    jPanel7.add(jLabel1);
    jPanel7.add(txtFieldNom);

    jPanel6.add(jPanel7);

    jPanel8.setLayout(new java.awt.GridLayout(1, 2));

    jLabel2.setText("  " + msgRes.getValueFromCode("dial.create.race"));
    jPanel8.add(jLabel2);

    RaceProvider provider = new RaceProvider();
    String[] races = provider.getRaces();
    comboRace.setModel(new javax.swing.DefaultComboBoxModel(races));
    comboRace.addItemListener(new ItemListener() {
        public void itemStateChanged(ItemEvent e) {
            PersonneBO bo = new PersonneBO();
            Map<String, Integer> chargeCaracteristicsPerso = bo.chargeCaracteristicsPerso(getRace());
            setInfoCaracteristiques(chargeCaracteristicsPerso);
        }
    });
    jPanel8.add(comboRace);

    jPanel6.add(jPanel8);

    jPanel9.setLayout(new java.awt.GridLayout(1, 2));

    jLabel3.setText("  " + msgRes.getValueFromCode("dial.create.sexe"));
    jPanel9.add(jLabel3);

    homme.setText(msgRes.getValueFromCode("dial.create.sexe.homme"));
    group.add(homme);
    jPanel9.add(homme);

    femme.setText(msgRes.getValueFromCode("dial.create.sexe.femme"));
    group.add(femme);
    jPanel9.add(femme);

    jPanel6.add(jPanel9);
    jPanel1.add(jPanel6, java.awt.BorderLayout.NORTH);

    getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);

    jPanel2.setLayout(new java.awt.GridLayout(1, 2));

    jButton1.setText(msgRes.getValueFromCode("dial.create.btn.create"));
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            createActionPerformed(evt);
        }

    });

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout
            .setHorizontalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup().addGap(100, 100, 100).addComponent(jButton1)
                            .addContainerGap(113, Short.MAX_VALUE)));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup().addGap(15, 15, 15).addComponent(jButton1)
                    .addContainerGap(41, Short.MAX_VALUE)));

    jPanel2.add(jPanel3);

    jButton2.setText(msgRes.getValueFromCode("dial.create.btn.cancel"));
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelActionPerformed(evt);
        }
    });
    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(jPanel4Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                    .addContainerGap(110, Short.MAX_VALUE).addComponent(jButton2).addGap(100, 100, 100)));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup().addGap(15, 15, 15).addComponent(jButton2)
                    .addContainerGap(43, Short.MAX_VALUE)));

    jPanel2.add(jPanel4);

    jPanel2.setPreferredSize(new Dimension(400, 50));
    getContentPane().add(jPanel2, java.awt.BorderLayout.SOUTH);

    pack();
}