Example #1
0
  // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
  private void initComponents() {
    cqScrollPane = new javax.swing.JScrollPane();
    okButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Critical questions");

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

    cancelButton.setText("Cancel");
    cancelButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(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(cqScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 432, Short.MAX_VALUE)
            .add(
                layout
                    .createSequentialGroup()
                    .add(105, 105, 105)
                    .add(okButton)
                    .add(66, 66, 66)
                    .add(cancelButton)
                    .addContainerGap(145, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(
                        cqScrollPane,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        297,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(okButton)
                            .add(cancelButton))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    pack();
  } // </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() {

    jSplitPane1 = new javax.swing.JSplitPane();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jSplitPane1.setDividerLocation(200);

    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()
                    .addContainerGap()
                    .add(
                        jSplitPane1,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        552,
                        Short.MAX_VALUE)
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        jSplitPane1,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        372,
                        Short.MAX_VALUE)
                    .addContainerGap()));

    pack();
  } // </editor-fold>//GEN-END:initComponents
Example #3
0
  // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
  private void initComponents() {
    jPanel1 = new javax.swing.JPanel();
    jScrollPane3 = new javax.swing.JScrollPane();
    tblRoomsInOrder = new javax.swing.JTable();
    jButton1 = new javax.swing.JButton();
    NgayTratruoc = new com.toedter.calendar.JDateChooser();
    TratruocThoiHan = new javax.swing.JRadioButton();
    jButton5 = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    tblCusInRoom = new javax.swing.JTable();
    jPanel3 = new javax.swing.JPanel();
    jScrollPane2 = new javax.swing.JScrollPane();
    tblServicesInRoom = new javax.swing.JTable();
    jPanel4 = new javax.swing.JPanel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    sumCostOfSVInOrder = new javax.swing.JTextField();
    sumCostOfRoomInOrder = new javax.swing.JTextField();
    txtAddition = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    txtDiscount = new javax.swing.JTextField();
    txtPay = new javax.swing.JTextField();
    jLabel10 = new javax.swing.JLabel();
    txtTotalSum = new javax.swing.JTextField();
    jLabel11 = new javax.swing.JLabel();
    jButton3 = new javax.swing.JButton();
    txtAdd12 = new javax.swing.JTextField();
    jLabel9 = new javax.swing.JLabel();
    jPanel5 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    txtOrderId = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    txtOrderOfCus = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    txtOrderDate = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    txtCurrentDate = new javax.swing.JTextField();
    jPanel6 = new javax.swing.JPanel();
    jButton2 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jButton6 = new javax.swing.JButton();
    jPanel7 = new javax.swing.JPanel();
    jScrollPane4 = new javax.swing.JScrollPane();
    tblServicesInOrderOnly = new javax.swing.JTable();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Thanh to\u00e1n \u0111\u01a1n h\u00e0ng");
    setAlwaysOnTop(true);
    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Danh s\u00e1ch ph\u00f2ng"));
    tblRoomsInOrder.setModel(
        new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] {}));

    tblRoomsInOrder.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            tblRoomsInOrderMouseClicked(evt);
          }
        });

    jScrollPane3.setViewportView(tblRoomsInOrder);

    jButton1.setText("Tr\u1ea3 ph\u00f2ng");
    jButton1.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
          }
        });

    TratruocThoiHan.setText("Tr\u1ea3 tr\u01b0\u1edbc th\u1eddi h\u1ea1n");
    TratruocThoiHan.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    TratruocThoiHan.setMargin(new java.awt.Insets(0, 0, 0, 0));
    TratruocThoiHan.addMouseListener(
        new java.awt.event.MouseAdapter() {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
            TratruocThoiHanMouseClicked(evt);
          }
        });

    jButton5.setText("H\u1ee7y");
    jButton5.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton5ActionPerformed(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()
                    .addContainerGap()
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(TratruocThoiHan)
                            .add(jButton1))
                    .add(32, 32, 32)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jButton5)
                            .add(
                                NgayTratruoc,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(79, Short.MAX_VALUE))
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jScrollPane3,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                353,
                Short.MAX_VALUE));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jPanel1Layout
                    .createSequentialGroup()
                    .add(
                        jScrollPane3,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        130,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 22, Short.MAX_VALUE)
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(TratruocThoiHan)
                                    .add(6, 6, 6)
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(jButton1)
                                            .add(jButton5)))
                            .add(
                                NgayTratruoc,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))));

    jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Kh\u00e1ch \u0111ang \u1edf"));
    tblCusInRoom.setModel(
        new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] {}));

    jScrollPane1.setViewportView(tblCusInRoom);

    org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
        jPanel2Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE));
    jPanel2Layout.setVerticalGroup(
        jPanel2Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE));

    jPanel3.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            "Danh s\u00e1ch d\u1ecbc v\u1ee5 g\u1ecdi theo ph\u00f2ng"));
    tblServicesInRoom.setModel(
        new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] {}));

    jScrollPane2.setViewportView(tblServicesInRoom);

    org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(
        jPanel3Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE));
    jPanel3Layout.setVerticalGroup(
        jPanel3Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jScrollPane2,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                73,
                Short.MAX_VALUE));

    jPanel4.setBorder(
        javax.swing.BorderFactory.createTitledBorder("Thanh to\u00e1n \u0111\u01a1n h\u00e0ng"));
    jLabel5.setText("T\u1ed5ng ti\u1ec1n DV");

    jLabel6.setText("Gi\u1ea3m gi\u00e1");

    jLabel7.setText("Ph\u1ee5 ph\u00ed");

    sumCostOfSVInOrder.setEditable(false);

    sumCostOfRoomInOrder.setEditable(false);

    jLabel8.setText("Kh\u00e1ch tr\u1ea3");

    txtPay.setText("0");

    jLabel10.setText("T\u1ed5ng ");

    jLabel11.setText("T\u1ed5ng ti\u1ec1n ph\u00f2ng");

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

    txtAdd12.setEditable(false);

    jLabel9.setText("C\u1ed9ng");

    org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(
        jPanel4Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jPanel4Layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        jPanel4Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel5)
                            .add(jLabel11)
                            .add(jLabel9)
                            .add(jLabel7))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jPanel4Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                            .add(
                                sumCostOfSVInOrder,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                107,
                                Short.MAX_VALUE)
                            .add(
                                txtAdd12,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                107,
                                Short.MAX_VALUE)
                            .add(
                                sumCostOfRoomInOrder,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                107,
                                Short.MAX_VALUE)
                            .add(
                                txtAddition,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                107,
                                Short.MAX_VALUE))
                    .add(4, 4, 4)
                    .add(
                        jPanel4Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jPanel4Layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel4Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(jLabel6)
                                            .add(jLabel8))
                                    .add(10, 10, 10)
                                    .add(
                                        jPanel4Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING, false)
                                            .add(txtPay)
                                            .add(
                                                txtDiscount,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                58,
                                                Short.MAX_VALUE)))
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, jButton3)
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                jPanel4Layout
                                    .createSequentialGroup()
                                    .add(jLabel10)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        txtTotalSum,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        83,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    jPanel4Layout.setVerticalGroup(
        jPanel4Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel4Layout
                    .createSequentialGroup()
                    .add(
                        jPanel4Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel5)
                            .add(jLabel6)
                            .add(
                                sumCostOfSVInOrder,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                txtDiscount,
                                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(
                        jPanel4Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel11)
                            .add(
                                sumCostOfRoomInOrder,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(jLabel8)
                            .add(
                                txtPay,
                                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(
                        jPanel4Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel10)
                            .add(jLabel9)
                            .add(
                                txtAdd12,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                20,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                txtTotalSum,
                                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(
                        jPanel4Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jButton3)
                            .add(
                                txtAddition,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(jLabel7))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jPanel5.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            javax.swing.BorderFactory.createTitledBorder(
                "Th\u00f4ng tin \u0111\u01a1n h\u00e0ng")));
    jLabel1.setText("M\u00e3 \u0111\u01a1n h\u00e0ng");

    txtOrderId.setEditable(false);

    jLabel2.setText("Ng\u01b0\u1eddi \u0111\u1eb7t ");

    txtOrderOfCus.setEditable(false);

    jLabel3.setText("Ng\u00e0y \u0111\u1eb7t");

    txtOrderDate.setEditable(false);

    jLabel4.setText("H\u00f4m nay");

    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()
                    .addContainerGap()
                    .add(
                        jPanel5Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel1)
                            .add(jLabel2))
                    .add(37, 37, 37)
                    .add(
                        jPanel5Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                txtOrderOfCus,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                231,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                txtOrderId,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                42,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(23, 23, 23)
                    .add(
                        jPanel5Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel4)
                            .add(jLabel3))
                    .addPreferredGap(
                        org.jdesktop.layout.LayoutStyle.RELATED,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .add(
                        jPanel5Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(txtOrderDate)
                            .add(
                                txtCurrentDate,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                177,
                                Short.MAX_VALUE))
                    .addContainerGap()));
    jPanel5Layout.setVerticalGroup(
        jPanel5Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel5Layout
                    .createSequentialGroup()
                    .add(
                        jPanel5Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel1)
                            .add(jLabel3)
                            .add(
                                txtOrderDate,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                txtOrderId,
                                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(
                        jPanel5Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel2)
                            .add(
                                jPanel5Layout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                    .add(
                                        txtOrderOfCus,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(jLabel4)
                                    .add(
                                        txtCurrentDate,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))));

    jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jButton2.setText("H\u1ee7y b\u1ecf");
    jButton2.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
          }
        });

    jButton4.setText("Thanh to\u00e1n \u0111\u01a1n h\u00e0ng");
    jButton4.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton4ActionPerformed(evt);
          }
        });

    jButton6.setText("In h\u00f3a \u0111\u01a1n");
    jButton6.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton6ActionPerformed(evt);
          }
        });

    org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6);
    jPanel6.setLayout(jPanel6Layout);
    jPanel6Layout.setHorizontalGroup(
        jPanel6Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jPanel6Layout
                    .createSequentialGroup()
                    .addContainerGap(281, Short.MAX_VALUE)
                    .add(jButton6)
                    .add(15, 15, 15)
                    .add(jButton4)
                    .add(25, 25, 25)
                    .add(jButton2)
                    .addContainerGap()));
    jPanel6Layout.setVerticalGroup(
        jPanel6Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel6Layout
                    .createSequentialGroup()
                    .add(
                        jPanel6Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jButton2)
                            .add(jButton4)
                            .add(jButton6))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jPanel7.setBorder(
        javax.swing.BorderFactory.createTitledBorder("Danh s\u00e1ch d\u1ecbch v\u1ee5 chung"));
    tblServicesInOrderOnly.setModel(
        new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] {}));

    jScrollPane4.setViewportView(tblServicesInOrderOnly);

    org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);
    jPanel7.setLayout(jPanel7Layout);
    jPanel7Layout.setHorizontalGroup(
        jPanel7Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                jScrollPane4,
                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                257,
                Short.MAX_VALUE));
    jPanel7Layout.setVerticalGroup(
        jPanel7Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jScrollPane4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 96, 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()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jPanel5,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel1,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                jPanel2,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(
                                                jPanel3,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                jPanel6,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel7,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        jPanel4,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .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(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel2,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        jPanel3,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .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(
                                jPanel4,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .add(
                                jPanel7,
                                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()));
    pack();
    java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    java.awt.Dimension dialogSize = getSize();
    setLocation(
        (screenSize.width - dialogSize.width) / 2, (screenSize.height - dialogSize.height) / 2);
  } // </editor-fold>//GEN-END:initComponents
Example #4
0
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    tabSobre = new javax.swing.JTabbedPane();
    panSistema = new javax.swing.JPanel();
    lblSistema = new javax.swing.JLabel();
    lblEmpresa = new javax.swing.JLabel();
    lblVersao = new javax.swing.JLabel();
    lblAutor = new javax.swing.JLabel();
    lblSistemaNome = new javax.swing.JLabel();
    lblEmpresaNome = new javax.swing.JLabel();
    lblVersaoNome = new javax.swing.JLabel();
    lblAutorNome = new javax.swing.JLabel();
    separador = new javax.swing.JSeparator();
    lblSite = new javax.swing.JLabel();
    lblEmail = new javax.swing.JLabel();
    lblTelefone = new javax.swing.JLabel();
    lblSkype = new javax.swing.JLabel();
    lblSiteNome = new javax.swing.JLabel();
    lblEmailNome = new javax.swing.JLabel();
    lblTelefoneNome = new javax.swing.JLabel();
    lblSkypeNome = new javax.swing.JLabel();
    separador1 = new javax.swing.JSeparator();
    lblValidade = new javax.swing.JLabel();
    lblValidadeNome = new javax.swing.JLabel();
    btnValidar = new javax.swing.JButton();
    lblLogo = new javax.swing.JLabel();
    panLicenca = new javax.swing.JPanel();
    spLicenca = new javax.swing.JScrollPane();
    txtLicenca = new javax.swing.JTextPane();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Sobre");
    setModal(true);
    setResizable(false);
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);
          }

          public void windowActivated(java.awt.event.WindowEvent evt) {
            formWindowActivated(evt);
          }
        });

    tabSobre.setFont(new java.awt.Font("Serif", 0, 12)); // NOI18N

    panSistema.setFont(new java.awt.Font("Serif", 0, 13)); // NOI18N

    lblSistema.setFont(new java.awt.Font("Serif", 0, 14)); // NOI18N
    lblSistema.setText("Sistema:");

    lblEmpresa.setFont(new java.awt.Font("Serif", 0, 14)); // NOI18N
    lblEmpresa.setText("Empresa:");

    lblVersao.setFont(new java.awt.Font("Serif", 0, 14)); // NOI18N
    lblVersao.setText("Versão:");

    lblAutor.setFont(new java.awt.Font("Serif", 0, 14)); // NOI18N
    lblAutor.setText("Autor:");

    lblSistemaNome.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N
    lblSistemaNome.setText("OpenPDV - Ponto De Venda Open Source");

    lblEmpresaNome.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N
    lblEmpresaNome.setText("PhD - Systems Solutions");

    lblVersaoNome.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N
    lblVersaoNome.setText("2.00");

    lblAutorNome.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N
    lblAutorNome.setText("Pedro Henrique de Lira");

    lblSite.setFont(new java.awt.Font("Serif", 0, 14)); // NOI18N
    lblSite.setText("Site:");

    lblEmail.setFont(new java.awt.Font("Serif", 0, 14)); // NOI18N
    lblEmail.setText("Email:");

    lblTelefone.setFont(new java.awt.Font("Serif", 0, 14)); // NOI18N
    lblTelefone.setText("Telefone:");

    lblSkype.setFont(new java.awt.Font("Serif", 0, 14)); // NOI18N
    lblSkype.setText("Skype:");

    lblSiteNome.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N
    lblSiteNome.setText("http://phdss.com.br");

    lblEmailNome.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N
    lblEmailNome.setText("*****@*****.**");

    lblTelefoneNome.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N
    lblTelefoneNome.setText("+55 (82) 3313-6532");

    lblSkypeNome.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N
    lblSkypeNome.setText("pedroh.lira");

    lblValidade.setFont(new java.awt.Font("Serif", 0, 14)); // NOI18N
    lblValidade.setText("Validade do sistema:");

    lblValidadeNome.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N

    btnValidar.setFont(new java.awt.Font("Serif", 1, 14)); // NOI18N
    btnValidar.setText("Validar Sistema");
    btnValidar.setToolTipText(
        "Execute esta ação para validar o sistema, precisar ter acesso a INTERNET.");
    btnValidar.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnValidarActionPerformed(evt);
          }
        });

    lblLogo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    lblLogo.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/br/com/openpdv/imagens/openpdv_logo.png"))); // NOI18N
    lblLogo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    lblLogo.setIconTextGap(0);

    org.jdesktop.layout.GroupLayout panSistemaLayout =
        new org.jdesktop.layout.GroupLayout(panSistema);
    panSistema.setLayout(panSistemaLayout);
    panSistemaLayout.setHorizontalGroup(
        panSistemaLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                panSistemaLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        panSistemaLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                panSistemaLayout
                                    .createSequentialGroup()
                                    .add(
                                        panSistemaLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(lblEmpresa)
                                            .add(lblSistema))
                                    .add(18, 18, 18)
                                    .add(
                                        panSistemaLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                panSistemaLayout
                                                    .createSequentialGroup()
                                                    .add(lblSistemaNome)
                                                    .addPreferredGap(
                                                        org.jdesktop.layout.LayoutStyle.RELATED,
                                                        org.jdesktop.layout.GroupLayout
                                                            .DEFAULT_SIZE,
                                                        Short.MAX_VALUE)
                                                    .add(lblVersao)
                                                    .addPreferredGap(
                                                        org.jdesktop.layout.LayoutStyle.RELATED)
                                                    .add(
                                                        lblVersaoNome,
                                                        org.jdesktop.layout.GroupLayout
                                                            .PREFERRED_SIZE,
                                                        46,
                                                        org.jdesktop.layout.GroupLayout
                                                            .PREFERRED_SIZE))
                                            .add(
                                                panSistemaLayout
                                                    .createSequentialGroup()
                                                    .add(lblEmpresaNome)
                                                    .addPreferredGap(
                                                        org.jdesktop.layout.LayoutStyle.RELATED,
                                                        29,
                                                        Short.MAX_VALUE)
                                                    .add(lblAutor)
                                                    .addPreferredGap(
                                                        org.jdesktop.layout.LayoutStyle.RELATED)
                                                    .add(
                                                        lblAutorNome,
                                                        org.jdesktop.layout.GroupLayout
                                                            .PREFERRED_SIZE,
                                                        168,
                                                        org.jdesktop.layout.GroupLayout
                                                            .PREFERRED_SIZE))))
                            .add(
                                panSistemaLayout
                                    .createSequentialGroup()
                                    .add(
                                        panSistemaLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(lblSite)
                                            .add(lblEmail))
                                    .add(18, 18, 18)
                                    .add(
                                        panSistemaLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING, false)
                                            .add(
                                                lblSiteNome,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                Short.MAX_VALUE)
                                            .add(
                                                lblEmailNome,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                159,
                                                Short.MAX_VALUE))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        panSistemaLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(lblTelefone)
                                            .add(
                                                panSistemaLayout
                                                    .createSequentialGroup()
                                                    .add(lblSkype)
                                                    .add(18, 18, 18)
                                                    .add(
                                                        lblSkypeNome,
                                                        org.jdesktop.layout.GroupLayout
                                                            .DEFAULT_SIZE,
                                                        org.jdesktop.layout.GroupLayout
                                                            .DEFAULT_SIZE,
                                                        Short.MAX_VALUE))))
                            .add(
                                lblLogo,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .add(
                                panSistemaLayout
                                    .createSequentialGroup()
                                    .add(278, 278, 278)
                                    .add(
                                        lblTelefoneNome,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE))
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, separador)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, separador1)
                            .add(
                                panSistemaLayout
                                    .createSequentialGroup()
                                    .add(lblValidade)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        lblValidadeNome,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        83,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                    .add(
                                        btnValidar,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)))
                    .addContainerGap()));
    panSistemaLayout.setVerticalGroup(
        panSistemaLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                panSistemaLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        panSistemaLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(lblSistema)
                            .add(lblSistemaNome)
                            .add(lblVersao)
                            .add(lblVersaoNome))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        panSistemaLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(lblEmpresa)
                            .add(lblEmpresaNome)
                            .add(lblAutor)
                            .add(lblAutorNome))
                    .add(8, 8, 8)
                    .add(
                        separador,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        10,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(
                        panSistemaLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                panSistemaLayout
                                    .createSequentialGroup()
                                    .add(
                                        panSistemaLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(lblSite)
                                            .add(lblSiteNome))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        panSistemaLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(lblEmail)
                                            .add(lblEmailNome)))
                            .add(
                                panSistemaLayout
                                    .createSequentialGroup()
                                    .add(
                                        panSistemaLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(lblTelefone)
                                            .add(lblTelefoneNome))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        panSistemaLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(lblSkype)
                                            .add(lblSkypeNome))))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        separador1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        10,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        panSistemaLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                lblValidadeNome,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                18,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                panSistemaLayout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                    .add(lblValidade)
                                    .add(btnValidar)))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(lblLogo)
                    .addContainerGap()));

    tabSobre.addTab(
        "Sistema",
        new javax.swing.ImageIcon(getClass().getResource("/br/com/openpdv/imagens/principal.png")),
        panSistema); // NOI18N

    panLicenca.setFont(new java.awt.Font("Serif", 0, 13)); // NOI18N

    spLicenca.setBorder(null);
    spLicenca.setHorizontalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    spLicenca.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

    txtLicenca.setBorder(null);
    txtLicenca.setEditable(false);
    txtLicenca.setFont(new java.awt.Font("Serif", 0, 13)); // NOI18N
    txtLicenca.setText(
        "Copyright 2012 PhD - Systems Solutions\n\n     Licenciado sob a Licença Apache, Versão 2.0 (a \"Licença\");\n     você não pode usar esse arquivo exceto em conformidade com a Licença.\n     Você pode obter uma cópia da Licença em \n\n     http://www.apache.org/licenses/LICENSE-2.0 \n\n     Menos que exigido por lei aplicável ou acordado por escrito, o software \n     distribuído sob a Licença é distribuído \"COMO ESTÁ\", SEM GARANTIAS OU \n     CONDIÇÕES DE QUALQUER TIPO, sejam expressas ou implícitas. \n     Consulte a Licença para o idioma específico que governam as permissões e \n     limitações sob a Licença.\n");
    spLicenca.setViewportView(txtLicenca);

    org.jdesktop.layout.GroupLayout panLicencaLayout =
        new org.jdesktop.layout.GroupLayout(panLicenca);
    panLicenca.setLayout(panLicencaLayout);
    panLicencaLayout.setHorizontalGroup(
        panLicencaLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                panLicencaLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        spLicenca,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    panLicencaLayout.setVerticalGroup(
        panLicencaLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                panLicencaLayout
                    .createSequentialGroup()
                    .add(
                        spLicenca,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        261,
                        Short.MAX_VALUE)
                    .addContainerGap()));

    tabSobre.addTab(
        "Licença",
        new javax.swing.ImageIcon(getClass().getResource("/br/com/openpdv/imagens/padrao.png")),
        panLicenca); // NOI18N

    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()
                    .addContainerGap()
                    .add(
                        tabSobre,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(12, 12, 12)
                    .add(
                        tabSobre,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        300,
                        Short.MAX_VALUE)
                    .addContainerGap()));

    setSize(new java.awt.Dimension(520, 361));
    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() {

    jButton1 = new javax.swing.JButton();
    aRadBtn = new javax.swing.JRadioButton();
    bRadBtn = new javax.swing.JRadioButton();
    cRadBtn = new javax.swing.JRadioButton();
    dRadBtn = new javax.swing.JRadioButton();
    wordLbl = new javax.swing.JLabel();
    promptLbl = new javax.swing.JLabel();
    jButton2 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jButton1.setFont(new java.awt.Font("Helvetica", 0, 13));
    jButton1.setText("Finished");
    jButton1.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
          }
        });

    aRadBtn.setText("Choice A");
    aRadBtn.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            aRadBtnActionPerformed(evt);
          }
        });

    bRadBtn.setText("Choice B");
    bRadBtn.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            bRadBtnActionPerformed(evt);
          }
        });

    cRadBtn.setText("Choice C");
    cRadBtn.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            cRadBtnActionPerformed(evt);
          }
        });

    dRadBtn.setText("Choice D");
    dRadBtn.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            dRadBtnActionPerformed(evt);
          }
        });

    wordLbl.setFont(new java.awt.Font("Helvetica", 0, 36));
    wordLbl.setText("Word");

    promptLbl.setFont(new java.awt.Font("Helvetica", 0, 18));
    promptLbl.setText("Prompt");

    jButton2.setText("Next");
    jButton2.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed1(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()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(jButton1)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        jButton2,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        85,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(promptLbl)
                                    .addPreferredGap(
                                        org.jdesktop.layout.LayoutStyle.RELATED,
                                        126,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(
                                        layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(dRadBtn)
                                            .add(bRadBtn)
                                            .add(cRadBtn)
                                            .add(aRadBtn))
                                    .addPreferredGap(
                                        org.jdesktop.layout.LayoutStyle.RELATED,
                                        95,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(wordLbl)
                                    .addPreferredGap(
                                        org.jdesktop.layout.LayoutStyle.RELATED,
                                        98,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(34, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(wordLbl)
                    .add(18, 18, 18)
                    .add(promptLbl)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(aRadBtn)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(bRadBtn)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(cRadBtn)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(dRadBtn)
                    .add(21, 21, 21)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(
                                jButton1,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                40,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                jButton2,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                40,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
  } // </editor-fold>//GEN-END:initComponents
Example #6
0
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jTextField1 = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jTextField2 = new javax.swing.JTextField();
    jButton1 = new javax.swing.JButton();
    jTextField3 = new javax.swing.JTextField();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

    jLabel1.setText("+");

    jButton1.setText("=");

    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(19, 19, 19)
                    .add(
                        jTextField1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        121,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jLabel1)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jTextField2,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        125,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jButton1)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jTextField3,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        162,
                        Short.MAX_VALUE)
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(
                                jTextField1,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(jLabel1)
                            .add(
                                jTextField2,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(jButton1)
                            .add(
                                jTextField3,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
  } // </editor-fold>//GEN-END:initComponents
Example #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();
    jLabel3 = new javax.swing.JLabel();
    jSlider1 = new javax.swing.JSlider();
    jButton1 = new javax.swing.JButton();
    jLabel4 = new javax.swing.JLabel();

    setBorder(javax.swing.BorderFactory.createTitledBorder("Manual override"));

    jLabel1.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
    jLabel1.setText("Device's status:");

    jLabel2.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
    jLabel2.setText("Who are you?");

    jLabel3.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
    jLabel3.setText("How annoyed where you that the device is offline?");

    jSlider1.setMajorTickSpacing(1);
    jSlider1.setMaximum(4);
    jSlider1.setMinorTickSpacing(1);
    jSlider1.setPaintLabels(true);
    jSlider1.setPaintTicks(true);
    jSlider1.setSnapToTicks(true);
    jSlider1.setValue(2);

    jButton1.setFont(new java.awt.Font("Lucida Grande", 0, 18)); // NOI18N
    jButton1.setText("Power on!");
    jButton1.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
          }
        });

    jLabel4.setIcon(
        new javax.swing.ImageIcon(getClass().getResource("/overruler/images/off.png"))); // NOI18N

    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()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .add(
                                        layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                layout
                                                    .createSequentialGroup()
                                                    .add(
                                                        layout
                                                            .createParallelGroup(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .LEADING)
                                                            .add(jLabel2)
                                                            .add(jLabel1))
                                                    .add(0, 695, Short.MAX_VALUE))
                                            .add(
                                                layout
                                                    .createSequentialGroup()
                                                    .add(6, 6, 6)
                                                    .add(
                                                        layout
                                                            .createParallelGroup(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .LEADING)
                                                            .add(
                                                                jSlider1,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)
                                                            .add(
                                                                layout
                                                                    .createSequentialGroup()
                                                                    .add(jLabel3)
                                                                    .add(0, 282, Short.MAX_VALUE))
                                                            .add(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .TRAILING,
                                                                jButton1,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                Short.MAX_VALUE)))))
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(408, 408, 408)
                                    .add(jLabel4)
                                    .add(0, 0, Short.MAX_VALUE)))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(jLabel1)
                    .add(24, 24, 24)
                    .add(jLabel4)
                    .add(22, 22, 22)
                    .add(jLabel2)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 266, Short.MAX_VALUE)
                    .add(jLabel3)
                    .add(18, 18, 18)
                    .add(
                        jSlider1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(92, 92, 92)
                    .add(
                        jButton1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        69,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));
  } // </editor-fold>//GEN-END:initComponents
Example #8
0
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    lblBarra = new javax.swing.JLabel();
    txtBarra = new javax.swing.JTextField();
    lblValor = new javax.swing.JLabel();
    txtValor = new javax.swing.JFormattedTextField();
    lblVencimento = new javax.swing.JLabel();
    txtVencimento = new javax.swing.JFormattedTextField();
    separador = new javax.swing.JSeparator();
    btnOk = new javax.swing.JButton();
    btnCancelar = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Pagamento");
    setModal(true);
    setResizable(false);
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);
          }

          public void windowActivated(java.awt.event.WindowEvent evt) {
            formWindowActivated(evt);
          }
        });

    lblBarra.setFont(new java.awt.Font("Serif", 0, 12)); // NOI18N
    lblBarra.setText("Barra:");

    txtBarra.setFont(new java.awt.Font("Serif", 0, 12)); // NOI18N
    txtBarra.addKeyListener(
        new java.awt.event.KeyAdapter() {
          public void keyPressed(java.awt.event.KeyEvent evt) {
            txtBarraKeyPressed(evt);
          }
        });

    lblValor.setFont(new java.awt.Font("Serif", 0, 12)); // NOI18N
    lblValor.setText("Valor:");

    txtValor.setFormatterFactory(
        new javax.swing.text.DefaultFormatterFactory(
            new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#,##0.00"))));
    txtValor.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    txtValor.setToolTipText("");
    txtValor.setFont(new java.awt.Font("Serif", 0, 12)); // NOI18N
    txtValor.addKeyListener(
        new java.awt.event.KeyAdapter() {
          public void keyPressed(java.awt.event.KeyEvent evt) {
            txtValorKeyPressed(evt);
          }
        });

    lblVencimento.setFont(new java.awt.Font("Serif", 0, 12)); // NOI18N
    lblVencimento.setText("Vencimento:");

    txtVencimento.setFormatterFactory(
        new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter()));
    txtVencimento.setFont(new java.awt.Font("Serif", 0, 12)); // NOI18N

    btnOk.setFont(new java.awt.Font("Serif", 0, 12)); // NOI18N
    btnOk.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/br/com/openpdv/imagens/ok.png"))); // NOI18N
    btnOk.setText("OK");
    btnOk.setMaximumSize(new java.awt.Dimension(86, 28));
    btnOk.setMinimumSize(new java.awt.Dimension(86, 28));
    btnOk.setPreferredSize(new java.awt.Dimension(86, 28));
    btnOk.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnOkActionPerformed(evt);
          }
        });
    btnOk.addKeyListener(
        new java.awt.event.KeyAdapter() {
          public void keyPressed(java.awt.event.KeyEvent evt) {
            btnOkKeyPressed(evt);
          }
        });

    btnCancelar.setFont(new java.awt.Font("Serif", 0, 12)); // NOI18N
    btnCancelar.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/br/com/openpdv/imagens/cancelar.png"))); // NOI18N
    btnCancelar.setText("Cancelar");
    btnCancelar.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnCancelarActionPerformed(evt);
          }
        });
    btnCancelar.addKeyListener(
        new java.awt.event.KeyAdapter() {
          public void keyPressed(java.awt.event.KeyEvent evt) {
            btnCancelarKeyPressed(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()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                separador,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                339,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(lblValor)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(txtValor)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(lblVencimento)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        txtVencimento,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        125,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                layout
                                    .createSequentialGroup()
                                    .add(
                                        btnOk,
                                        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(btnCancelar))
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(lblBarra)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(txtBarra)))
                    .addContainerGap(25, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(lblBarra)
                            .add(
                                txtBarra,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(5, 5, 5)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(lblValor)
                            .add(
                                txtValor,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lblVencimento)
                            .add(
                                txtVencimento,
                                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(
                        separador,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(btnCancelar)
                            .add(
                                btnOk,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(24, Short.MAX_VALUE)));

    java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    setBounds((screenSize.width - 370) / 2, (screenSize.height - 157) / 2, 370, 157);
  } // </editor-fold>//GEN-END:initComponents
Example #9
0
  /** initialize GUI components */
  private JPanel initComponents() {
    JPanel panel = new JPanel();
    JScrollPane jScrollPane1 = new JScrollPane();
    JLabel jLabel1 = new JLabel();
    JLabel jLabel2 = new JLabel();

    jScrollPane1.setViewportView(jEditorPaneAbout);

    jButtonOk.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            jButtonOkActionPerformed(e);
          }
        });

    jButtonOk.setText("OK");
    jLabel1.setText("Application:");
    jLabel2.setText("Version:");

    jTextFieldApplication.setBackground(new Color(255, 255, 255));
    jTextFieldApplication.setEditable(false);
    jTextFieldApplication.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));

    jTextFieldVersion.setBackground(new Color(255, 255, 255));
    jTextFieldVersion.setEditable(false);
    jTextFieldVersion.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));

    jEditorPaneAbout.setEditable(false);

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(panel);
    panel.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .addContainerGap()
                                    .add(
                                        layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                jScrollPane1,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                289,
                                                Short.MAX_VALUE)
                                            .add(
                                                layout
                                                    .createSequentialGroup()
                                                    .add(
                                                        layout
                                                            .createParallelGroup(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .LEADING)
                                                            .add(
                                                                jTextFieldApplication,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .PREFERRED_SIZE,
                                                                145,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .PREFERRED_SIZE)
                                                            .add(jLabel1))
                                                    .add(4, 4, 4)
                                                    .add(
                                                        layout
                                                            .createParallelGroup(
                                                                org.jdesktop.layout.GroupLayout
                                                                    .LEADING)
                                                            .add(jLabel2)
                                                            .add(
                                                                jTextFieldVersion,
                                                                org.jdesktop.layout.GroupLayout
                                                                    .DEFAULT_SIZE,
                                                                140,
                                                                Short.MAX_VALUE)))))
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(106, 106, 106)
                                    .add(
                                        jButtonOk,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        101,
                                        Short.MAX_VALUE)
                                    .add(94, 94, 94)))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel1)
                            .add(jLabel2))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(
                                jTextFieldApplication,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                jTextFieldVersion,
                                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(
                        jScrollPane1,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        300,
                        Short.MAX_VALUE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jButtonOk)
                    .addContainerGap()));
    return panel;
  }
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jToolBar1 = new javax.swing.JToolBar();
    jPanel1 = new javax.swing.JPanel();
    txtUserID = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    txtUserName = new javax.swing.JTextField();
    lbHour = new javax.swing.JLabel();
    lbDate = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    lbYear = new javax.swing.JLabel();
    jMenuBar1 = new javax.swing.JMenuBar();
    mnMaster = new javax.swing.JMenu();
    mnMasterTitle = new javax.swing.JMenuItem();
    mnMasterEmployee = new javax.swing.JMenuItem();
    mnMasterBudgetGroup = new javax.swing.JMenuItem();
    mnMasterBudgetDetail = new javax.swing.JMenuItem();
    mnTransaction = new javax.swing.JMenu();
    mnTransactionBeginningBalance = new javax.swing.JMenuItem();
    mnTransactionBudgetUsage = new javax.swing.JMenuItem();
    mnTransactionBudgetTransfer = new javax.swing.JMenuItem();
    mnTransactionEndofYear = new javax.swing.JMenuItem();
    mnLaporan = new javax.swing.JMenu();
    mnRptMasterBudget = new javax.swing.JMenuItem();
    mnRptBudgetUsage = new javax.swing.JMenuItem();
    mnRptTrxBudgetUsage = new javax.swing.JMenuItem();
    mnRptTrxBudgetTransfer = new javax.swing.JMenuItem();
    mnUser = new javax.swing.JMenu();
    mnMasterUser = new javax.swing.JMenuItem();
    mnUserFunction = new javax.swing.JMenuItem();
    mnChangePassword = new javax.swing.JMenuItem();
    mnExit = new javax.swing.JMenu();
    mnLogOff = new javax.swing.JMenuItem();
    mnExitExit = new javax.swing.JMenuItem();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("OPC Budget Controlling Program");
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent evt) {
            FrmMainMenu.this.windowClosing(evt);
          }
        });

    jToolBar1.setRollover(true);

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

    txtUserID.setBackground(new java.awt.Color(204, 255, 204));
    txtUserID.setFont(new java.awt.Font("Tahoma", 1, 12));
    txtUserID.setDisabledTextColor(new java.awt.Color(255, 51, 51));
    txtUserID.setEnabled(false);

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12));
    jLabel1.setText("User ID");

    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 12));
    jLabel2.setText("User Name");

    txtUserName.setBackground(new java.awt.Color(204, 255, 204));
    txtUserName.setFont(new java.awt.Font("Tahoma", 1, 12));
    txtUserName.setDisabledTextColor(new java.awt.Color(255, 51, 51));
    txtUserName.setEnabled(false);

    lbHour.setBackground(new java.awt.Color(51, 51, 255));
    lbHour.setFont(new java.awt.Font("Tahoma", 1, 12));
    lbHour.setForeground(new java.awt.Color(51, 255, 51));

    lbDate.setBackground(new java.awt.Color(51, 51, 255));
    lbDate.setFont(new java.awt.Font("Tahoma", 1, 12));
    lbDate.setForeground(new java.awt.Color(51, 255, 51));

    jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12));
    jLabel3.setText("Budget Year");

    lbYear.setBackground(new java.awt.Color(51, 51, 255));
    lbYear.setFont(new java.awt.Font("Tahoma", 1, 12));
    lbYear.setForeground(new java.awt.Color(51, 255, 51));

    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()
                    .addContainerGap()
                    .add(jLabel1)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        txtUserID,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        123,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(18, 18, 18)
                    .add(
                        jLabel2,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        txtUserName,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        133,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(26, 26, 26)
                    .add(
                        lbDate,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        123,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(
                        lbHour,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        85,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(75, 75, 75)
                    .add(
                        jLabel3,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(
                        lbYear,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        62,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(50, 50, 50)));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(
                        txtUserID,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel1)
                    .add(
                        txtUserName,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel2)
                    .add(
                        lbDate,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        20,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(
                        lbHour,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        20,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(
                        lbYear,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        20,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel3)));

    jToolBar1.add(jPanel1);

    mnMaster.setBackground(new java.awt.Color(204, 255, 255));
    mnMaster.setText("Master");
    mnMaster.setFont(new java.awt.Font("Tahoma", 1, 12));

    mnMasterTitle.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));
    mnMasterTitle.setBackground(new java.awt.Color(255, 255, 204));
    mnMasterTitle.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnMasterTitle.setText("Title");
    mnMasterTitle.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnMasterTitleActionPerformed(evt);
          }
        });
    mnMaster.add(mnMasterTitle);

    mnMasterEmployee.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.CTRL_MASK));
    mnMasterEmployee.setBackground(new java.awt.Color(255, 255, 204));
    mnMasterEmployee.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnMasterEmployee.setText("Employee");
    mnMasterEmployee.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnMasterEmployeeActionPerformed(evt);
          }
        });
    mnMaster.add(mnMasterEmployee);

    mnMasterBudgetGroup.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK));
    mnMasterBudgetGroup.setBackground(new java.awt.Color(255, 255, 204));
    mnMasterBudgetGroup.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnMasterBudgetGroup.setText("Budget Group");
    mnMasterBudgetGroup.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnMasterBudgetGroupActionPerformed(evt);
          }
        });
    mnMaster.add(mnMasterBudgetGroup);

    mnMasterBudgetDetail.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));
    mnMasterBudgetDetail.setBackground(new java.awt.Color(255, 255, 204));
    mnMasterBudgetDetail.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnMasterBudgetDetail.setText("Budget Detail");
    mnMasterBudgetDetail.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnMasterBudgetDetailActionPerformed(evt);
          }
        });
    mnMaster.add(mnMasterBudgetDetail);

    jMenuBar1.add(mnMaster);

    mnTransaction.setBackground(new java.awt.Color(204, 255, 255));
    mnTransaction.setText("Transaction");
    mnTransaction.setFont(new java.awt.Font("Tahoma", 1, 12));

    mnTransactionBeginningBalance.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
    mnTransactionBeginningBalance.setBackground(new java.awt.Color(255, 255, 204));
    mnTransactionBeginningBalance.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnTransactionBeginningBalance.setText("Beginning Balance");
    mnTransactionBeginningBalance.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnTransactionBeginningBalanceActionPerformed(evt);
          }
        });
    mnTransaction.add(mnTransactionBeginningBalance);

    mnTransactionBudgetUsage.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
    mnTransactionBudgetUsage.setBackground(new java.awt.Color(255, 255, 204));
    mnTransactionBudgetUsage.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnTransactionBudgetUsage.setText("Budget Usage");
    mnTransactionBudgetUsage.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnTransactionBudgetUsageActionPerformed(evt);
          }
        });
    mnTransaction.add(mnTransactionBudgetUsage);

    mnTransactionBudgetTransfer.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));
    mnTransactionBudgetTransfer.setBackground(new java.awt.Color(255, 255, 204));
    mnTransactionBudgetTransfer.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnTransactionBudgetTransfer.setText("Budget Transfer");
    mnTransactionBudgetTransfer.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnTransactionBudgetTransferActionPerformed(evt);
          }
        });
    mnTransaction.add(mnTransactionBudgetTransfer);

    mnTransactionEndofYear.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));
    mnTransactionEndofYear.setBackground(new java.awt.Color(255, 255, 204));
    mnTransactionEndofYear.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnTransactionEndofYear.setText("End of Year");
    mnTransactionEndofYear.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnTransactionEndofYearActionPerformed(evt);
          }
        });
    mnTransaction.add(mnTransactionEndofYear);

    jMenuBar1.add(mnTransaction);

    mnLaporan.setBackground(new java.awt.Color(204, 255, 255));
    mnLaporan.setText("Report");
    mnLaporan.setFont(new java.awt.Font("Tahoma", 1, 12));

    mnRptMasterBudget.setBackground(new java.awt.Color(255, 255, 204));
    mnRptMasterBudget.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnRptMasterBudget.setText("Master Budget");
    mnRptMasterBudget.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnRptMasterBudgetActionPerformed(evt);
          }
        });
    mnLaporan.add(mnRptMasterBudget);

    mnRptBudgetUsage.setBackground(new java.awt.Color(255, 255, 204));
    mnRptBudgetUsage.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnRptBudgetUsage.setText("Budget Detail Per Month");
    mnRptBudgetUsage.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnRptBudgetUsageActionPerformed(evt);
          }
        });
    mnLaporan.add(mnRptBudgetUsage);

    mnRptTrxBudgetUsage.setBackground(new java.awt.Color(255, 255, 204));
    mnRptTrxBudgetUsage.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnRptTrxBudgetUsage.setText("Trx. Budget Usage");
    mnRptTrxBudgetUsage.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnRptTrxBudgetUsageActionPerformed(evt);
          }
        });
    mnLaporan.add(mnRptTrxBudgetUsage);

    mnRptTrxBudgetTransfer.setBackground(new java.awt.Color(255, 255, 204));
    mnRptTrxBudgetTransfer.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnRptTrxBudgetTransfer.setText("Trx. Budget Transfer");
    mnRptTrxBudgetTransfer.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnRptTrxBudgetTransferActionPerformed(evt);
          }
        });
    mnLaporan.add(mnRptTrxBudgetTransfer);

    jMenuBar1.add(mnLaporan);

    mnUser.setBackground(new java.awt.Color(204, 255, 255));
    mnUser.setText("Users Management");
    mnUser.setFont(new java.awt.Font("Tahoma", 1, 12));

    mnMasterUser.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_F5, java.awt.event.InputEvent.CTRL_MASK));
    mnMasterUser.setBackground(new java.awt.Color(255, 255, 204));
    mnMasterUser.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnMasterUser.setText("User");
    mnMasterUser.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnMasterUserActionPerformed(evt);
          }
        });
    mnUser.add(mnMasterUser);

    mnUserFunction.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_F6, java.awt.event.InputEvent.CTRL_MASK));
    mnUserFunction.setBackground(new java.awt.Color(255, 255, 204));
    mnUserFunction.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnUserFunction.setText("User Functions");
    mnUserFunction.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnUserFunctionActionPerformed(evt);
          }
        });
    mnUser.add(mnUserFunction);

    mnChangePassword.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_F7, java.awt.event.InputEvent.CTRL_MASK));
    mnChangePassword.setBackground(new java.awt.Color(255, 255, 204));
    mnChangePassword.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnChangePassword.setText("Change Password");
    mnChangePassword.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnChangePasswordActionPerformed(evt);
          }
        });
    mnUser.add(mnChangePassword);

    jMenuBar1.add(mnUser);

    mnExit.setBackground(new java.awt.Color(204, 255, 255));
    mnExit.setText("Exit");
    mnExit.setFont(new java.awt.Font("Tahoma", 1, 12));

    mnLogOff.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
    mnLogOff.setBackground(new java.awt.Color(255, 255, 204));
    mnLogOff.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnLogOff.setText("Log Off");
    mnLogOff.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnLogOffActionPerformed(evt);
          }
        });
    mnExit.add(mnLogOff);

    mnExitExit.setAccelerator(
        javax.swing.KeyStroke.getKeyStroke(
            java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
    mnExitExit.setBackground(new java.awt.Color(255, 255, 204));
    mnExitExit.setFont(new java.awt.Font("Tahoma", 1, 12));
    mnExitExit.setText("Exit");
    mnExitExit.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            mnExitExitActionPerformed(evt);
          }
        });
    mnExit.add(mnExitExit);

    jMenuBar1.add(mnExit);

    setJMenuBar(jMenuBar1);

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jToolBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 925, Short.MAX_VALUE));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(
                        jToolBar1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        25,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(649, Short.MAX_VALUE)));

    pack();
    java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    java.awt.Dimension dialogSize = getSize();
    setLocation(
        (screenSize.width - dialogSize.width) / 2, (screenSize.height - dialogSize.height) / 2);
  } // </editor-fold>//GEN-END:initComponents
Example #11
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() {

    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jPanel2 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    jTextField1 = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    jTextField2 = new javax.swing.JTextField();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextPane1 = new javax.swing.JTextPane();
    jButton1 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jLabel4 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    org.jdesktop.application.ResourceMap resourceMap =
        org.jdesktop.application.Application.getInstance(simuldp.SimulDPApp.class)
            .getContext()
            .getResourceMap(ExpDialog.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setName("Form"); // NOI18N
    setResizable(false);

    jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jPanel1.setName("jPanel1"); // NOI18N

    jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N

    jPanel2.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            resourceMap.getString("jPanel2.border.title"))); // NOI18N
    jPanel2.setName("jPanel2"); // NOI18N

    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N

    jTextField1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextField1.setText(resourceMap.getString("jTextField1.text")); // NOI18N
    jTextField1.setName("jTextField1"); // NOI18N

    jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    jTextField2.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
    jTextField2.setText(resourceMap.getString("jTextField2.text")); // NOI18N
    jTextField2.setName("jTextField2"); // NOI18N

    org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
        jPanel2Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel2Layout
                    .createSequentialGroup()
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(
                        jPanel2Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel3)
                            .add(jLabel2))
                    .add(35, 35, 35)
                    .add(
                        jPanel2Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(jTextField1)
                            .add(
                                jTextField2,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                57,
                                Short.MAX_VALUE))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(
        jPanel2Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel2Layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        jPanel2Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel2)
                            .add(
                                jTextField1,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(18, 18, 18)
                    .add(
                        jPanel2Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(jLabel3)
                            .add(
                                jTextField2,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    jTextPane1.setEditable(false);
    jTextPane1.setText(resourceMap.getString("jTextPane1.text")); // NOI18N
    jTextPane1.setName("jTextPane1"); // NOI18N
    jScrollPane1.setViewportView(jTextPane1);

    jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
    jButton1.setName("jButton1"); // NOI18N
    jButton1.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
          }
        });

    jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
    jButton2.setName("jButton2"); // NOI18N
    jButton2.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
          }
        });

    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jLabel4.setIcon(resourceMap.getIcon("jLabel4.icon")); // NOI18N
    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N
    jLabel4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

    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()
                    .addContainerGap()
                    .add(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(
                                        jScrollPane1,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        744,
                                        Short.MAX_VALUE)
                                    .addContainerGap())
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(jLabel1)
                                    .addContainerGap(553, Short.MAX_VALUE))
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                jPanel2,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                            .add(
                                                jPanel1Layout
                                                    .createSequentialGroup()
                                                    .add(49, 49, 49)
                                                    .add(jButton1)
                                                    .add(61, 61, 61)
                                                    .add(jButton2)))
                                    .addPreferredGap(
                                        org.jdesktop.layout.LayoutStyle.RELATED,
                                        91,
                                        Short.MAX_VALUE)
                                    .add(jLabel4)
                                    .add(47, 47, 47)))));
    jPanel1Layout.setVerticalGroup(
        jPanel1Layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                jPanel1Layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(jLabel1)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 11, Short.MAX_VALUE)
                    .add(
                        jScrollPane1,
                        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(
                        jPanel1Layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jPanel1Layout
                                    .createSequentialGroup()
                                    .add(
                                        jPanel2,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(18, 18, 18)
                                    .add(
                                        jPanel1Layout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.BASELINE)
                                            .add(jButton1)
                                            .add(jButton2)))
                            .add(jLabel4))
                    .add(20, 20, 20)));

    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()
                    .addContainerGap()
                    .add(
                        jPanel1,
                        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()
                    .addContainerGap()
                    .add(
                        jPanel1,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .addContainerGap()));

    pack();
  } // </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() {

    jScrollPane1 = new javax.swing.JScrollPane();
    themeList = new javax.swing.JList();
    jLabel1 = new javax.swing.JLabel();
    jButton1 = new javax.swing.JButton();
    btnSetTheme = new javax.swing.JButton();
    btnReloadThemes = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    jScrollPane1.setViewportView(themeList);

    jLabel1.setText("Choose a theme to use!");

    jButton1.setText("New Theme (NYI)");
    jButton1.setEnabled(false);

    btnSetTheme.setText("Set Theme");
    btnSetTheme.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnSetThemeActionPerformed(evt);
          }
        });

    btnReloadThemes.setText("Reload Themes");
    btnReloadThemes.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnReloadThemesActionPerformed(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(17, 17, 17)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(
                                        jScrollPane1,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        481,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(0, 0, Short.MAX_VALUE))
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(10, 10, 10)
                                    .add(jButton1)
                                    .add(68, 68, 68)
                                    .add(btnReloadThemes)
                                    .addPreferredGap(
                                        org.jdesktop.layout.LayoutStyle.RELATED,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        Short.MAX_VALUE)
                                    .add(btnSetTheme)))
                    .addContainerGap())
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(
                        jLabel1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        115,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(191, 191, 191)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        jLabel1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        14,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        jScrollPane1,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        215,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(btnReloadThemes)
                            .add(btnSetTheme)
                            .add(jButton1))
                    .add(0, 11, Short.MAX_VALUE)));

    pack();
  } // </editor-fold>//GEN-END:initComponents
Example #13
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  public void initComponents() throws IOException {

    // this.addInternalFrameListener(ThreadPoolManager.mainForm);
    setClosable(true);
    setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    setTitle("BASICINFOMANAGMENT");

    mainPanel.setBorder(BorderFactory.createTitledBorder("BASICINFOMANAGMENT"));

    mainTable.setAutoCreateRowSorter(true);
    refresh();

    mainTable.setColumnSelectionAllowed(true);
    tableScroll.setViewportView(mainTable);
    mainTable
        .getColumnModel()
        .getSelectionModel()
        .setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

    add.setText("ADD");
    add.setVisible(ThreadPoolManager.hasPermission("ADD_BASICINFO"));
    add.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
            try {
              addActionPerformed(evt);
            } catch (PropertyVetoException e) {
              e
                  .printStackTrace(); // To change body of catch statement use File | Settings |
                                      // File Templates.
            }
          }
        });

    delete.setText("DELETE");
    delete.setVisible(ThreadPoolManager.hasPermission("DELETE_BASICINFO"));
    delete.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
            int result =
                JOptionPane.showConfirmDialog(
                    null, "DELETE_BLOOKUP", "DELETE", JOptionPane.OK_CANCEL_OPTION);
            if (result == JOptionPane.OK_OPTION) {
              deleteActionPerformed(evt);
            }
          }
        });

    edit.setText("EDIT");
    edit.setVisible(ThreadPoolManager.hasPermission("EDIT_BASICINFO"));
    edit.addActionListener(
        new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
            try {
              editActionPerformed(evt);
            } catch (PropertyVetoException e) {
              e
                  .printStackTrace(); // To change body of catch statement use File | Settings |
                                      // File Templates.
            }
          }
        });

    org.jdesktop.layout.GroupLayout TMSPanel1Layout =
        new org.jdesktop.layout.GroupLayout(mainPanel);
    mainPanel.setLayout(TMSPanel1Layout);
    TMSPanel1Layout.setHorizontalGroup(
        TMSPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                TMSPanel1Layout.createSequentialGroup()
                    .add(36, 36, 36)
                    .add(
                        TMSPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                TMSPanel1Layout.createSequentialGroup()
                                    .add(add)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                    .add(delete)
                                    .add(18, 18, 18)
                                    .add(edit))
                            .add(
                                tableScroll,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(45, Short.MAX_VALUE)));
    TMSPanel1Layout.setVerticalGroup(
        TMSPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                TMSPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(
                        TMSPanel1Layout.createParallelGroup(
                                org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(add)
                            .add(delete)
                            .add(edit))
                    .addPreferredGap(
                        org.jdesktop.layout.LayoutStyle.RELATED,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .add(
                        tableScroll,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        136,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(133, 133, 133)));

    lookupPanel.setBorder(BorderFactory.createTitledBorder("LOOKUP"));

    /* codeField.setEditable(false);   //todo
    codeField.setText(lookup.getCode());
    nameField.setEditable(false);
    nameField.setText(lookup.getName());
    descField.setEditable(false);
    descField.setText(lookup.getDescription());*/

    codeLabel.setText("CODE");
    nameLabel.setText("NAME");
    descLabel.setText("DESCRIPTION");

    javax.swing.GroupLayout TMSPanel2Layout = new javax.swing.GroupLayout(lookupPanel);
    lookupPanel.setLayout(TMSPanel2Layout);
    TMSPanel2Layout.setHorizontalGroup(
        TMSPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                TMSPanel2Layout.createSequentialGroup()
                    .addGroup(
                        TMSPanel2Layout.createParallelGroup(
                                javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(
                                TMSPanel2Layout.createSequentialGroup()
                                    .addContainerGap(115, Short.MAX_VALUE)
                                    .addGroup(
                                        TMSPanel2Layout.createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(codeLabel)
                                            .addComponent(nameLabel)
                                            .addComponent(descLabel))
                                    .addGap(29, 29, 29)
                                    .addGroup(
                                        TMSPanel2Layout.createParallelGroup(
                                                javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(descField)
                                            .addComponent(nameField)
                                            .addComponent(
                                                codeField,
                                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                                113,
                                                Short.MAX_VALUE))))
                    .addContainerGap(200, Short.MAX_VALUE)));
    TMSPanel2Layout.setVerticalGroup(
        TMSPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                javax.swing.GroupLayout.Alignment.TRAILING,
                TMSPanel2Layout.createSequentialGroup()
                    .addGap(20, 20, 20)
                    .addGroup(
                        TMSPanel2Layout.createParallelGroup(
                                javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(codeLabel)
                            .addComponent(
                                codeField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(
                        TMSPanel2Layout.createParallelGroup(
                                javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nameLabel)
                            .addComponent(
                                nameField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(
                        TMSPanel2Layout.createParallelGroup(
                                javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(descLabel)
                            .addComponent(
                                descField,
                                javax.swing.GroupLayout.PREFERRED_SIZE,
                                javax.swing.GroupLayout.DEFAULT_SIZE,
                                javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(
                        javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)
                    .addGap(18, 18, 18)));

    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()
                    .addContainerGap()
                    .add(
                        lookupPanel,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(
                        mainPanel,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        lookupPanel,
                        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(
                        mainPanel,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        221,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    mainPanel.getAccessibleContext().setAccessibleName("BasicInfoForm");

    pack();
  } // </editor-fold>//GEN-END:initComponents
Example #14
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() {

    buttonGroup1 = new javax.swing.ButtonGroup();
    acceptButton = new javax.swing.JRadioButton();
    rejectButton = new javax.swing.JRadioButton();
    noActionButton = new javax.swing.JRadioButton();
    doneButton = new javax.swing.JButton();
    applyDefButton = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    notesText = new javax.swing.JTextPane();

    setBorder(javax.swing.BorderFactory.createTitledBorder("Action Box: Proposed Definition"));

    buttonGroup1.add(acceptButton);
    acceptButton.setText("Accept Definition");
    acceptButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            acceptButtonActionPerformed(evt);
          }
        });

    buttonGroup1.add(rejectButton);
    rejectButton.setText("Reject Definition");
    rejectButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            rejectButtonActionPerformed(evt);
          }
        });

    buttonGroup1.add(noActionButton);
    noActionButton.setText("No Action");

    doneButton.setText("Done");
    doneButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            doneButtonActionPerformed(evt);
          }
        });

    applyDefButton.setText("Edit Definition");
    applyDefButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            applyDefButtonActionPerformed(evt);
          }
        });

    jScrollPane1.setBorder(javax.swing.BorderFactory.createTitledBorder("Notes: "));
    jScrollPane1.setViewportView(notesText);

    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(noActionButton)
                            .add(
                                jScrollPane1,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                355,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(applyDefButton)
                                    .addPreferredGap(
                                        org.jdesktop.layout.LayoutStyle.RELATED,
                                        164,
                                        Short.MAX_VALUE)
                                    .add(doneButton))
                            .add(acceptButton)
                            .add(rejectButton))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .add(acceptButton)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(rejectButton)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(noActionButton)
                    .add(18, 18, 18)
                    .add(
                        jScrollPane1,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        121,
                        Short.MAX_VALUE)
                    .add(18, 18, 18)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(applyDefButton)
                            .add(doneButton))
                    .addContainerGap()));
  } // </editor-fold>//GEN-END:initComponents
Example #15
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 JLabel();
    progressBar = new JProgressBar();
    timeRemainingLabel = new JLabel();
    goButton = new JButton();
    cancelButton = new JButton();
    jScrollPane2 = new JScrollPane();
    introTextPane = new JTextPane();

    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);

    jLabel1.setText("Estimated time remaining: ");

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

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

    introTextPane.setBackground(getParent().getBackground());
    introTextPane.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
    introTextPane.setEditable(false);
    introTextPane.setText(
        "An index file for [filename goes here] could not be located.  An index is required to view alignments in IGV.  Click \"Go\" to create one now.  This will take approximately [time goes here] to complete.");
    introTextPane.setFocusable(false);
    jScrollPane2.setViewportView(introTextPane);

    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(30, 30, 30)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jScrollPane2,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                343,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                layout
                                    .createSequentialGroup()
                                    .add(jLabel1)
                                    .add(18, 18, 18)
                                    .add(
                                        timeRemainingLabel,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        103,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(
                                layout
                                    .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                    .add(
                                        layout
                                            .createSequentialGroup()
                                            .add(cancelButton)
                                            .add(18, 18, 18)
                                            .add(goButton))
                                    .add(
                                        progressBar,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        351,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(26, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap(23, Short.MAX_VALUE)
                    .add(
                        jScrollPane2,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        132,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(35, 35, 35)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(
                                jLabel1,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                27,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                timeRemainingLabel,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                16,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        progressBar,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(18, 18, 18)
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(goButton)
                            .add(cancelButton))
                    .addContainerGap()));

    pack();
  } // </editor-fold>//GEN-END:initComponents
  private void initComponents() {
    chipPlatesPanel = new javax.swing.JPanel();
    scannerInput = new javax.swing.JTextField();
    jScrollPane1 = new javax.swing.JScrollPane();
    failedPlatesList = new javax.swing.JList(new DefaultListModel());
    removeSelectedButton = new javax.swing.JButton();
    locationPanel = new javax.swing.JPanel();
    userIdLabel = new javax.swing.JLabel();
    userIDComboBox = new javax.swing.JComboBox();
    userIDComboBox.setName("userIDComboBox");
    scanLabel = new javax.swing.JLabel();
    scanDestination = new javax.swing.JTextField();
    jScrollPane2 = new javax.swing.JScrollPane();
    destinationsList = new javax.swing.JList(new DefaultListModel());
    completeUnloadingButton = new javax.swing.JButton();
    locationRemoveAllButton = new javax.swing.JButton();
    locationRemoveSelectedButton = new javax.swing.JButton();
    removeAllButton = new javax.swing.JButton();

    jScrollPane2 = new javax.swing.JScrollPane(destinationsList);

    setTitle(UNLOAD_DECK);
    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

    chipPlatesPanel.setBorder(
        javax.swing.BorderFactory.createTitledBorder(SCAN_UNFILLED_CHIP_PLATES));
    scannerInput.setName("inputScanner");
    scannerInput.setText(BLANK);
    scannerInput.addActionListener(new DialogScannerAction());
    jScrollPane1.setViewportView(failedPlatesList);

    removeSelectedButton.setText(REMOVE_SELECTED);
    removeSelectedButton.setName(REMOVE_SELECTED);
    removeSelectedButton.addActionListener(new RemoveSelectedItemAction());
    removeAllButton.setText(REMOVE_ALL);
    removeAllButton.setName(REMOVE_ALL);
    removeAllButton.addActionListener(new RemoveAllAction());
    populateUserList(userIDComboBox);

    org.jdesktop.layout.GroupLayout scanUnfilledSeedPlatesPanelLayout =
        new org.jdesktop.layout.GroupLayout(chipPlatesPanel);
    chipPlatesPanel.setLayout(scanUnfilledSeedPlatesPanelLayout);
    scanUnfilledSeedPlatesPanelLayout.setHorizontalGroup(
        scanUnfilledSeedPlatesPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                scanUnfilledSeedPlatesPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        scanUnfilledSeedPlatesPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jScrollPane1,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                246,
                                Short.MAX_VALUE)
                            .add(
                                scannerInput,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                246,
                                Short.MAX_VALUE)
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                scanUnfilledSeedPlatesPanelLayout
                                    .createSequentialGroup()
                                    .add(
                                        removeAllButton,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        123,
                                        Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        removeSelectedButton,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                        117,
                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap()));
    scanUnfilledSeedPlatesPanelLayout.setVerticalGroup(
        scanUnfilledSeedPlatesPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                scanUnfilledSeedPlatesPanelLayout
                    .createSequentialGroup()
                    .add(
                        scannerInput,
                        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(
                        jScrollPane1,
                        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(
                        scanUnfilledSeedPlatesPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(removeSelectedButton)
                            .add(removeAllButton))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    locationPanel.setBorder(
        javax.swing.BorderFactory.createTitledBorder(SET_LOCATION_FOR_SEED_PLATES));
    userIdLabel.setText(USER_ID);
    scanLabel.setText(SCAN_DESTINATION);
    scanDestination.setText(BLANK);
    scanDestination.setName("scanDestination");
    scanDestination.addActionListener(new DestinationScanAction());
    locationRemoveAllButton.setText(REMOVE_ALL);
    locationRemoveAllButton.setName("Location_" + REMOVE_ALL);
    locationRemoveAllButton.addActionListener(new RemoveAllAction());
    locationRemoveSelectedButton.setText(REMOVE_SELECTED);
    locationRemoveSelectedButton.setName("Location_" + REMOVE_SELECTED);
    locationRemoveSelectedButton.addActionListener(new RemoveSelectedItemAction());

    org.jdesktop.layout.GroupLayout locationPanelLayout =
        new org.jdesktop.layout.GroupLayout(locationPanel);
    locationPanel.setLayout(locationPanelLayout);
    locationPanelLayout.setHorizontalGroup(
        locationPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                locationPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        locationPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                jScrollPane2,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                246,
                                Short.MAX_VALUE)
                            .add(
                                locationPanelLayout
                                    .createSequentialGroup()
                                    .add(
                                        locationPanelLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(scanLabel)
                                            .add(userIdLabel))
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        locationPanelLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(userIDComboBox, 0, 157, Short.MAX_VALUE)
                                            .add(
                                                scanDestination,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                157,
                                                Short.MAX_VALUE)))
                            .add(
                                org.jdesktop.layout.GroupLayout.TRAILING,
                                locationPanelLayout
                                    .createSequentialGroup()
                                    .add(
                                        locationRemoveAllButton,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        123,
                                        Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(locationRemoveSelectedButton)))
                    .addContainerGap()));
    locationPanelLayout.setVerticalGroup(
        locationPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                locationPanelLayout
                    .createSequentialGroup()
                    .add(
                        locationPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(userIdLabel)
                            .add(
                                userIDComboBox,
                                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(
                        locationPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(scanLabel)
                            .add(
                                scanDestination,
                                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(
                        jScrollPane2,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        111,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        locationPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(locationRemoveSelectedButton)
                            .add(locationRemoveAllButton))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    completeUnloadingButton.setText(COMPLETE_UNLOADING);
    completeUnloadingButton.setName("completeUnloadingButton");
    completeUnloadingButton.addActionListener(new CompleteUnloadAction());

    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()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                locationPanel,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                Short.MAX_VALUE)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, completeUnloadingButton)
                            .add(
                                chipPlatesPanel,
                                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()
                    .addContainerGap()
                    .add(
                        chipPlatesPanel,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        217,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        locationPanel,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        Short.MAX_VALUE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(completeUnloadingButton)
                    .addContainerGap()));
    pack();
  }