コード例 #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
  /**
   * 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();
    jLabel4 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    ViewFileButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();
    UpdateButton = new javax.swing.JButton();
    EnteredByTextBox = new javax.swing.JTextField();
    CompletedByTextBox = new javax.swing.JTextField();
    HoursTextBox = new javax.swing.JTextField();
    BillableCheckBox = new javax.swing.JCheckBox();
    jLabel5 = new javax.swing.JLabel();
    DateTextBox = new javax.swing.JTextField();
    jScrollPane1 = new javax.swing.JScrollPane();
    DescriptionTextBox = new javax.swing.JTextArea();
    InvoiceDateTextBox = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    CharacterLimit = new javax.swing.JLabel();
    BatesNumberTextBox = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    LocationTextBox = new javax.swing.JTextField();
    jLabel9 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Detailed Case Activity");
    setResizable(false);

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("Detailed Case Activity Information");

    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel2.setText("Date:");

    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel4.setText("Desciption:");

    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel6.setText("Completed By:");

    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel3.setText("Hours:");

    ViewFileButton.setText("View File");
    ViewFileButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            ViewFileButtonActionPerformed(evt);
          }
        });

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

    UpdateButton.setText("Update Description");
    UpdateButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            UpdateButtonActionPerformed(evt);
          }
        });

    EnteredByTextBox.setEditable(false);
    EnteredByTextBox.setBackground(new java.awt.Color(238, 238, 238));
    EnteredByTextBox.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    EnteredByTextBox.setEnabled(false);

    CompletedByTextBox.setBackground(new java.awt.Color(238, 238, 238));
    CompletedByTextBox.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    CompletedByTextBox.setDoubleBuffered(true);
    CompletedByTextBox.setEnabled(false);
    CompletedByTextBox.setFocusable(false);
    CompletedByTextBox.setRequestFocusEnabled(false);

    HoursTextBox.setBackground(new java.awt.Color(238, 238, 238));
    HoursTextBox.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    HoursTextBox.setEnabled(false);
    HoursTextBox.setRequestFocusEnabled(false);

    BillableCheckBox.setText("Billable");
    BillableCheckBox.setEnabled(false);

    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel5.setText("Entered By:");

    DateTextBox.setEditable(false);
    DateTextBox.setBackground(new java.awt.Color(238, 238, 238));
    DateTextBox.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    DateTextBox.setEnabled(false);

    DescriptionTextBox.setColumns(20);
    DescriptionTextBox.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
    DescriptionTextBox.setLineWrap(true);
    DescriptionTextBox.setRows(5);
    jScrollPane1.setViewportView(DescriptionTextBox);

    InvoiceDateTextBox.setBackground(new java.awt.Color(238, 238, 238));
    InvoiceDateTextBox.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    InvoiceDateTextBox.setDoubleBuffered(true);
    InvoiceDateTextBox.setEnabled(false);
    InvoiceDateTextBox.setFocusable(false);
    InvoiceDateTextBox.setRequestFocusEnabled(false);

    jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel7.setText("Invoiced Date:");

    CharacterLimit.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    CharacterLimit.setText("2000/2000");

    BatesNumberTextBox.setBackground(new java.awt.Color(238, 238, 238));
    BatesNumberTextBox.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    BatesNumberTextBox.setDoubleBuffered(true);
    BatesNumberTextBox.setEnabled(false);
    BatesNumberTextBox.setFocusable(false);
    BatesNumberTextBox.setRequestFocusEnabled(false);

    jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel8.setText("Bates Number:");

    LocationTextBox.setDisabledTextColor(new java.awt.Color(0, 0, 0));
    LocationTextBox.setDoubleBuffered(true);

    jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel9.setText("Location:");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                layout
                                    .createSequentialGroup()
                                    .addComponent(
                                        jLabel3,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        142,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        HoursTextBox,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        69,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(BillableCheckBox)
                                    .addGap(36, 36, 36)
                                    .addComponent(
                                        ViewFileButton,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        145,
                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(
                                jLabel1,
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addComponent(
                                CancelButton,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addComponent(
                                UpdateButton,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addGroup(
                                layout
                                    .createSequentialGroup()
                                    .addComponent(
                                        jLabel2,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        80,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(DateTextBox))
                            .addComponent(
                                CharacterLimit,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addGroup(
                                layout
                                    .createSequentialGroup()
                                    .addGroup(
                                        layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(
                                                jLabel9,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                jLabel8,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                jLabel7,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                jLabel4,
                                                javax.swing.GroupLayout.Alignment.LEADING,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                jLabel5,
                                                javax.swing.GroupLayout.Alignment.LEADING,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)
                                            .addComponent(
                                                jLabel6,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                80,
                                                Short.MAX_VALUE))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(
                                        layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(
                                                CompletedByTextBox,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                375,
                                                Short.MAX_VALUE)
                                            .addComponent(EnteredByTextBox)
                                            .addComponent(jScrollPane1)
                                            .addComponent(InvoiceDateTextBox)
                                            .addComponent(BatesNumberTextBox)
                                            .addComponent(LocationTextBox))))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addGap(18, 18, 18)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(
                                DateTextBox,
                                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(jLabel5)
                            .addComponent(
                                EnteredByTextBox,
                                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(
                                CompletedByTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                InvoiceDateTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                BatesNumberTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8))
                    .addGap(24, 24, 24)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                LocationTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel4)
                            .addComponent(
                                jScrollPane1,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(CharacterLimit)
                    .addGap(27, 27, 27)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(
                                HoursTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(BillableCheckBox)
                            .addComponent(ViewFileButton))
                    .addGap(37, 37, 37)
                    .addComponent(UpdateButton)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(CancelButton)
                    .addContainerGap()));

    layout.linkSize(
        javax.swing.SwingConstants.VERTICAL,
        new java.awt.Component[] {
          BillableCheckBox,
          CompletedByTextBox,
          DateTextBox,
          EnteredByTextBox,
          HoursTextBox,
          jLabel2,
          jLabel3,
          jLabel4,
          jLabel5,
          jLabel6
        });

    layout.linkSize(
        javax.swing.SwingConstants.VERTICAL,
        new java.awt.Component[] {InvoiceDateTextBox, jLabel7});

    pack();
  } // </editor-fold>//GEN-END:initComponents
コード例 #5
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.
   */
  private void initComponents() { // GEN-BEGIN:initComponents
    java.awt.GridBagConstraints gridBagConstraints;

    CurrentPortrait = new javax.swing.JLabel();
    RaceCheck = new javax.swing.JCheckBox();
    SexCheck = new javax.swing.JCheckBox();
    PortraitScrollPane = new javax.swing.JScrollPane();
    PortraitsWindow = new javax.swing.JPanel();
    OKButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();
    jPanel1 = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    jPanel3 = new javax.swing.JPanel();
    jPanel4 = new javax.swing.JPanel();
    jPanel5 = new javax.swing.JPanel();
    jPanel6 = new javax.swing.JPanel();
    jPanel7 = new javax.swing.JPanel();
    InfoText = new javax.swing.JTextField();
    FirstButton = new javax.swing.JButton();
    BackButton = new javax.swing.JButton();
    ForwardButton = new javax.swing.JButton();
    LastButton = new javax.swing.JButton();
    jPanel8 = new javax.swing.JPanel();
    jPanel9 = new javax.swing.JPanel();

    getContentPane().setLayout(new java.awt.GridBagLayout());

    setTitle("Portraits");
    setName("PortFrame");
    setResizable(false);
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent evt) {
            exitForm(evt);
          }
        });

    CurrentPortrait.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/CharacterCreator/resource/portrait.jpg")));
    CurrentPortrait.setVerticalAlignment(javax.swing.SwingConstants.TOP);
    CurrentPortrait.setMaximumSize(new java.awt.Dimension(128, 200));
    CurrentPortrait.setMinimumSize(new java.awt.Dimension(128, 200));
    CurrentPortrait.setPreferredSize(new java.awt.Dimension(128, 200));
    CurrentPortrait.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    getContentPane().add(CurrentPortrait, gridBagConstraints);

    RaceCheck.setSelected(true);
    RaceCheck.setText("Lock To Race");
    RaceCheck.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            RaceCheckActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 4;
    getContentPane().add(RaceCheck, gridBagConstraints);

    SexCheck.setSelected(true);
    SexCheck.setText("Lock to Gender");
    SexCheck.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            SexCheckActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 3;
    getContentPane().add(SexCheck, gridBagConstraints);

    PortraitScrollPane.setHorizontalScrollBarPolicy(
        javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    PortraitScrollPane.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_NEVER);
    PortraitScrollPane.setMinimumSize(new java.awt.Dimension(640, 500));
    PortraitScrollPane.setPreferredSize(new java.awt.Dimension(658, 500));
    PortraitScrollPane.setAutoscrolls(true);
    PortraitsWindow.setLayout(new java.awt.GridLayout(0, 10));

    PortraitsWindow.setMaximumSize(new java.awt.Dimension(640, 500));
    PortraitsWindow.setMinimumSize(new java.awt.Dimension(640, 500));
    PortraitScrollPane.setViewportView(PortraitsWindow);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 6;
    gridBagConstraints.gridheight = 9;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(PortraitScrollPane, gridBagConstraints);

    OKButton.setText("OK");
    OKButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            OKButtonActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTH;
    getContentPane().add(OKButton, gridBagConstraints);

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

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 11;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(CancelButton, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    getContentPane().add(jPanel1, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    getContentPane().add(jPanel2, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 12;
    getContentPane().add(jPanel3, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 0;
    getContentPane().add(jPanel4, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 5;
    getContentPane().add(jPanel5, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    getContentPane().add(jPanel6, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 7;
    getContentPane().add(jPanel7, gridBagConstraints);

    InfoText.setBackground(new java.awt.Color(204, 204, 204));
    InfoText.setFont(new java.awt.Font("Dialog", 0, 10));
    InfoText.setForeground(new java.awt.Color(255, 0, 0));
    InfoText.setHorizontalAlignment(javax.swing.JTextField.CENTER);
    InfoText.setBorder(null);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTH;
    getContentPane().add(InfoText, gridBagConstraints);

    FirstButton.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/CharacterCreator/resource/first.gif")));
    FirstButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            FirstButtonActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 11;
    getContentPane().add(FirstButton, gridBagConstraints);

    BackButton.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/CharacterCreator/resource/back.gif")));
    BackButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            BackButtonActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 11;
    getContentPane().add(BackButton, gridBagConstraints);

    ForwardButton.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/CharacterCreator/resource/forward.gif")));
    ForwardButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            ForwardButtonActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 7;
    gridBagConstraints.gridy = 11;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    getContentPane().add(ForwardButton, gridBagConstraints);

    LastButton.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/CharacterCreator/resource/last.gif")));
    LastButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            LastButtonActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 11;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    getContentPane().add(LastButton, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 11;
    gridBagConstraints.ipadx = 4;
    gridBagConstraints.insets = new java.awt.Insets(0, 85, 0, 85);
    getContentPane().add(jPanel8, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 11;
    gridBagConstraints.insets = new java.awt.Insets(0, 25, 0, 25);
    getContentPane().add(jPanel9, gridBagConstraints);

    pack();
  } // GEN-END:initComponents
コード例 #6
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
コード例 #7
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
コード例 #8
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
コード例 #9
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() {

    AuthenticationCheckBox = new javax.swing.JCheckBox();
    OutgoingAuthenticationLabel = new javax.swing.JLabel();
    SMTPPortTextBox = new javax.swing.JTextField();
    SMTPServerTextBox = new javax.swing.JTextField();
    OutgoingSMTPServerLabel = new javax.swing.JLabel();
    OutgoingSMTPPortLabel = new javax.swing.JLabel();
    IMAPPortTextBox = new javax.swing.JTextField();
    IMAPServerTextBox = new javax.swing.JTextField();
    IncomingIMAPPortLabel = new javax.swing.JLabel();
    IncomingIMAPServerLabel = new javax.swing.JLabel();
    EmailAddressTextBox = new javax.swing.JTextField();
    UserNameTextBox = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    UserNameLabel = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    ServerConfigurationComboBox = new javax.swing.JComboBox();
    jLabel11 = new javax.swing.JLabel();
    SaveButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();
    PasswordTextBox = new javax.swing.JPasswordField();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Initial Email Configuration");
    setResizable(false);

    AuthenticationCheckBox.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);

    OutgoingAuthenticationLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    OutgoingAuthenticationLabel.setText("Outgoing Authentication:");

    OutgoingSMTPServerLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    OutgoingSMTPServerLabel.setText("Outgoing Mail Server (SMTP):");

    OutgoingSMTPPortLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    OutgoingSMTPPortLabel.setText("Outgoing Port (SMTP):");

    IncomingIMAPPortLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    IncomingIMAPPortLabel.setText("Incoming Port (IMAP):");

    IncomingIMAPServerLabel.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    IncomingIMAPServerLabel.setText("Incoming Mail Server (IMAP):");

    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel4.setText("Password:"******"User Name:");

    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel2.setText("Email Address:");

    jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    jLabel6.setText("Server Configurations:   ");

    ServerConfigurationComboBox.setModel(
        new javax.swing.DefaultComboBoxModel(
            new String[] {
              "Manually Configure", "GoDaddy", "Gmail", "MSN / Hotmail / Outlook.com / Live.com"
            }));

    jLabel11.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel11.setText("Initial Email Configuration");

    SaveButton.setText("Save");
    SaveButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            SaveButtonActionPerformed(evt);
          }
        });

    CancelButton.setText("Cancel");
    CancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            CancelButtonActionPerformed(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.LEADING)
                            .addGroup(
                                layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .addGroup(
                                        layout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(
                                                jLabel11,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)
                                            .addGroup(
                                                javax.swing.GroupLayout.Alignment.TRAILING,
                                                layout
                                                    .createSequentialGroup()
                                                    .addComponent(
                                                        SaveButton,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        200,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED,
                                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                                        Short.MAX_VALUE)
                                                    .addComponent(
                                                        CancelButton,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        200,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(
                                                layout
                                                    .createSequentialGroup()
                                                    .addGroup(
                                                        layout
                                                            .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment
                                                                    .LEADING)
                                                            .addComponent(
                                                                jLabel4,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .addComponent(
                                                                UserNameLabel,
                                                                javax.swing.GroupLayout.Alignment
                                                                    .TRAILING,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .addComponent(
                                                                jLabel2,
                                                                javax.swing.GroupLayout.Alignment
                                                                    .TRAILING,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                84,
                                                                Short.MAX_VALUE))
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addGroup(
                                                        layout
                                                            .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment
                                                                    .LEADING)
                                                            .addGroup(
                                                                layout
                                                                    .createSequentialGroup()
                                                                    .addGroup(
                                                                        layout
                                                                            .createParallelGroup(
                                                                                javax.swing
                                                                                    .GroupLayout
                                                                                    .Alignment
                                                                                    .LEADING)
                                                                            .addComponent(
                                                                                EmailAddressTextBox,
                                                                                javax.swing
                                                                                    .GroupLayout
                                                                                    .Alignment
                                                                                    .TRAILING,
                                                                                javax.swing
                                                                                    .GroupLayout
                                                                                    .PREFERRED_SIZE,
                                                                                183,
                                                                                javax.swing
                                                                                    .GroupLayout
                                                                                    .PREFERRED_SIZE)
                                                                            .addGroup(
                                                                                layout
                                                                                    .createSequentialGroup()
                                                                                    .addComponent(
                                                                                        UserNameTextBox,
                                                                                        javax.swing
                                                                                            .GroupLayout
                                                                                            .PREFERRED_SIZE,
                                                                                        183,
                                                                                        javax.swing
                                                                                            .GroupLayout
                                                                                            .PREFERRED_SIZE)
                                                                                    .addGap(
                                                                                        0,
                                                                                        0,
                                                                                        Short
                                                                                            .MAX_VALUE)))
                                                                    .addPreferredGap(
                                                                        javax.swing.LayoutStyle
                                                                            .ComponentPlacement
                                                                            .RELATED,
                                                                        30,
                                                                        Short.MAX_VALUE))
                                                            .addGroup(
                                                                layout
                                                                    .createSequentialGroup()
                                                                    .addComponent(
                                                                        PasswordTextBox,
                                                                        javax.swing.GroupLayout
                                                                            .PREFERRED_SIZE,
                                                                        183,
                                                                        javax.swing.GroupLayout
                                                                            .PREFERRED_SIZE)
                                                                    .addPreferredGap(
                                                                        javax.swing.LayoutStyle
                                                                            .ComponentPlacement
                                                                            .RELATED,
                                                                        javax.swing.GroupLayout
                                                                            .DEFAULT_SIZE,
                                                                        Short.MAX_VALUE)))
                                                    .addGroup(
                                                        layout
                                                            .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment
                                                                    .LEADING,
                                                                false)
                                                            .addComponent(
                                                                OutgoingSMTPPortLabel,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .addComponent(
                                                                IncomingIMAPServerLabel,
                                                                javax.swing.GroupLayout.Alignment
                                                                    .TRAILING,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .addComponent(
                                                                IncomingIMAPPortLabel,
                                                                javax.swing.GroupLayout.Alignment
                                                                    .TRAILING,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .addComponent(
                                                                OutgoingSMTPServerLabel,
                                                                javax.swing.GroupLayout.Alignment
                                                                    .TRAILING,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                153,
                                                                Short.MAX_VALUE)
                                                            .addComponent(
                                                                OutgoingAuthenticationLabel,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE))
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED)
                                                    .addGroup(
                                                        layout
                                                            .createParallelGroup(
                                                                javax.swing.GroupLayout.Alignment
                                                                    .LEADING)
                                                            .addComponent(
                                                                IMAPServerTextBox,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                191,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .addComponent(
                                                                IMAPPortTextBox,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                50,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .addComponent(
                                                                SMTPServerTextBox,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                191,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .addComponent(
                                                                SMTPPortTextBox,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                50,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .addComponent(
                                                                AuthenticationCheckBox)))))
                            .addGroup(
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                layout
                                    .createSequentialGroup()
                                    .addContainerGap(
                                        javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel6)
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(
                                        ServerConfigurationComboBox,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        274,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(133, 133, 133)))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(
                        jLabel11,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        22,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(
                                ServerConfigurationComboBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(34, 34, 34)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(
                                EmailAddressTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(IncomingIMAPServerLabel)
                            .addComponent(
                                IMAPServerTextBox,
                                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(UserNameLabel)
                            .addComponent(
                                UserNameTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(IncomingIMAPPortLabel)
                            .addComponent(
                                IMAPPortTextBox,
                                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(jLabel4)
                            .addComponent(OutgoingSMTPServerLabel)
                            .addComponent(
                                SMTPServerTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                PasswordTextBox,
                                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(OutgoingSMTPPortLabel)
                            .addComponent(
                                SMTPPortTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(AuthenticationCheckBox)
                            .addComponent(OutgoingAuthenticationLabel))
                    .addPreferredGap(
                        javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(SaveButton)
                            .addComponent(CancelButton))
                    .addContainerGap()));

    layout.linkSize(
        javax.swing.SwingConstants.VERTICAL,
        new java.awt.Component[] {
          AuthenticationCheckBox,
          EmailAddressTextBox,
          IMAPPortTextBox,
          IMAPServerTextBox,
          IncomingIMAPPortLabel,
          IncomingIMAPServerLabel,
          OutgoingAuthenticationLabel,
          OutgoingSMTPPortLabel,
          OutgoingSMTPServerLabel,
          SMTPPortTextBox,
          SMTPServerTextBox,
          ServerConfigurationComboBox,
          UserNameLabel,
          UserNameTextBox,
          jLabel2,
          jLabel4,
          jLabel6
        });

    pack();
  } // </editor-fold>//GEN-END:initComponents
コード例 #10
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() {

    jPanel = new javax.swing.JPanel();
    FirstNameLabel = new javax.swing.JLabel();
    firstNameTextBox = new javax.swing.JTextField();
    LastNameLabel = new javax.swing.JLabel();
    lastNameTextBox = new javax.swing.JTextField();
    GoBackButton = new javax.swing.JButton();
    StudentNoLabel = new javax.swing.JLabel();
    studentNoTextBox = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    dobTextBox = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    homePhoneTextBox = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    workPhoneTextBox = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    sexTextBox = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    nationalityTextBox = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    deptIdTextBox = new javax.swing.JTextField();
    streetTextBox = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    cityTextBox = new javax.swing.JTextField();
    jLabel10 = new javax.swing.JLabel();
    pincodeTextBox = new javax.swing.JTextField();
    EditProfileButton = new javax.swing.JButton();
    SaveButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();
    invisibleLabel = new javax.swing.JLabel();
    classificationLabel = new javax.swing.JLabel();
    classificationTextField = new javax.swing.JTextField();
    degreeLabel = new javax.swing.JLabel();
    degreeTextField = new javax.swing.JTextField();
    yearLabel = new javax.swing.JLabel();
    yearTextField = new javax.swing.JTextField();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    FirstNameLabel.setText("First Name");

    firstNameTextBox.setEditable(false);
    firstNameTextBox.setBackground(new java.awt.Color(204, 204, 204));
    firstNameTextBox.setText("jTextField1");
    firstNameTextBox.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            firstNameTextBoxActionPerformed(evt);
          }
        });

    LastNameLabel.setText("Last Name");

    lastNameTextBox.setEditable(false);
    lastNameTextBox.setBackground(new java.awt.Color(204, 204, 204));
    lastNameTextBox.setText("jTextField2");
    lastNameTextBox.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            lastNameTextBoxActionPerformed(evt);
          }
        });

    GoBackButton.setText("Go Back");
    GoBackButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            GoBackButtonActionPerformed(evt);
          }
        });

    StudentNoLabel.setText("Student No");

    studentNoTextBox.setEditable(false);
    studentNoTextBox.setBackground(new java.awt.Color(204, 204, 204));
    studentNoTextBox.setText("jTextField1");

    jLabel1.setText("Date of Birth");

    dobTextBox.setEditable(false);
    dobTextBox.setBackground(new java.awt.Color(204, 204, 204));
    dobTextBox.setText("jTextField1");

    jLabel2.setText("Home Phone");

    homePhoneTextBox.setEditable(false);
    homePhoneTextBox.setText("jTextField2");

    jLabel3.setText("Work Phone");

    workPhoneTextBox.setEditable(false);
    workPhoneTextBox.setText("jTextField3");

    jLabel4.setText("Sex");

    sexTextBox.setEditable(false);
    sexTextBox.setText("jTextField4");

    jLabel5.setText("Nationality");

    nationalityTextBox.setEditable(false);
    nationalityTextBox.setText("jTextField5");

    jLabel6.setText("Dept Id");

    deptIdTextBox.setEditable(false);
    deptIdTextBox.setBackground(new java.awt.Color(204, 204, 204));
    deptIdTextBox.setText("jTextField1");

    streetTextBox.setEditable(false);
    streetTextBox.setText("jTextField1");

    jLabel8.setText("Street");

    jLabel9.setText("City");

    cityTextBox.setEditable(false);
    cityTextBox.setText("jTextField1");

    jLabel10.setText("PinCode");

    pincodeTextBox.setEditable(false);
    pincodeTextBox.setText("jTextField1");

    EditProfileButton.setText("Edit Profile");
    EditProfileButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            EditProfileButtonActionPerformed(evt);
          }
        });

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

    CancelButton.setText("Cancel");
    CancelButton.setEnabled(false);
    CancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            CancelButtonActionPerformed(evt);
          }
        });

    classificationLabel.setText("Classification");

    classificationTextField.setText("jTextField1");
    classificationTextField.setEnabled(false);

    degreeLabel.setText("Degree Program");

    degreeTextField.setText("jTextField2");
    degreeTextField.setEnabled(false);
    degreeTextField.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            degreeTextFieldActionPerformed(evt);
          }
        });

    yearLabel.setText("Year");

    yearTextField.setText("jTextField3");
    yearTextField.setEnabled(false);

    javax.swing.GroupLayout jPanelLayout = new javax.swing.GroupLayout(jPanel);
    jPanel.setLayout(jPanelLayout);
    jPanelLayout.setHorizontalGroup(
        jPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                jPanelLayout
                    .createSequentialGroup()
                    .addGap(40, 40, 40)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(FirstNameLabel)
                            .addComponent(LastNameLabel)
                            .addComponent(StudentNoLabel)
                            .addComponent(jLabel1)
                            .addComponent(jLabel2)
                            .addComponent(jLabel3)
                            .addComponent(jLabel4)
                            .addComponent(jLabel5))
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                jPanelLayout
                                    .createSequentialGroup()
                                    .addGap(61, 61, 61)
                                    .addGroup(
                                        jPanelLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addGroup(
                                                jPanelLayout
                                                    .createParallelGroup(
                                                        javax.swing.GroupLayout.Alignment.TRAILING,
                                                        false)
                                                    .addGroup(
                                                        jPanelLayout
                                                            .createSequentialGroup()
                                                            .addComponent(
                                                                homePhoneTextBox,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                166,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .addPreferredGap(
                                                                javax.swing.LayoutStyle
                                                                    .ComponentPlacement.RELATED,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .addComponent(classificationLabel))
                                                    .addGroup(
                                                        jPanelLayout
                                                            .createSequentialGroup()
                                                            .addComponent(
                                                                dobTextBox,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                166,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .addPreferredGap(
                                                                javax.swing.LayoutStyle
                                                                    .ComponentPlacement.RELATED,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .addComponent(jLabel10))
                                                    .addGroup(
                                                        jPanelLayout
                                                            .createSequentialGroup()
                                                            .addComponent(
                                                                lastNameTextBox,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                166,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .addPreferredGap(
                                                                javax.swing.LayoutStyle
                                                                    .ComponentPlacement.RELATED,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .addComponent(jLabel9))
                                                    .addGroup(
                                                        jPanelLayout
                                                            .createSequentialGroup()
                                                            .addComponent(
                                                                firstNameTextBox,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                166,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .addPreferredGap(
                                                                javax.swing.LayoutStyle
                                                                    .ComponentPlacement.RELATED,
                                                                javax.swing.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .addComponent(jLabel8))
                                                    .addGroup(
                                                        javax.swing.GroupLayout.Alignment.LEADING,
                                                        jPanelLayout
                                                            .createSequentialGroup()
                                                            .addComponent(
                                                                studentNoTextBox,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                166,
                                                                javax.swing.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .addGap(57, 57, 57)
                                                            .addComponent(jLabel6)))
                                            .addGroup(
                                                jPanelLayout
                                                    .createSequentialGroup()
                                                    .addComponent(
                                                        sexTextBox,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        166,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                        javax.swing.LayoutStyle.ComponentPlacement
                                                            .RELATED,
                                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                                        Short.MAX_VALUE)
                                                    .addComponent(yearLabel))
                                            .addComponent(
                                                nationalityTextBox,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                166,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(
                                                jPanelLayout
                                                    .createSequentialGroup()
                                                    .addComponent(
                                                        workPhoneTextBox,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                                        166,
                                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(18, 18, 18)
                                                    .addComponent(degreeLabel)))
                                    .addPreferredGap(
                                        javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                        88,
                                        Short.MAX_VALUE)
                                    .addGroup(
                                        jPanelLayout
                                            .createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(
                                                degreeTextField,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                166,
                                                javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(
                                                jPanelLayout
                                                    .createParallelGroup(
                                                        javax.swing.GroupLayout.Alignment.LEADING,
                                                        false)
                                                    .addComponent(
                                                        deptIdTextBox,
                                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                                        166,
                                                        Short.MAX_VALUE)
                                                    .addComponent(
                                                        streetTextBox,
                                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                                        166,
                                                        Short.MAX_VALUE)
                                                    .addComponent(
                                                        cityTextBox,
                                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                                        166,
                                                        Short.MAX_VALUE)
                                                    .addComponent(
                                                        pincodeTextBox,
                                                        javax.swing.GroupLayout.DEFAULT_SIZE,
                                                        166,
                                                        Short.MAX_VALUE)
                                                    .addComponent(classificationTextField))
                                            .addComponent(
                                                yearTextField,
                                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                                166,
                                                javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(60, 60, 60))
                            .addGroup(
                                jPanelLayout
                                    .createSequentialGroup()
                                    .addGap(93, 93, 93)
                                    .addComponent(invisibleLabel)
                                    .addContainerGap(
                                        javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
            .addGroup(
                jPanelLayout
                    .createSequentialGroup()
                    .addGap(142, 142, 142)
                    .addComponent(
                        GoBackButton,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        83,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(33, 33, 33)
                    .addComponent(EditProfileButton)
                    .addGap(35, 35, 35)
                    .addComponent(SaveButton)
                    .addGap(35, 35, 35)
                    .addComponent(CancelButton)
                    .addGap(0, 0, Short.MAX_VALUE)));
    jPanelLayout.setVerticalGroup(
        jPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                jPanelLayout
                    .createSequentialGroup()
                    .addGap(22, 22, 22)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                StudentNoLabel,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                14,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                studentNoTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)
                            .addComponent(
                                deptIdTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(FirstNameLabel)
                            .addComponent(
                                firstNameTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8)
                            .addComponent(
                                streetTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(LastNameLabel)
                            .addComponent(
                                lastNameTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9)
                            .addComponent(
                                cityTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(
                                dobTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10)
                            .addComponent(
                                pincodeTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(21, 21, 21)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                jLabel2,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                23,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                homePhoneTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(classificationLabel)
                            .addComponent(
                                classificationTextField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(
                                jLabel3,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                22,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(
                                workPhoneTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(degreeLabel)
                            .addComponent(
                                degreeTextField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(
                                sexTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(yearLabel)
                            .addComponent(
                                yearTextField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(23, 23, 23)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(
                                nationalityTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(33, 33, 33)
                    .addGroup(
                        jPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(GoBackButton)
                            .addComponent(EditProfileButton)
                            .addComponent(SaveButton)
                            .addComponent(CancelButton))
                    .addGap(107, 107, 107)
                    .addComponent(
                        invisibleLabel,
                        javax.swing.GroupLayout.PREFERRED_SIZE,
                        25,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                javax.swing.GroupLayout.Alignment.TRAILING,
                layout
                    .createSequentialGroup()
                    .addGap(17, 17, 17)
                    .addComponent(
                        jPanel,
                        javax.swing.GroupLayout.DEFAULT_SIZE,
                        javax.swing.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(
                        jPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 445, Short.MAX_VALUE)
                    .addContainerGap()));

    pack();
    setLocationRelativeTo(null);
  } // </editor-fold>//GEN-END:initComponents
  /**
   * 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();
    GenerateReportButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();
    jLabel3 = new javax.swing.JLabel();
    DollarAmountTextBox = new javax.swing.JTextField();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Reqired Report Information");
    setResizable(false);

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("Required Report Information");

    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    jLabel2.setText("Dollar Amount:   $");

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

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

    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel3.setText("REPORTNAME");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(
                                jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE)
                            .addComponent(
                                CancelButton,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addComponent(
                                GenerateReportButton,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addComponent(
                                jLabel3,
                                javax.swing.GroupLayout.Alignment.TRAILING,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .addGroup(
                                layout
                                    .createSequentialGroup()
                                    .addGap(57, 57, 57)
                                    .addComponent(
                                        jLabel2,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        109,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, 0)
                                    .addComponent(
                                        DollarAmountTextBox,
                                        javax.swing.GroupLayout.PREFERRED_SIZE,
                                        70,
                                        javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1)
                    .addGap(18, 18, 18)
                    .addComponent(jLabel3)
                    .addGap(35, 35, 35)
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(
                                DollarAmountTextBox,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(
                        javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55, Short.MAX_VALUE)
                    .addComponent(GenerateReportButton)
                    .addGap(18, 18, 18)
                    .addComponent(CancelButton)
                    .addContainerGap()));

    layout.linkSize(
        javax.swing.SwingConstants.VERTICAL,
        new java.awt.Component[] {DollarAmountTextBox, jLabel2});

    pack();
  } // </editor-fold>//GEN-END:initComponents
コード例 #12
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
コード例 #13
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.
   */
  private void initComponents() { // GEN-BEGIN:initComponents
    java.awt.GridBagConstraints gridBagConstraints;

    RaceButtonContainer = new javax.swing.JScrollPane();
    RaceButtonBak = new javax.swing.JPanel();
    RaceButtonList = new javax.swing.JPanel();
    RecommendedButton = new javax.swing.JButton();
    OKButton = new javax.swing.JButton();
    CancelButton = new javax.swing.JButton();
    DescriptionContainer = new javax.swing.JScrollPane();
    DescriptionText = new javax.swing.JTextArea();
    PadPanel = new javax.swing.JPanel();
    PadPanel2 = new javax.swing.JPanel();
    PadPanel3 = new javax.swing.JPanel();
    PadPanel4 = new javax.swing.JPanel();
    jPanel16 = new javax.swing.JPanel();
    jPanel17 = new javax.swing.JPanel();

    getContentPane().setLayout(new java.awt.GridBagLayout());

    setTitle("Choose a Race for your character.");
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent evt) {
            exitForm(evt);
          }
        });

    RaceButtonContainer.setHorizontalScrollBarPolicy(
        javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    RaceButtonContainer.setVerticalScrollBarPolicy(
        javax.swing.JScrollPane
            .VERTICAL_SCROLLBAR_ALWAYS); // was that weird green color on the menus
    RaceButtonContainer.setViewportBorder(
        new javax.swing.border.MatteBorder(
            new java.awt.Insets(10, 10, 10, 10), new java.awt.Color(0, 0, 0)));
    RaceButtonContainer.setMaximumSize(new java.awt.Dimension(32767, 300));
    RaceButtonContainer.setPreferredSize(new java.awt.Dimension(283, 300));
    RaceButtonContainer.setAutoscrolls(true);
    RaceButtonContainer.getVerticalScrollBar().setUnitIncrement(52);
    RaceButtonContainer.getVerticalScrollBar().setBlockIncrement(52);

    RaceButtonBak.setLayout(new java.awt.GridBagLayout());
    RaceButtonBak.setBackground(new java.awt.Color(0, 0, 0));
    RaceButtonBak.setForeground(new java.awt.Color(255, 255, 255)); // color not seen
    RaceButtonBak.setAlignmentX(0.0F);
    RaceButtonBak.setAlignmentY(0.0F);
    RaceButtonBak.setAutoscrolls(true);

    RaceButtonList.setLayout(new java.awt.GridLayout(0, 1));
    RaceButtonList.setBackground(new java.awt.Color(0, 0, 0)); // outline behind buttons
    RaceButtonList.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(3, 3, 3, 3)));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.gridheight = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    RaceButtonBak.add(RaceButtonList, gridBagConstraints);

    RaceButtonContainer.setViewportView(RaceButtonBak);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridheight = 6;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(RaceButtonContainer, gridBagConstraints);

    RecommendedButton.setText("Recommended");
    RecommendedButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            RecommendedButtonActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 8;
    getContentPane().add(RecommendedButton, gridBagConstraints);

    OKButton.setText("OK");
    OKButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            OKButtonActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 8;
    getContentPane().add(OKButton, gridBagConstraints);

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

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 8;
    getContentPane().add(CancelButton, gridBagConstraints);

    DescriptionContainer.setHorizontalScrollBarPolicy(
        javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    DescriptionContainer.setVerticalScrollBarPolicy(
        javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); // behind text description
    DescriptionContainer.setViewportBorder(
        new javax.swing.border.MatteBorder(
            new java.awt.Insets(10, 10, 10, 10), new java.awt.Color(0, 0, 0)));
    DescriptionContainer.setPreferredSize(new java.awt.Dimension(400, 300));
    DescriptionText.setBackground(new java.awt.Color(0, 0, 0));
    DescriptionText.setForeground(new java.awt.Color(240, 216, 130)); // text for description
    DescriptionText.setLineWrap(true);
    DescriptionText.setWrapStyleWord(true);
    DescriptionText.setPreferredSize(new java.awt.Dimension(400, 800));
    DescriptionText.setAutoscrolls(false);
    DescriptionContainer.setViewportView(DescriptionText);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.gridheight = 6;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(DescriptionContainer, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(PadPanel, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(PadPanel2, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(PadPanel3, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(PadPanel4, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(jPanel16, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 7;
    gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    getContentPane().add(jPanel17, gridBagConstraints);

    pack();
  } // GEN-END:initComponents