Example usage for javax.swing GroupLayout DEFAULT_SIZE

List of usage examples for javax.swing GroupLayout DEFAULT_SIZE

Introduction

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

Prototype

int DEFAULT_SIZE

To view the source code for javax.swing GroupLayout DEFAULT_SIZE.

Click Source Link

Document

Indicates the size from the component or gap should be used for a particular range value.

Usage

From source file:FormularioGuardarEstudio.java

@SuppressWarnings({ "unchecked", "rawtypes" })
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - verdura henrion
    label1 = new JLabel();
    pacientesCombo = new JComboBox(obtenerPacientes().toArray());
    label2 = new JLabel();
    label3 = new JLabel();
    label4 = new JLabel();
    label5 = new JLabel();
    nombreEstudio = new JTextField();
    scrollPane1 = new JScrollPane();
    descripcion = new JTextArea();
    descripcion.setLineWrap(true);//  w w w  . ja va2s . c om
    descripcion.setWrapStyleWord(true);
    notas = new JTextArea();
    notas.setLineWrap(true);
    notas.setWrapStyleWord(true);
    button1 = new JButton();
    mensajeRespuesta = new JLabel();

    //======== this ========
    setTitle("Guardar Estudio");
    Container contentPane = getContentPane();

    //---- label1 ----
    label1.setText("Paciente:");
    label1.setFont(new Font("Calibri", Font.BOLD, 14));

    //---- label2 ----
    label2.setText("Datos del Estudio");
    label2.setFont(new Font("Calibri", Font.BOLD, 14));

    //---- label3 ----
    label3.setText("Nombre Del Estudio:");

    //---- label4 ----
    label4.setText("Descripci\u00f3n:");

    //---- label5 ----
    label5.setText("Notas:");

    //======== scrollPane1 ========
    {
        scrollPane1.setViewportView(descripcion);
    }

    //---- button1 ----
    button1.setText("Guardar Estudio");
    button1.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            clickGuardarEstudio(e);
        }
    });

    //---- mensajeRespuesta ----
    mensajeRespuesta.setText("_");
    mensajeRespuesta.setHorizontalAlignment(SwingConstants.CENTER);

    GroupLayout contentPaneLayout = new GroupLayout(contentPane);
    contentPane.setLayout(contentPaneLayout);
    contentPaneLayout.setHorizontalGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout
            .createSequentialGroup()
            .addGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout.createSequentialGroup()
                    .addContainerGap().addGroup(contentPaneLayout.createParallelGroup().addComponent(label4)
                            .addComponent(label1, GroupLayout.PREFERRED_SIZE, 85, GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                    pacientesCombo, GroupLayout.PREFERRED_SIZE, 73, GroupLayout.PREFERRED_SIZE)
                            .addComponent(label2)
                            .addGroup(contentPaneLayout.createSequentialGroup().addComponent(label3)
                                    .addGap(18, 18, 18).addComponent(nombreEstudio, GroupLayout.PREFERRED_SIZE,
                                            140, GroupLayout.PREFERRED_SIZE))
                            .addGroup(contentPaneLayout.createSequentialGroup().addComponent(label5)
                                    .addGroup(contentPaneLayout.createParallelGroup().addGroup(contentPaneLayout
                                            .createSequentialGroup().addGap(83, 83, 83)
                                            .addGroup(contentPaneLayout
                                                    .createParallelGroup(GroupLayout.Alignment.LEADING, false)
                                                    .addComponent(scrollPane1, GroupLayout.DEFAULT_SIZE, 256,
                                                            Short.MAX_VALUE)
                                                    .addComponent(notas, GroupLayout.DEFAULT_SIZE, 256,
                                                            Short.MAX_VALUE)))
                                            .addGroup(contentPaneLayout.createSequentialGroup()
                                                    .addGap(48, 48, 48).addComponent(mensajeRespuesta,
                                                            GroupLayout.PREFERRED_SIZE, 215,
                                                            GroupLayout.PREFERRED_SIZE))))))
                    .addGroup(contentPaneLayout.createSequentialGroup().addGap(142, 142, 142)
                            .addComponent(button1)))
            .addContainerGap(18, Short.MAX_VALUE)));
    contentPaneLayout.setVerticalGroup(contentPaneLayout.createParallelGroup()
            .addGroup(contentPaneLayout.createSequentialGroup().addContainerGap()
                    .addComponent(label1, GroupLayout.PREFERRED_SIZE, 23, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(pacientesCombo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18).addComponent(label2).addGap(18, 18, 18)
                    .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                            .addComponent(label3).addComponent(nombreEstudio, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(contentPaneLayout.createParallelGroup().addComponent(label4).addComponent(
                            scrollPane1, GroupLayout.PREFERRED_SIZE, 78, GroupLayout.PREFERRED_SIZE))
                    .addGap(11, 11, 11)
                    .addGroup(contentPaneLayout.createParallelGroup().addComponent(label5).addComponent(notas,
                            GroupLayout.PREFERRED_SIZE, 76, GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(mensajeRespuesta, GroupLayout.DEFAULT_SIZE, 17, Short.MAX_VALUE)
                    .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(button1)
                    .addContainerGap()));
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:ca.sfu.federation.viewer.propertysheet.LinePropertySheet.java

/**
 * ParametricModelSheet constructor./*from   w w w.  j  a  va  2s  . c o m*/
 */
public LinePropertySheet() {
    lblINamedObject = new JLabel();
    lblName = new JLabel();
    lblDescription = new JLabel();
    jtfClass = new JTextField();
    jtfName = new JTextField();
    jtfCanonicalName = new JTextField();
    lblCanonicalName = new JLabel();
    lblClass = new JLabel();
    jtfDescription = new JTextField();
    lblParentContext = new JLabel();
    jtfParentContext = new JTextField();
    lblStartPoint = new JLabel();
    lblMidPoint = new JLabel();
    lblEndPoint = new JLabel();
    jtfStartPoint = new JTextField();
    jtfMidPoint = new JTextField();
    jtfEndPoint = new JTextField();
    lblUpdateMethod = new JLabel();
    jcbUpdateMethod = new JComboBox();
    jspUpdateMethodInputs = new JPanel();
    lblLength = new JLabel();
    jtfLength = new JTextField();
    lblDirection = new javax.swing.JLabel();
    jtfDirection = new javax.swing.JTextField();

    lblINamedObject.setFont(new java.awt.Font("Tahoma", 0, 14));
    lblINamedObject.setText("jLabel1");
    lblName.setText("Name");
    lblDescription.setText("Description");
    lblCanonicalName.setText("Canonical Name");
    lblClass.setText("Class");
    lblParentContext.setText("Parent Context");
    lblStartPoint.setText("StartPoint");
    lblMidPoint.setText("MidPoint");
    lblEndPoint.setText("EndPoint");
    lblUpdateMethod.setText("Update Method");
    lblLength.setText("Length");
    lblDirection.setText("Direction");

    jtfClass.setEditable(false);
    jtfCanonicalName.setEditable(false);
    jtfParentContext.setEditable(false);
    jtfStartPoint.setEditable(false);
    jtfMidPoint.setEditable(false);
    jtfEndPoint.setEditable(false);
    jtfLength.setEditable(false);
    jtfDirection.setEditable(false);

    jspUpdateMethodInputs.setLayout(new BorderLayout());
    jspUpdateMethodInputs.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING).add(layout
            .createSequentialGroup().addContainerGap()
            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jspUpdateMethodInputs,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 301, Short.MAX_VALUE)
                    .add(lblINamedObject)
                    .add(layout.createSequentialGroup()
                            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(lblCanonicalName).add(lblClass).add(lblName).add(lblDescription)
                                    .add(lblParentContext).add(lblStartPoint).add(lblEndPoint).add(lblMidPoint)
                                    .add(lblDirection).add(lblLength))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jtfName, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                            Short.MAX_VALUE)
                                    .add(jtfClass, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                            Short.MAX_VALUE)
                                    .add(jtfDescription, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                            Short.MAX_VALUE)
                                    .add(org.jdesktop.layout.GroupLayout.TRAILING,
                                            layout.createSequentialGroup()
                                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                                    .add(jtfCanonicalName,
                                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                                            Short.MAX_VALUE))
                                    .add(jtfParentContext, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                            Short.MAX_VALUE)
                                    .add(jtfStartPoint, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                            Short.MAX_VALUE)
                                    .add(jtfMidPoint, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                            Short.MAX_VALUE)
                                    .add(jtfEndPoint, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                            Short.MAX_VALUE)
                                    .add(jtfLength, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                            Short.MAX_VALUE)
                                    .add(jtfDirection, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221,
                                            Short.MAX_VALUE)))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                            .add(lblUpdateMethod).add(6, 6, 6).add(jcbUpdateMethod, 0, 221, Short.MAX_VALUE)))
            .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup().addContainerGap().add(lblINamedObject)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jtfClass, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lblClass))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jtfName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lblName))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(lblCanonicalName)
                            .add(jtfCanonicalName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(lblDescription).add(jtfDescription,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lblParentContext)
                            .add(jtfParentContext, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE).add(lblStartPoint)
                            .add(jtfStartPoint, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jtfMidPoint, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lblMidPoint))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jtfEndPoint, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lblEndPoint))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jtfLength, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lblLength))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jtfDirection, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lblDirection))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jcbUpdateMethod, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lblUpdateMethod))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(jspUpdateMethodInputs,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 242, Short.MAX_VALUE)
                    .addContainerGap()));

    // disable non editable fields
    this.jtfCanonicalName.setEditable(false);
    this.jtfClass.setEditable(false);
    this.jtfParentContext.setEditable(false);

    // set field values
    this.setValues();

    // set action listeners
    jtfName.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jtfNameActionListener(evt);
        }
    });
    jtfDescription.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jtfDescriptionActionListener(evt);
        }
    });
    jcbUpdateMethod.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jcbUpdateMethodActionListener(evt);
        }
    });

}

From source file:de.tor.tribes.ui.windows.DSWorkbenchSplashScreen.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 av a 2 s .co  m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">                          
private void initComponents() {

    jProfileDialog = new javax.swing.JDialog();
    jScrollPane2 = new javax.swing.JScrollPane();
    jTree1 = new javax.swing.JTree();
    jButton1 = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    jStatusOutput = new javax.swing.JProgressBar();

    jProfileDialog.setTitle("Profile");
    jProfileDialog.setModal(true);
    jProfileDialog.setUndecorated(true);

    jScrollPane2.setViewportView(jTree1);

    jButton1.setBackground(new java.awt.Color(239, 235, 223));
    jButton1.setText("Profil auswhlen");
    jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
        @Override
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            fireSelectAccountEvent(evt);
        }
    });

    javax.swing.GroupLayout jProfileDialogLayout = new javax.swing.GroupLayout(jProfileDialog.getContentPane());
    jProfileDialog.getContentPane().setLayout(jProfileDialogLayout);
    jProfileDialogLayout.setHorizontalGroup(
            jProfileDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jProfileDialogLayout.createSequentialGroup().addContainerGap()
                            .addGroup(jProfileDialogLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 380,
                                            Short.MAX_VALUE)
                                    .addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING))
                            .addContainerGap()));
    jProfileDialogLayout.setVerticalGroup(jProfileDialogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jProfileDialogLayout.createSequentialGroup().addContainerGap()
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 187,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18).addComponent(jButton1)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

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

    jLabel1.setMaximumSize(new java.awt.Dimension(516, 250));
    jLabel1.setMinimumSize(new java.awt.Dimension(516, 250));
    jLabel1.setPreferredSize(new java.awt.Dimension(516, 250));
    getContentPane().add(jLabel1, java.awt.BorderLayout.CENTER);

    jStatusOutput.setIndeterminate(true);
    jStatusOutput.setMinimumSize(new java.awt.Dimension(10, 20));
    jStatusOutput.setPreferredSize(new java.awt.Dimension(146, 20));
    jStatusOutput.setString("Lade Einstellungen...");
    jStatusOutput.setStringPainted(true);
    getContentPane().add(jStatusOutput, java.awt.BorderLayout.SOUTH);

    pack();
}

From source file:pl.piotrsukiennik.jbrain.gui.JBrainMainFrame.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() {

    bottomDescription = new javax.swing.JLabel();
    leftColumnMenu = new javax.swing.JTree();
    mainPanel = new javax.swing.JPanel();
    mainMenuBar = new javax.swing.JMenuBar();
    fileMenu = new javax.swing.JMenu();
    newMenuItem = new javax.swing.JMenuItem();
    openMenuItem = new javax.swing.JMenuItem();
    jSeparator1 = new javax.swing.JPopupMenu.Separator();
    saveMenuItem = new javax.swing.JMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("JBrain Manager");

    bottomDescription.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    bottomDescription.setText("Piotr Sukiennik @ PJIIT 2014");

    javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("options");
    javax.swing.tree.DefaultMutableTreeNode treeNode2 = new javax.swing.tree.DefaultMutableTreeNode("model");
    treeNode1.add(treeNode2);
    treeNode2 = new javax.swing.tree.DefaultMutableTreeNode("simulations");
    javax.swing.tree.DefaultMutableTreeNode treeNode3 = new javax.swing.tree.DefaultMutableTreeNode(
            "new simulation");
    treeNode2.add(treeNode3);
    treeNode3 = new javax.swing.tree.DefaultMutableTreeNode("history");
    treeNode2.add(treeNode3);
    treeNode1.add(treeNode2);
    leftColumnMenu.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));
    leftColumnMenu.setRootVisible(false);
    leftColumnMenu.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
        public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {
            leftColumnMenuValueChanged(evt);
        }
    });

    mainPanel.setBackground(new java.awt.Color(255, 255, 255));
    mainPanel.setLayout(new java.awt.CardLayout());

    fileMenu.setText("File");

    newMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N,
            java.awt.event.InputEvent.CTRL_MASK));
    newMenuItem.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/pl/piotrsukiennik/jbrain/gui/icons/file-2x.png"))); // NOI18N
    newMenuItem.setText("New");
    newMenuItem.setEnabled(false);
    newMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            newMenuItemActionPerformed(evt);
        }
    });
    fileMenu.add(newMenuItem);

    openMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O,
            java.awt.event.InputEvent.CTRL_MASK));
    openMenuItem.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/pl/piotrsukiennik/jbrain/gui/icons/folder-2x.png"))); // NOI18N
    openMenuItem.setText("Open");
    openMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            openMenuItemActionPerformed(evt);
        }
    });
    fileMenu.add(openMenuItem);
    fileMenu.add(jSeparator1);

    saveMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S,
            java.awt.event.InputEvent.CTRL_MASK));
    saveMenuItem.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/pl/piotrsukiennik/jbrain/gui/icons/data-transfer-download-2x.png"))); // NOI18N
    saveMenuItem.setText("Save");
    saveMenuItem.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            saveMenuItemActionPerformed(evt);
        }
    });
    fileMenu.add(saveMenuItem);

    mainMenuBar.add(fileMenu);

    setJMenuBar(mainMenuBar);

    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(leftColumnMenu, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
            .addComponent(bottomDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 721, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(leftColumnMenu, javax.swing.GroupLayout.DEFAULT_SIZE, 360,
                                    Short.MAX_VALUE)
                            .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(bottomDescription, javax.swing.GroupLayout.PREFERRED_SIZE, 22,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    pack();
}

From source file:org.mahasen.client.gui.Property.java

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

    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    addCustomPropertyNameTextField = new javax.swing.JTextField();
    addCustomPropertValueTextField = new javax.swing.JTextField();
    addAnotherProepertyButton = new javax.swing.JButton();
    addCustomProeprtyOkButton = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    addedPropertTablePanel = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    addedPropertyTable = new javax.swing.JTable();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Custom Property");

    jLabel1.setText("Name");

    jLabel2.setText("Value");

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

    addAnotherProepertyButton.setText("Add Another");
    addAnotherProepertyButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addAnotherProepertyButtonActionPerformed(evt);
        }
    });

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

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

    addedPropertyTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] { "Property Name", "Property Value" }) {
        Class[] types = new Class[] { java.lang.String.class, java.lang.String.class };
        boolean[] canEdit = new boolean[] { false, false };

        public Class getColumnClass(int columnIndex) {
            return types[columnIndex];
        }

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jScrollPane1.setViewportView(addedPropertyTable);
    addedPropertyTable.getColumnModel().getColumn(0).setResizable(false);
    addedPropertyTable.getColumnModel().getColumn(1).setResizable(false);

    javax.swing.GroupLayout addedPropertTablePanelLayout = new javax.swing.GroupLayout(addedPropertTablePanel);
    addedPropertTablePanel.setLayout(addedPropertTablePanelLayout);
    addedPropertTablePanelLayout.setHorizontalGroup(
            addedPropertTablePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(addedPropertTablePanelLayout.createSequentialGroup().addContainerGap()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 363,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(20, Short.MAX_VALUE)));
    addedPropertTablePanelLayout.setVerticalGroup(
            addedPropertTablePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(addedPropertTablePanelLayout.createSequentialGroup().addContainerGap()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 100,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(95, 95, 95).addComponent(addAnotherProepertyButton)
                    .addGap(26, 26, 26)
                    .addComponent(addCustomProeprtyOkButton, javax.swing.GroupLayout.PREFERRED_SIZE, 75,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 84,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(54, Short.MAX_VALUE))
            .addGroup(
                    javax.swing.GroupLayout.Alignment.TRAILING,
                    layout.createSequentialGroup().addGap(44, 44, 44)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel1).addComponent(addCustomPropertyNameTextField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 181,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34,
                                    Short.MAX_VALUE)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(addCustomPropertValueTextField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 154,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createSequentialGroup().addGap(8, 8, 8)
                                            .addComponent(jLabel2)))
                            .addGap(29, 29, 29))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(35, Short.MAX_VALUE)
                    .addComponent(addedPropertTablePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(33, 33, 33)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(jLabel2))
                    .addGap(28, 28, 28)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(addCustomPropertyNameTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(addCustomPropertValueTextField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(addedPropertTablePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(addAnotherProepertyButton).addComponent(addCustomProeprtyOkButton)
                            .addComponent(jButton3))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

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

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

    inputLabel = new javax.swing.JLabel();
    fileNameField = new javax.swing.JTextField();
    fileDialogBtn = new javax.swing.JButton();
    processBtn = new javax.swing.JButton();
    progressBar = new javax.swing.JProgressBar();
    jScrollPane1 = new javax.swing.JScrollPane();
    logPane = new javax.swing.JTextPane();
    titleLabel = new javax.swing.JLabel();
    jLabel1 = new javax.swing.JLabel();
    minQualField = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    maxNCField = new javax.swing.JTextField();

    inputLabel.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    inputLabel.setLabelFor(inputLabel);
    inputLabel.setText("Input");

    fileNameField.setName("fileName"); // NOI18N

    fileDialogBtn.setText("...");
    fileDialogBtn.setName("fileDialogButton"); // NOI18N
    fileDialogBtn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            fileDialogBtnActionPerformed(evt);
        }
    });

    processBtn.setFont(new java.awt.Font("Ubuntu", 1, 24)); // NOI18N
    processBtn.setText("Process");
    processBtn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            processBtnActionPerformed(evt);
        }
    });

    logPane.setEditable(false);
    logPane.setText("Select the ZIP file with the VCF's and then click in Process \nto create the matrix.\n");
    jScrollPane1.setViewportView(logPane);

    titleLabel.setFont(new java.awt.Font("Ubuntu", 0, 24)); // NOI18N
    titleLabel.setText("Licorice 1.6 (blue sapphire)");

    jLabel1.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    jLabel1.setText("Min. Quality");

    minQualField.setText("30");
    minQualField.setToolTipText("Minimum Variant Quality");

    jLabel2.setFont(new java.awt.Font("Ubuntu", 1, 15)); // NOI18N
    jLabel2.setText("Maximum Nocall Rate");

    maxNCField.setText("0.95");
    maxNCField.setToolTipText("Minimum Variant Quality");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGap(32, 32, 32).addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1143,
                                    Short.MAX_VALUE)
                            .addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup().addComponent(inputLabel).addGap(57, 57, 57)
                                    .addComponent(fileNameField)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(fileDialogBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 65,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup().addGroup(layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(titleLabel)
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel1).addComponent(jLabel2)).addGap(79, 79, 79)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(maxNCField,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 56,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addComponent(minQualField,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 56,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))))
                                    .addGap(0, 0, Short.MAX_VALUE))))
                    .addGroup(layout.createSequentialGroup().addGap(466, 466, 466)
                            .addComponent(processBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 213,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(15, 15, 15).addComponent(titleLabel)
                    .addGap(12, 12, 12)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(fileNameField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(fileDialogBtn).addComponent(inputLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(minQualField,
                                    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(jLabel2).addComponent(maxNCField,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                    .addComponent(processBtn)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18).addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 558,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
}

From source file:com.cactus.ClientRegisterGUI.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  . jav  a  2  s  .  c o  m
 */

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

    this.pack();
    this.setLocationRelativeTo(null);

    Username_TextField = new JTextField();
    Email_TextField = new JTextField();
    Email_Confirm_TextField = new JTextField();
    Password_TextField = new JPasswordField();
    Confirm_Password_TextField = new JPasswordField();
    Username_Label = new JLabel();
    Email_Label = new JLabel();
    Email_Confirm_Label = new JLabel();
    Password_Label = new JLabel();
    Confirm_Password_Label = new JLabel();
    Register_Button = new JButton();
    Cancel_Button = new JButton();

    setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

    Email_TextField.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            Email_TextFieldActionPerformed(evt);
        }
    });

    Username_Label.setText("Username:");
    Email_Label.setText("Email:");
    Email_Confirm_Label.setText("Confirm Email:");
    Password_Label.setText("Password:");
    Confirm_Password_Label.setText("Confirm Password:");

    Register_Button.setText("Register");
    Register_Button.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            try {
                Register_ButtonActionPerformed(evt);
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    });

    Cancel_Button.setText("Cancel");
    Cancel_Button.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            try {
                Cancel_ButtonActionPerformed(evt);
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    });

    javax.swing.GroupLayout layout = new GroupLayout(getContentPane());
    layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout
            .createSequentialGroup().addGap(67)
            .addGroup(layout.createParallelGroup(Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addComponent(Confirm_Password_Label)
                            .addContainerGap())
                    .addGroup(layout.createParallelGroup(Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup().addComponent(Email_Confirm_Label)
                                    .addContainerGap())
                            .addGroup(layout.createParallelGroup(Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addComponent(Email_Label)
                                            .addContainerGap())
                                    .addGroup(layout.createSequentialGroup().addComponent(Password_Label)
                                            .addContainerGap())
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(Alignment.LEADING)
                                            .addComponent(Password_TextField, GroupLayout.DEFAULT_SIZE, 250,
                                                    Short.MAX_VALUE)
                                            .addComponent(Confirm_Password_TextField, GroupLayout.DEFAULT_SIZE,
                                                    250, Short.MAX_VALUE)
                                            .addGroup(layout.createSequentialGroup().addComponent(Cancel_Button)
                                                    .addPreferredGap(ComponentPlacement.RELATED, 112,
                                                            Short.MAX_VALUE)
                                                    .addComponent(Register_Button))
                                            .addComponent(Username_Label)
                                            .addComponent(Username_TextField, 250, 250, Short.MAX_VALUE)
                                            .addComponent(Email_TextField, GroupLayout.DEFAULT_SIZE, 250,
                                                    Short.MAX_VALUE)
                                            .addComponent(Email_Confirm_TextField, GroupLayout.DEFAULT_SIZE,
                                                    250, Short.MAX_VALUE))
                                            .addGap(83)))))));
    layout.setVerticalGroup(layout.createParallelGroup(Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(Username_Label)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(Username_TextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(ComponentPlacement.UNRELATED).addComponent(Email_Label)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(Email_TextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(ComponentPlacement.UNRELATED).addComponent(Email_Confirm_Label).addGap(10)
                    .addComponent(Email_Confirm_TextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(ComponentPlacement.RELATED).addComponent(Password_Label)
                    .addPreferredGap(ComponentPlacement.UNRELATED)
                    .addComponent(Password_TextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(ComponentPlacement.UNRELATED).addComponent(Confirm_Password_Label)
                    .addGap(11)
                    .addComponent(Confirm_Password_TextField, GroupLayout.PREFERRED_SIZE,
                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addGap(18).addGroup(layout.createParallelGroup(Alignment.BASELINE)
                            .addComponent(Cancel_Button).addComponent(Register_Button))
                    .addContainerGap(26, Short.MAX_VALUE)));
    getContentPane().setLayout(layout);

    pack();
}

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

    lblReporting = new javax.swing.JLabel();
    jComboBox1 = new javax.swing.JComboBox();
    btnLancerStat = new javax.swing.JButton();
    panelHistogramme = new javax.swing.JPanel();
    lblPopu = new javax.swing.JLabel();
    btnRetour = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    lblReporting.setBackground(new java.awt.Color(153, 153, 153));
    lblReporting.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
    lblReporting.setText("Reporting");

    jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Choisir une population",
            "Nombre d'employ par tranches de salaires", "Nombre d'employ par service",
            "Nombre d'employ par spcialit", "Nombre d'employ par rotation",
            "Salaire des employs par service", "Nombre de malades par service",
            "Nombre de malades par mutuelle", "Nombre de chambres par service" }));
    jComboBox1.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            jComboBox1ItemStateChanged(evt);
        }
    });
    jComboBox1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jComboBox1ActionPerformed(evt);
        }
    });

    btnLancerStat.setBackground(new java.awt.Color(0, 102, 0));
    btnLancerStat.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    btnLancerStat.setText("Lancer l'tude");
    btnLancerStat.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnLancerStatActionPerformed(evt);
        }
    });

    panelHistogramme.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

    javax.swing.GroupLayout panelHistogrammeLayout = new javax.swing.GroupLayout(panelHistogramme);
    panelHistogramme.setLayout(panelHistogrammeLayout);
    panelHistogrammeLayout.setHorizontalGroup(panelHistogrammeLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 490, Short.MAX_VALUE));
    panelHistogrammeLayout.setVerticalGroup(panelHistogrammeLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 300, Short.MAX_VALUE));

    lblPopu.setText("Population  tudier :");

    btnRetour.setBackground(new java.awt.Color(255, 0, 0));
    btnRetour.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    btnRetour.setText("Retour");
    btnRetour.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnRetourActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(btnLancerStat, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(btnRetour, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(40, 40, 40)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(panelHistogramme, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout
                                            .createSequentialGroup()
                                            .addComponent(lblReporting, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    262, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(222, 222, 222))))
                    .addComponent(lblPopu, javax.swing.GroupLayout.PREFERRED_SIZE, 202,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(51, Short.MAX_VALUE)));
    layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addContainerGap()
                            .addComponent(lblReporting, javax.swing.GroupLayout.PREFERRED_SIZE, 70,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(14, 14, 14)
                            .addComponent(lblPopu, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(layout.createSequentialGroup()
                                            .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(64, 64, 64)
                                            .addComponent(btnLancerStat, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    51, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(53, 53, 53)
                                            .addComponent(btnRetour, javax.swing.GroupLayout.PREFERRED_SIZE, 54,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(48, 48, 48))
                                    .addComponent(panelHistogramme, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap(43, Short.MAX_VALUE)));

    pack();
}

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

private void createUI() {
    JPanel panel = new JPanel();

    JPanel buttonPanel = new JPanel();

    JPanel panel_2 = new JPanel();
    GroupLayout groupLayout = new GroupLayout(this);
    groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.LEADING)
            .addGroup(groupLayout.createSequentialGroup().addContainerGap()
                    .addComponent(panel, GroupLayout.PREFERRED_SIZE, 262, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(buttonPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                            GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(panel_2, GroupLayout.PREFERRED_SIZE, 265, Short.MAX_VALUE)
                    .addContainerGap()));
    groupLayout.setVerticalGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
            .addGroup(groupLayout.createSequentialGroup().addContainerGap()
                    .addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
                            .addComponent(panel, GroupLayout.DEFAULT_SIZE, 238, Short.MAX_VALUE)
                            .addComponent(buttonPanel, 0, 0, Short.MAX_VALUE)
                            .addComponent(panel_2, 0, 0, Short.MAX_VALUE))
                    .addContainerGap()));

    btnSettings = new JButton();
    btnDisplay = new JButton();
    btnAdd = new JButton();
    btnDelete = new JButton();

    GroupLayout gl_buttonPanel = new GroupLayout(buttonPanel);
    gl_buttonPanel.setHorizontalGroup(gl_buttonPanel.createParallelGroup(Alignment.TRAILING).addGroup(
            Alignment.LEADING,/*from  ww w.  j a  v a 2s . co  m*/
            gl_buttonPanel.createSequentialGroup().addContainerGap().addGroup(gl_buttonPanel
                    .createParallelGroup(Alignment.LEADING)
                    .addComponent(btnSettings, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE,
                            Short.MAX_VALUE)
                    .addComponent(btnDisplay, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE)
                    .addComponent(btnAdd, GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE)
                    .addComponent(btnDelete, GroupLayout.DEFAULT_SIZE, 83, Short.MAX_VALUE))
                    .addContainerGap()));
    gl_buttonPanel.setVerticalGroup(gl_buttonPanel.createParallelGroup(Alignment.TRAILING)
            .addGroup(gl_buttonPanel.createSequentialGroup().addContainerGap(119, Short.MAX_VALUE)
                    .addComponent(btnSettings).addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(btnDisplay).addPreferredGap(ComponentPlacement.RELATED).addComponent(btnAdd)
                    .addPreferredGap(ComponentPlacement.RELATED).addComponent(btnDelete).addContainerGap()));
    buttonPanel.setLayout(gl_buttonPanel);

    JLabel lblSubjectText = new JLabel();
    lblSubjectText.setName("imageDetailsSubjectLabel");

    JScrollPane scrollPane_1 = new JScrollPane();

    JLabel lblDevelopersNotes = new JLabel();
    lblDevelopersNotes.setName("imageDetailsDevelopersNotesLabel");

    JScrollPane scrollPane_2 = new JScrollPane();

    JPanel panel_3 = new JPanel();

    String title = _resources.getString("imageDetailsSoundTitle");

    panel_3.setBorder(new TitledBorder(null, title, TitledBorder.LEADING, TitledBorder.TOP, null, null));

    GroupLayout gl_panel_2 = new GroupLayout(panel_2);
    gl_panel_2.setHorizontalGroup(gl_panel_2.createParallelGroup(Alignment.TRAILING)
            .addGroup(gl_panel_2.createSequentialGroup().addContainerGap()
                    .addGroup(gl_panel_2.createParallelGroup(Alignment.LEADING)
                            .addComponent(scrollPane_2, GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE)
                            .addComponent(scrollPane_1, GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE)
                            .addComponent(lblDevelopersNotes)
                            .addComponent(panel_3, GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE)
                            .addComponent(lblSubjectText))
                    .addContainerGap()));
    gl_panel_2.setVerticalGroup(gl_panel_2.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_panel_2.createSequentialGroup().addContainerGap().addComponent(lblSubjectText)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(scrollPane_1, GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
                    .addPreferredGap(ComponentPlacement.RELATED).addComponent(lblDevelopersNotes)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(scrollPane_2, GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(panel_3, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    developerNotesTextPane = new RtfEditorPane();
    scrollPane_2.setViewportView(developerNotesTextPane);

    subjectTextPane = new RtfEditorPane();
    scrollPane_1.setViewportView(subjectTextPane);

    soundComboBox = new JComboBox();
    soundComboBox.setRenderer(new DefaultListCellRenderer() {
        private static final long serialVersionUID = 1L;

        @Override
        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
                boolean cellHasFocus) {
            String text = "";
            ImageOverlay overlay = (ImageOverlay) value;
            if (overlay != null) {
                text = overlay.overlayText;
            }
            super.getListCellRendererComponent(list, text, index, isSelected, cellHasFocus);
            return this;
        }
    });

    deleteSoundButton = new JButton();

    playSoundButton = new JButton();

    insertSoundButton = new JButton();
    GroupLayout gl_panel_3 = new GroupLayout(panel_3);
    gl_panel_3.setHorizontalGroup(gl_panel_3.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_panel_3.createSequentialGroup().addComponent(soundComboBox, 0, 0, Short.MAX_VALUE)
                    .addPreferredGap(ComponentPlacement.RELATED).addComponent(deleteSoundButton)
                    .addPreferredGap(ComponentPlacement.RELATED).addComponent(playSoundButton)
                    .addPreferredGap(ComponentPlacement.RELATED).addComponent(insertSoundButton)
                    .addContainerGap()));
    gl_panel_3.setVerticalGroup(gl_panel_3.createParallelGroup(Alignment.TRAILING)
            .addGroup(gl_panel_3.createSequentialGroup().addContainerGap(5, Short.MAX_VALUE)
                    .addGroup(gl_panel_3.createParallelGroup(Alignment.BASELINE)
                            .addComponent(soundComboBox, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                                    GroupLayout.PREFERRED_SIZE)
                            .addComponent(deleteSoundButton).addComponent(playSoundButton)
                            .addComponent(insertSoundButton))));
    panel_3.setLayout(gl_panel_3);

    panel_2.setLayout(gl_panel_2);

    JLabel lblImageFiles = new JLabel();
    lblImageFiles.setName("imageDetailsImageFilesLabel");
    lblImageFiles.setAlignmentY(Component.TOP_ALIGNMENT);

    JScrollPane scrollPane = new JScrollPane();
    GroupLayout gl_panel = new GroupLayout(panel);
    gl_panel.setHorizontalGroup(gl_panel.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_panel.createSequentialGroup()
                    .addGroup(gl_panel.createParallelGroup(Alignment.LEADING).addComponent(lblImageFiles)
                            .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE))
                    .addContainerGap()));
    gl_panel.setVerticalGroup(gl_panel.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_panel.createSequentialGroup().addContainerGap().addComponent(lblImageFiles)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE)
                    .addContainerGap()));

    imageList = new ImageList();

    scrollPane.setViewportView(imageList);
    panel.setLayout(gl_panel);
    setLayout(groupLayout);
}

From source file:finale.year.stage.main.Inscription.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  v a  2 s . c  om*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    sexGroup = new javax.swing.ButtonGroup();
    inscriptionPanel = new javax.swing.JPanel();
    idField = new javax.swing.JTextField();
    emailField = new javax.swing.JTextField();
    idLabel = new javax.swing.JLabel();
    emailLabel = new javax.swing.JLabel();
    passField = new javax.swing.JPasswordField();
    confirmPassField = new javax.swing.JPasswordField();
    passLabel = new javax.swing.JLabel();
    confirmPassLabel = new javax.swing.JLabel();
    submitBtn = new javax.swing.JButton();
    cancelBtn = new javax.swing.JButton();
    errorStatusBar = new javax.swing.JLabel();

    setBackground(new java.awt.Color(85, 172, 238));
    setLayout(new java.awt.GridBagLayout());

    inscriptionPanel.setBackground(new java.awt.Color(254, 254, 254));
    inscriptionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Inscription Form",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Abyssinica SIL", 0, 18),
            new java.awt.Color(90, 72, 216))); // NOI18N

    idField.setColumns(35);
    idField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            idFieldActionPerformed(evt);
        }
    });

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

    idLabel.setText("ID :");

    emailLabel.setText("Email :");

    passField.setColumns(35);

    confirmPassField.setColumns(35);
    confirmPassField.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            confirmPassFieldActionPerformed(evt);
        }
    });

    passLabel.setText("Password :");

    confirmPassLabel.setText("Confirm Password :");

    submitBtn.setText("Submit");
    submitBtn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            submitBtnActionPerformed(evt);
        }
    });

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

    javax.swing.GroupLayout inscriptionPanelLayout = new javax.swing.GroupLayout(inscriptionPanel);
    inscriptionPanel.setLayout(inscriptionPanelLayout);
    inscriptionPanelLayout.setHorizontalGroup(inscriptionPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(inscriptionPanelLayout.createSequentialGroup().addGap(42, 42, 42)
                    .addGroup(inscriptionPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(emailLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 90,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(passLabel).addComponent(confirmPassLabel).addComponent(idLabel,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 125,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                    .addGroup(inscriptionPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(errorStatusBar)
                            .addGroup(inscriptionPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(emailField, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(passField, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(confirmPassField, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(idField).addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                            inscriptionPanelLayout.createSequentialGroup()
                                                    .addComponent(cancelBtn).addGap(18, 18, 18)
                                                    .addComponent(submitBtn))))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    inscriptionPanelLayout.setVerticalGroup(
            inscriptionPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(inscriptionPanelLayout.createSequentialGroup().addContainerGap()
                            .addComponent(errorStatusBar).addGap(18, 18, 18)
                            .addGroup(inscriptionPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(idLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 17,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(idField, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(inscriptionPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(inscriptionPanelLayout.createSequentialGroup().addGap(32, 32, 32)
                                            .addComponent(emailLabel))
                                    .addGroup(inscriptionPanelLayout.createSequentialGroup().addGap(22, 22, 22)
                                            .addComponent(emailField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    36, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(18, 18, 18)
                            .addGroup(inscriptionPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(passField, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(passLabel))
                            .addGap(18, 18, 18)
                            .addGroup(inscriptionPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(confirmPassField, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(confirmPassLabel))
                            .addGap(61, 61, 61)
                            .addGroup(inscriptionPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(cancelBtn).addComponent(submitBtn))
                            .addContainerGap(210, Short.MAX_VALUE)));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.ipadx = 6;
    gridBagConstraints.ipady = 99;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(37, 56, 12, 50);
    add(inscriptionPanel, gridBagConstraints);
}