コード例 #1
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    clientDiscountGroup = new javax.swing.ButtonGroup();
    jLayeredPane1 = new javax.swing.JLayeredPane();
    jPanel1 = new javax.swing.JPanel();
    lblID = new javax.swing.JLabel();
    ID = new javax.swing.JLabel();
    lblNama = new javax.swing.JLabel();
    Nama = new javax.swing.JTextField();
    okButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();
    applyButton = new javax.swing.JButton();

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

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

    jPanel1.setBackground(new java.awt.Color(255, 255, 255));
    jPanel1.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            javax.swing.BorderFactory.createEtchedBorder(),
            "Stock Type Data",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION,
            new java.awt.Font("Arial", 0, 10))); // NOI18N
    jPanel1.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N

    lblID.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    lblID.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    lblID.setText("ID");

    ID.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    ID.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    ID.setName("id"); // NOI18N

    lblNama.setText("Name");

    Nama.setName("nama"); // NOI18N

    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(4, 4, 4)
                                    .add(
                                        lblID,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        50,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(lblNama))
                    .add(16, 16, 16)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                ID,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                50,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                Nama,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                203,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(225, Short.MAX_VALUE)));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .add(2, 2, 2)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                ID,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                lblID,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                10,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(lblNama)
                            .add(
                                Nama,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(36, Short.MAX_VALUE)));

    jPanel1.setBounds(0, 0, 510, 110);
    jLayeredPane1.add(jPanel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

    okButton.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    okButton.setText("Ok");
    okButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            okButtonActionPerformed(evt);
          }
        });
    okButton.setBounds(530, 10, 80, 20);
    jLayeredPane1.add(okButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

    CancelButton.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    CancelButton.setText("Cancel");
    CancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            CloseButtonActionPerformed(evt);
          }
        });
    CancelButton.setBounds(530, 40, 80, 20);
    jLayeredPane1.add(CancelButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

    applyButton.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    applyButton.setText("Apply"); // NOI18N
    applyButton.setName("applyButton"); // NOI18N
    applyButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            applyButtonActionPerformed(evt);
          }
        });
    applyButton.setBounds(530, 70, 80, 20);
    jLayeredPane1.add(applyButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jLayeredPane1,
                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                620,
                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(
                        jLayeredPane1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        114,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));
  } // </editor-fold>//GEN-END:initComponents
コード例 #2
0
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    NavigationLabel = new javax.swing.JLabel();
    jPanel6 = new javax.swing.JPanel();
    CancelButton = new javax.swing.JButton();
    PrintButton = new javax.swing.JButton();
    SearchButton = new javax.swing.JButton();
    jPanel5 = new javax.swing.JPanel();
    VerticalLabel2 = new javax.swing.JLabel();
    jSeparator3 = new javax.swing.JSeparator();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea = new javax.swing.JTextArea();
    LogoutButton = new javax.swing.JButton();

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

    NavigationLabel.setFont(new java.awt.Font("Lucida Grande", 0, 10)); // NOI18N
    NavigationLabel.setText("Home > Reports > Product Turnover Report");

    jPanel6.setBackground(new java.awt.Color(255, 255, 204));

    CancelButton.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
    CancelButton.setText("Cancel");
    CancelButton.setMinimumSize(new java.awt.Dimension(89, 100));

    PrintButton.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
    PrintButton.setText("Print");
    PrintButton.setMinimumSize(new java.awt.Dimension(89, 100));

    SearchButton.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
    SearchButton.setText("Search");
    SearchButton.setMinimumSize(new java.awt.Dimension(89, 100));

    org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout.setHorizontalGroup(
        jPanel6Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel6Layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        SearchButton,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        100,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(
                        org.jdesktop.layout.LayoutStyle.RELATED,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .add(
                        PrintButton,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        100,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        CancelButton,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        100,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
    jPanel6Layout.setVerticalGroup(
        jPanel6Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel6Layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        jPanel6Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(
                                CancelButton,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                100,
                                Short.MAX_VALUE)
                            .add(
                                PrintButton,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .add(
                                SearchButton,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE))
                    .addContainerGap()));

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

    VerticalLabel2.setFont(new java.awt.Font("Lucida Grande", 1, 24)); // NOI18N
    VerticalLabel2.setText("Product Turnover Report");

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

    org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5);
    jPanel5.setLayout(jPanel5Layout);
    jPanel5Layout.setHorizontalGroup(
        jPanel5Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel5Layout
                    .createSequentialGroup()
                    .add(178, 178, 178)
                    .add(VerticalLabel2)
                    .addContainerGap(212, Short.MAX_VALUE))
            .add(
                jPanel5Layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        jPanel5Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jSeparator3)
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                jPanel5Layout
                                    .createSequentialGroup()
                                    .add(0, 0, Short.MAX_VALUE)
                                    .add(
                                        jScrollPane1,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        685,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    jPanel5Layout.setVerticalGroup(
        jPanel5Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel5Layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(VerticalLabel2)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jSeparator3,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        10,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jScrollPane1,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        352,
                        Short.MAX_VALUE)
                    .addContainerGap()));

    LogoutButton.setText("Logout");

    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(
                                layout
                                    .createSequentialGroup()
                                    .add(NavigationLabel)
                                    .addPreferredGap(
                                        org.jdesktop.layout.LayoutStyle.RELATED,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)
                                    .add(
                                        LogoutButton,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        75,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(
                                        layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                jPanel6,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)
                                            .add(
                                                org.jdesktop.layout.GroupLayout.TRAILING,
                                                jPanel5,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE))
                                    .addContainerGap()))));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(0, 0, Short.MAX_VALUE)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(NavigationLabel)
                            .add(LogoutButton))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jPanel5,
                        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(
                        jPanel6,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
  } // </editor-fold>//GEN-END:initComponents
コード例 #3
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    clientDiscountGroup = new javax.swing.ButtonGroup();
    jPanel1 = new javax.swing.JPanel();
    lblID = new javax.swing.JLabel();
    ID = new javax.swing.JLabel();
    lblNama = new javax.swing.JLabel();
    lblTelp = new javax.swing.JLabel();
    jLabel1 = new javax.swing.JLabel();
    system_user_id1 = new javax.swing.JLabel();
    lblID1 = new javax.swing.JLabel();
    itemidLabel = new javax.swing.JLabel();
    lblNama1 = new javax.swing.JLabel();
    createdbyLbl = new javax.swing.JLabel();
    itemidLabel1 = new javax.swing.JLabel();
    system_user_id2 = new javax.swing.JLabel();
    CancelButton = new javax.swing.JButton();

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

    jPanel1.setBackground(new java.awt.Color(255, 255, 255));
    jPanel1.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            javax.swing.BorderFactory.createEtchedBorder(),
            "BC Pemasukan Baku Detail",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION,
            new java.awt.Font("Arial", 0, 10))); // NOI18N
    jPanel1.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N

    lblID.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    lblID.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    lblID.setText("ID");

    ID.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    ID.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    ID.setName("ID"); // NOI18N

    lblNama.setText("Category");

    lblTelp.setText("Description");

    jLabel1.setText("Unit");

    system_user_id1.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    system_user_id1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    system_user_id1.setName("HdrID"); // NOI18N

    lblID1.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    lblID1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    lblID1.setText("HDRID");

    itemidLabel.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    itemidLabel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    itemidLabel.setName("Category"); // NOI18N

    lblNama1.setText("ItemQty");

    createdbyLbl.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    createdbyLbl.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    createdbyLbl.setName("ItemQty"); // NOI18N

    itemidLabel1.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    itemidLabel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    itemidLabel1.setName("Description"); // NOI18N

    system_user_id2.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    system_user_id2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    system_user_id2.setName("Unit"); // NOI18N

    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(4, 4, 4)
                                    .add(
                                        lblID,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        50,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .add(lblTelp))
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .add(lblNama))
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .add(jLabel1))
                            .add(jPanel1Layout.createSequentialGroup().add(6, 6, 6).add(lblID1)))
                    .add(13, 13, 13)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                ID,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                50,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(
                                                createdbyLbl,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                190,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .add(0, 0, Short.MAX_VALUE))
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                system_user_id1,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                50,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(
                                                itemidLabel,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                190,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(
                                                itemidLabel1,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                190,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(
                                                system_user_id2,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                50,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .addContainerGap(
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE))))
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(lblNama1)
                    .addContainerGap(448, Short.MAX_VALUE)));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .add(2, 2, 2)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                lblID,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                10,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                ID,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(
                                lblID1,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                10,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                system_user_id1,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(10, 10, 10)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lblNama)
                            .add(
                                itemidLabel,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(9, 9, 9)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lblTelp)
                            .add(
                                itemidLabel1,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(1, 1, 1)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(jLabel1)
                            .add(
                                system_user_id2,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(1, 1, 1)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lblNama1)
                            .add(
                                createdbyLbl,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    CancelButton.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    CancelButton.setText("Cancel");
    CancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            CloseButtonActionPerformed(evt);
          }
        });

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(
                        jPanel1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(
                        CancelButton,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        80,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(20, 20, 20)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1,
                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(
                layout
                    .createSequentialGroup()
                    .add(88, 88, 88)
                    .add(
                        CancelButton,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        20,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));
  } // </editor-fold>//GEN-END:initComponents
コード例 #4
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    clientDiscountGroup = new javax.swing.ButtonGroup();
    okButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();
    applyButton = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    lblID = new javax.swing.JLabel();
    ID = new javax.swing.JLabel();
    lblNama = new javax.swing.JLabel();
    system_user_id1 = new javax.swing.JLabel();
    lblID1 = new javax.swing.JLabel();
    lblNama1 = new javax.swing.JLabel();
    createdbyLbl = new javax.swing.JLabel();
    vl = new javax.swing.JLabel();
    LblAuditUser = new javax.swing.JLabel();
    lblTelp1 = new javax.swing.JLabel();
    jButton2 = new javax.swing.JButton();
    LblThreadID = new javax.swing.JLabel();
    LblSize = new javax.swing.JLabel();
    lblTelp2 = new javax.swing.JLabel();
    LblPart = new javax.swing.JLabel();
    lblTelp39 = new javax.swing.JLabel();
    qtyLabel26 = new javax.swing.JTextField();
    LblThreadName = new javax.swing.JLabel();
    lblTelp42 = new javax.swing.JLabel();
    lblTelp43 = new javax.swing.JLabel();
    LblTotalMeter = new javax.swing.JLabel();
    qtyLabel27 = new javax.swing.JTextField();

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

    okButton.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    okButton.setText("Ok");
    okButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            okButtonActionPerformed(evt);
          }
        });

    CancelButton.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    CancelButton.setText("Cancel");
    CancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            CloseButtonActionPerformed(evt);
          }
        });

    applyButton.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    applyButton.setText("Apply"); // NOI18N
    applyButton.setName("applyButton"); // NOI18N
    applyButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            applyButtonActionPerformed(evt);
          }
        });

    jPanel1.setBackground(new java.awt.Color(255, 255, 255));
    jPanel1.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            javax.swing.BorderFactory.createEtchedBorder(),
            "Sewing Thread Count",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION,
            new java.awt.Font("Dialog", 3, 10))); // NOI18N
    jPanel1.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N

    lblID.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    lblID.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    lblID.setText("ID");

    ID.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    ID.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    ID.setName("ID"); // NOI18N

    lblNama.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    lblNama.setText("Thread");

    system_user_id1.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    system_user_id1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    system_user_id1.setName("HdrID"); // NOI18N

    lblID1.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    lblID1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    lblID1.setText("HDRID");

    lblNama1.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    lblNama1.setText("AuditDate");

    createdbyLbl.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    createdbyLbl.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    createdbyLbl.setName("AuditDate"); // NOI18N

    vl.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    vl.setText("AuditUser");

    LblAuditUser.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    LblAuditUser.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    LblAuditUser.setName("AuditUser"); // NOI18N

    lblTelp1.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    lblTelp1.setText("Size");

    jButton2.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    jButton2.setText("Pick Thread");
    jButton2.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
          }
        });

    LblThreadID.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    LblThreadID.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    LblThreadID.setName("ThreadID"); // NOI18N

    LblSize.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    LblSize.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    LblSize.setName("Ukuran"); // NOI18N

    lblTelp2.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    lblTelp2.setText("Part");

    LblPart.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    LblPart.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    LblPart.setName("Part"); // NOI18N

    lblTelp39.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    lblTelp39.setText("Total Inch");

    qtyLabel26.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    qtyLabel26.setName("TotalInch"); // NOI18N
    qtyLabel26.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            qtyLabel26ActionPerformed(evt);
          }
        });

    LblThreadName.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N
    LblThreadName.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    LblThreadName.setName("ThreadName"); // NOI18N

    lblTelp42.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    lblTelp42.setText("Total Meter");

    lblTelp43.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    lblTelp43.setText("Remark");

    LblTotalMeter.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    LblTotalMeter.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    LblTotalMeter.setName("TotalMeter"); // NOI18N

    qtyLabel27.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N
    qtyLabel27.setName("Remark"); // NOI18N
    qtyLabel27.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            qtyLabel27ActionPerformed(evt);
          }
        });

    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(53, 53, 53)
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                jPanel1Layout
                                                    .createSequentialGroup()
                                                    .add(lblTelp2)
                                                    .addPreferredGap(
                                                        org.jdesktop.layout.LayoutStyle.RELATED)
                                                    .add(
                                                        LblPart,
                                                        org.jdesktop.layout.GroupLayout
                                                            .DEFAULT_SIZE,
                                                        org.jdesktop.layout.GroupLayout
                                                            .DEFAULT_SIZE,
                                                        Short.MAX_VALUE))
                                            .add(
                                                jPanel1Layout
                                                    .createSequentialGroup()
                                                    .add(
                                                        jPanel1Layout
                                                            .createParallelGroup(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .LEADING)
                                                            .add(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .TRAILING,
                                                                lblID)
                                                            .add(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .TRAILING,
                                                                lblID1)
                                                            .add(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .TRAILING,
                                                                lblNama)
                                                            .add(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .TRAILING,
                                                                lblTelp1))
                                                    .addPreferredGap(
                                                        org.jdesktop.layout.LayoutStyle.RELATED)
                                                    .add(
                                                        jPanel1Layout
                                                            .createParallelGroup(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .LEADING)
                                                            .add(
                                                                LblSize,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .add(
                                                                jPanel1Layout
                                                                    .createSequentialGroup()
                                                                    .add(
                                                                        jPanel1Layout
                                                                            .createParallelGroup(
                                                                                org.jdesktop.layout
                                                                                    .GroupLayout
                                                                                    .LEADING)
                                                                            .add(
                                                                                jPanel1Layout
                                                                                    .createSequentialGroup()
                                                                                    .add(
                                                                                        LblThreadID,
                                                                                        org.jdesktop
                                                                                            .layout
                                                                                            .GroupLayout
                                                                                            .PREFERRED_SIZE,
                                                                                        36,
                                                                                        org.jdesktop
                                                                                            .layout
                                                                                            .GroupLayout
                                                                                            .PREFERRED_SIZE)
                                                                                    .addPreferredGap(
                                                                                        org.jdesktop
                                                                                            .layout
                                                                                            .LayoutStyle
                                                                                            .RELATED)
                                                                                    .add(
                                                                                        LblThreadName,
                                                                                        org.jdesktop
                                                                                            .layout
                                                                                            .GroupLayout
                                                                                            .DEFAULT_SIZE,
                                                                                        org.jdesktop
                                                                                            .layout
                                                                                            .GroupLayout
                                                                                            .DEFAULT_SIZE,
                                                                                        Short
                                                                                            .MAX_VALUE))
                                                                            .add(
                                                                                system_user_id1,
                                                                                org.jdesktop.layout
                                                                                    .GroupLayout
                                                                                    .DEFAULT_SIZE,
                                                                                org.jdesktop.layout
                                                                                    .GroupLayout
                                                                                    .DEFAULT_SIZE,
                                                                                Short.MAX_VALUE)
                                                                            .add(
                                                                                ID,
                                                                                org.jdesktop.layout
                                                                                    .GroupLayout
                                                                                    .DEFAULT_SIZE,
                                                                                org.jdesktop.layout
                                                                                    .GroupLayout
                                                                                    .DEFAULT_SIZE,
                                                                                Short.MAX_VALUE))
                                                                    .addPreferredGap(
                                                                        org.jdesktop.layout
                                                                            .LayoutStyle.UNRELATED)
                                                                    .add(jButton2)
                                                                    .add(14, 14, 14))))
                                            .add(
                                                jPanel1Layout
                                                    .createSequentialGroup()
                                                    .add(10, 10, 10)
                                                    .add(
                                                        jPanel1Layout
                                                            .createParallelGroup(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .TRAILING)
                                                            .add(
                                                                jPanel1Layout
                                                                    .createSequentialGroup()
                                                                    .add(lblTelp39)
                                                                    .addPreferredGap(
                                                                        org.jdesktop.layout
                                                                            .LayoutStyle.RELATED)
                                                                    .add(
                                                                        qtyLabel26,
                                                                        org.jdesktop.layout
                                                                            .GroupLayout
                                                                            .PREFERRED_SIZE,
                                                                        286,
                                                                        org.jdesktop.layout
                                                                            .GroupLayout
                                                                            .PREFERRED_SIZE)
                                                                    .add(0, 18, Short.MAX_VALUE))
                                                            .add(
                                                                jPanel1Layout
                                                                    .createSequentialGroup()
                                                                    .add(lblTelp42)
                                                                    .addPreferredGap(
                                                                        org.jdesktop.layout
                                                                            .LayoutStyle.RELATED)
                                                                    .add(
                                                                        LblTotalMeter,
                                                                        org.jdesktop.layout
                                                                            .GroupLayout
                                                                            .DEFAULT_SIZE,
                                                                        org.jdesktop.layout
                                                                            .GroupLayout
                                                                            .DEFAULT_SIZE,
                                                                        Short.MAX_VALUE))))))
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                jPanel1Layout
                                                    .createParallelGroup(
                                                        org.jdesktop.layout.GroupLayout.TRAILING)
                                                    .add(
                                                        jPanel1Layout
                                                            .createSequentialGroup()
                                                            .add(vl)
                                                            .addPreferredGap(
                                                                org.jdesktop.layout.LayoutStyle
                                                                    .RELATED)
                                                            .add(
                                                                LblAuditUser,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                276,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .PREFERRED_SIZE))
                                                    .add(
                                                        jPanel1Layout
                                                            .createSequentialGroup()
                                                            .add(lblNama1)
                                                            .addPreferredGap(
                                                                org.jdesktop.layout.LayoutStyle
                                                                    .RELATED)
                                                            .add(
                                                                createdbyLbl,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                276,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .PREFERRED_SIZE)))
                                            .add(lblTelp43))
                                    .add(0, 0, Short.MAX_VALUE))
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, qtyLabel27))
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .add(2, 2, 2)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.CENTER)
                                            .add(
                                                lblID,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                10,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(
                                                ID,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                20,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.CENTER)
                                            .add(
                                                lblID1,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                10,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(
                                                system_user_id1,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                20,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.CENTER)
                                            .add(lblNama)
                                            .add(
                                                LblThreadID,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                20,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(org.jdesktop.layout.GroupLayout.TRAILING, jButton2)
                                            .add(
                                                LblThreadName,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                20,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.TRAILING)
                                            .add(lblTelp1)
                                            .add(
                                                LblSize,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                20,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.TRAILING)
                                            .add(lblTelp2)
                                            .add(
                                                LblPart,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                20,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.CENTER)
                                            .add(
                                                qtyLabel26,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(lblTelp39))
                                    .add(8, 8, 8)
                                    .add(lblTelp42))
                            .add(
                                LblTotalMeter,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(48, 48, 48)
                    .add(lblTelp43)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        qtyLabel27,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 87, Short.MAX_VALUE)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.TRAILING)
                                            .add(lblNama1)
                                            .add(
                                                createdbyLbl,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                20,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        LblAuditUser,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        20,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, vl))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(
                        jPanel1,
                        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(
                                okButton,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                80,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                CancelButton,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                80,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                applyButton,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                80,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(41, 41, 41)
                    .add(
                        okButton,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        20,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(10, 10, 10)
                    .add(
                        CancelButton,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        20,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(10, 10, 10)
                    .add(
                        applyButton,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        20,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(
                layout
                    .createSequentialGroup()
                    .add(
                        jPanel1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(0, 22, Short.MAX_VALUE)));
  } // </editor-fold>//GEN-END:initComponents
コード例 #5
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jLayeredPane1 = new javax.swing.JLayeredPane();
    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    fieldNameLabel = new javax.swing.JLabel();
    widthTextField = new javax.swing.JTextField();
    OKButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();

    setResizable(false);
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent evt) {
            closeDialog(evt);
          }
        });

    jPanel1.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            null,
            "Set Column Width",
            javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
            javax.swing.border.TitledBorder.DEFAULT_POSITION,
            new java.awt.Font("Dialog", 0, 10))); // NOI18N

    jLabel1.setFont(new java.awt.Font("Dialog", 0, 10));
    jLabel1.setText("Width");

    jLabel2.setFont(new java.awt.Font("Dialog", 0, 10));
    jLabel2.setText("Column");

    fieldNameLabel.setFont(new java.awt.Font("Dialog", 0, 10));
    fieldNameLabel.setText("jLabel3");

    widthTextField.setFont(new java.awt.Font("SansSerif", 0, 10));
    widthTextField.setText("jTextField1");

    org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .add(9, 9, 9)
                    .add(
                        jLabel2,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        70,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(45, 45, 45)
                    .add(
                        jLabel1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        70,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .add(9, 9, 9)
                    .add(
                        fieldNameLabel,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        80,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(35, 35, 35)
                    .add(
                        widthTextField,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        90,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .add(5, 5, 5)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jLabel2,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                jLabel1,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(5, 5, 5)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                fieldNameLabel,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                widthTextField,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))));

    jPanel1.setBounds(5, 5, 245, 93);
    jLayeredPane1.add(jPanel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

    OKButton.setFont(new java.awt.Font("Dialog", 0, 10));
    OKButton.setText("Ok");
    OKButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            OKButtonActionPerformed(evt);
          }
        });
    OKButton.setBounds(90, 100, 80, 25);
    jLayeredPane1.add(OKButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

    CancelButton.setFont(new java.awt.Font("Dialog", 0, 10));
    CancelButton.setText("Cancel");
    CancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            CancelButtonActionPerformed(evt);
          }
        });
    CancelButton.setBounds(170, 100, 80, 25);
    jLayeredPane1.add(CancelButton, javax.swing.JLayeredPane.DEFAULT_LAYER);

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jLayeredPane1,
                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                340,
                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jLayeredPane1,
                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                160,
                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE));
  } // </editor-fold>//GEN-END:initComponents
コード例 #6
0
  /**
   * 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.
   */
  @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();
    symbolInTextBox = new javax.swing.JTextField();
    exchangeTextBox = new javax.swing.JTextField();
    CancelButton = new javax.swing.JButton();
    goButton = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Get All Contract Expirations and Details for Futures");
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowOpened(java.awt.event.WindowEvent evt) {
            formWindowOpened(evt);
          }
        });

    jLabel1.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
    jLabel1.setText("BaseSymbol:");

    jLabel2.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
    jLabel2.setText("Exchange:");

    symbolInTextBox.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
    symbolInTextBox.setText("ZB");

    exchangeTextBox.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
    exchangeTextBox.setText("ECBOT");

    CancelButton.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
    CancelButton.setText("Cancel");
    CancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            CancelButtonActionPerformed(evt);
          }
        });

    goButton.setFont(new java.awt.Font("DejaVu Sans", 0, 18));
    goButton.setText("GO");
    goButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            goButtonActionPerformed(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()
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(
                                layout
                                    .createSequentialGroup()
                                    .addContainerGap(
                                        javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(CancelButton))
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.LEADING,
                                layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .addComponent(jLabel1)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        symbolInTextBox,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        86,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(39, 39, 39)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(
                                layout
                                    .createSequentialGroup()
                                    .addComponent(jLabel2)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        exchangeTextBox,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        123,
                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(goButton))
                    .addContainerGap(222, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addGap(22, 22, 22)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(
                                symbolInTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                jLabel2,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                36,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                exchangeTextBox,
                                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(CancelButton)
                            .addComponent(goButton))
                    .addGap(47, 47, 47)));

    pack();
  } // </editor-fold>//GEN-END:initComponents
コード例 #7
0
ファイル: UIRegister.java プロジェクト: afcMaia/DomineUP
  /**
   * 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.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    ConfirmButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();
    RegisterUserLabel = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    UsernameField = new javax.swing.JTextField();
    PasswordField = new javax.swing.JPasswordField();
    ConfirmPasswordField = new javax.swing.JPasswordField();
    EmailField = new javax.swing.JTextField();
    ConfirmEmailField = new javax.swing.JTextField();
    ConfirmEmailLabel = new javax.swing.JLabel();
    EmailLabel = new javax.swing.JLabel();
    ConfimPasswordLabel = new javax.swing.JLabel();
    UsernameLabel = new javax.swing.JLabel();
    PasswordLabel = new javax.swing.JLabel();
    xEmail = new javax.swing.JLabel();
    xPassword = new javax.swing.JLabel();
    xName = new javax.swing.JLabel();
    ErrorLabel = new javax.swing.JLabel();
    jLabel1 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    java.util.ResourceBundle bundle =
        java.util.ResourceBundle.getBundle("resources/Portugues_pt_PT_EURO"); // NOI18N
    setTitle(bundle.getString("AppTitle")); // NOI18N
    setResizable(false);
    getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    ConfirmButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    ConfirmButton.setText(bundle.getString("ConfirmButton")); // NOI18N
    ConfirmButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            ConfirmButtonActionPerformed(evt);
          }
        });
    getContentPane()
        .add(ConfirmButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(246, 444, 171, 55));

    CancelButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    CancelButton.setText(bundle.getString("CancelButton")); // NOI18N
    CancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            CancelButtonActionPerformed(evt);
          }
        });
    getContentPane()
        .add(CancelButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(454, 444, 165, 55));

    RegisterUserLabel.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
    RegisterUserLabel.setText(bundle.getString("RegisterUserLabel")); // NOI18N
    getContentPane()
        .add(RegisterUserLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(318, 60, -1, -1));

    UsernameField.setAlignmentY(0.0F);
    UsernameField.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

    PasswordField.setAlignmentY(0.0F);
    PasswordField.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    PasswordField.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            PasswordFieldActionPerformed(evt);
          }
        });

    ConfirmPasswordField.setAlignmentY(0.0F);
    ConfirmPasswordField.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

    EmailField.setAlignmentY(0.0F);
    EmailField.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

    ConfirmEmailField.setAlignmentY(0.0F);
    ConfirmEmailField.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

    ConfirmEmailLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    ConfirmEmailLabel.setText(bundle.getString("ConfirmEmailLabel")); // NOI18N
    ConfirmEmailLabel.setAlignmentY(0.0F);

    EmailLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    EmailLabel.setText("E-Mail:");
    EmailLabel.setAlignmentY(0.0F);

    ConfimPasswordLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    ConfimPasswordLabel.setText(bundle.getString("ConfirmPasswordLabel")); // NOI18N
    ConfimPasswordLabel.setAlignmentY(0.0F);

    UsernameLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    UsernameLabel.setText(bundle.getString("UsernameLabel")); // NOI18N
    UsernameLabel.setAlignmentY(0.0F);
    UsernameLabel.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseEntered(java.awt.event.MouseEvent evt) {
            UsernameLabelMouseEntered(evt);
          }
        });

    PasswordLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    PasswordLabel.setText("Password:"******"/resources/redcross.png"))); // NOI18N

    xPassword.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/resources/redcross.png"))); // NOI18N

    xName.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/resources/redcross.png"))); // NOI18N

    ErrorLabel.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
    ErrorLabel.setText("ERROR TEXT FIELD HERE...");

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
        jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                javax.swing.GroupLayout.Alignment.TRAILING,
                jPanel1Layout
                    .createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addGroup(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(ConfirmEmailLabel)
                                            .addComponent(EmailLabel)
                                            .addComponent(ConfimPasswordLabel))
                                    .addGap(17, 17, 17))
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addGroup(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(
                                                UsernameLabel,
                                                javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(
                                                PasswordLabel,
                                                javax.swing.GroupLayout.Alignment.TRAILING))
                                    .addGap(18, 18, 18)))
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addComponent(
                                        PasswordField,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        335,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(xPassword))
                            .addGroup(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addComponent(
                                        UsernameField,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        335,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(xName))
                            .addComponent(
                                ConfirmPasswordField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                335,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .addComponent(
                                        EmailField,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        335,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(xEmail))
                            .addGroup(
                                jPanel1Layout
                                    .createParallelGroup(
                                        javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(
                                        ErrorLabel,
                                        javax.swing.GroupLayout.Alignment.LEADING,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)
                                    .addComponent(
                                        ConfirmEmailField,
                                        javax.swing.GroupLayout.Alignment.LEADING,
                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                        335,
                                        Short.MAX_VALUE)))));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                jPanel1Layout
                    .createSequentialGroup()
                    .addGap(32, 32, 32)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(
                                jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(
                                        UsernameField,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        32,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(UsernameLabel))
                            .addComponent(
                                xName,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                32,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(
                                jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(
                                        PasswordField,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        31,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(PasswordLabel))
                            .addComponent(xPassword))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                ConfirmPasswordField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                31,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ConfimPasswordLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(
                                jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(
                                        EmailField,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        34,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(EmailLabel))
                            .addComponent(
                                xEmail,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                34,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                        jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                ConfirmEmailField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                34,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ConfirmEmailLabel))
                    .addPreferredGap(
                        javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
                    .addComponent(ErrorLabel)
                    .addContainerGap()));

    getContentPane()
        .add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(114, 122, -1, -1));

    jLabel1.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/resources/background.jpg"))); // NOI18N
    getContentPane()
        .add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 860, 550));

    pack();
  } // </editor-fold>//GEN-END:initComponents