/** * 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() { jLabel2 = new javax.swing.JLabel(); txtIDNO = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); txtOldPassword = new javax.swing.JPasswordField(); txtNewPassword = new javax.swing.JPasswordField(); Back = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); txtConfirmPassword = new javax.swing.JPasswordField(); btnSuperUserSubmit = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Change Password"); jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel2.setText("IDNO :"); txtIDNO.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel3.setText("Old Password :"******"Tahoma", 0, 18)); // NOI18N jLabel4.setText("New Password :"******"Tahoma", 0, 18)); // NOI18N txtNewPassword.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N Back.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N Back.setText("Back"); Back.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BackActionPerformed(evt); } }); jLabel5.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel5.setText("Confirm Password :"******"Tahoma", 0, 18)); // NOI18N btnSuperUserSubmit.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N btnSuperUserSubmit.setText("Submit"); btnSuperUserSubmit.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSuperUserSubmitActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGap(32, 32, 32) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(jLabel3)) .addGap(118, 118, 118) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addComponent( txtIDNO, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement .RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(txtOldPassword))) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, layout .createSequentialGroup() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( btnSuperUserSubmit, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5) .addComponent(jLabel4)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txtConfirmPassword) .addComponent( Back, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE) .addComponent( txtNewPassword, javax.swing.GroupLayout.Alignment.TRAILING)))) .addGap(29, 29, 29))); layout.setVerticalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addContainerGap(52, Short.MAX_VALUE) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent( txtIDNO, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(28, 28, 28) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent( txtOldPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(30, 30, 30) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( txtNewPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addGap(30, 30, 30) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( txtConfirmPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addGap(46, 46, 46) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( Back, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( btnSuperUserSubmit, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(61, 61, 61))); pack(); setLocationRelativeTo(null); } // </editor-fold>//GEN-END:initComponents
/** * This method is called from within the constructor to initialize the form. WARNING: Do NOT * modify this code. The content of this method is always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { box1 = new javax.swing.JTextField(); box2 = new javax.swing.JTextField(); box3 = new javax.swing.JTextField(); box4 = new javax.swing.JTextField(); box5 = new javax.swing.JTextField(); box6 = new javax.swing.JTextField(); box7 = new javax.swing.JTextField(); box8 = new javax.swing.JTextField(); box9 = new javax.swing.JTextField(); error_rectify = new javax.swing.JLabel(); refresh = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); Back = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setBounds(new java.awt.Rectangle(450, 200, 400, 500)); setMaximumSize(new java.awt.Dimension(400, 500)); setMinimumSize(new java.awt.Dimension(400, 500)); setPreferredSize(new java.awt.Dimension(400, 500)); setResizable(false); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); box1.setEditable(false); box1.setFont(new java.awt.Font("Tahoma", 0, 100)); // NOI18N box1.setHorizontalAlignment(javax.swing.JTextField.CENTER); box1.setFocusable(false); box1.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { box1MouseClicked(evt); } }); getContentPane().add(box1, new org.netbeans.lib.awtextra.AbsoluteConstraints(48, 50, 100, 100)); box2.setEditable(false); box2.setFont(new java.awt.Font("Tahoma", 0, 100)); // NOI18N box2.setHorizontalAlignment(javax.swing.JTextField.CENTER); box2.setFocusable(false); box2.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { box2MouseClicked(evt); } }); getContentPane() .add(box2, new org.netbeans.lib.awtextra.AbsoluteConstraints(148, 50, 100, 100)); box3.setEditable(false); box3.setFont(new java.awt.Font("Tahoma", 0, 100)); // NOI18N box3.setHorizontalAlignment(javax.swing.JTextField.CENTER); box3.setFocusable(false); box3.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { box3MouseClicked(evt); } }); getContentPane() .add(box3, new org.netbeans.lib.awtextra.AbsoluteConstraints(248, 50, 100, 100)); box4.setEditable(false); box4.setFont(new java.awt.Font("Tahoma", 0, 100)); // NOI18N box4.setHorizontalAlignment(javax.swing.JTextField.CENTER); box4.setFocusable(false); box4.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { box4MouseClicked(evt); } }); getContentPane() .add(box4, new org.netbeans.lib.awtextra.AbsoluteConstraints(48, 150, 100, 100)); box5.setEditable(false); box5.setFont(new java.awt.Font("Tahoma", 0, 100)); // NOI18N box5.setHorizontalAlignment(javax.swing.JTextField.CENTER); box5.setFocusable(false); box5.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { box5MouseClicked(evt); } }); getContentPane() .add(box5, new org.netbeans.lib.awtextra.AbsoluteConstraints(148, 150, 100, 100)); box6.setEditable(false); box6.setFont(new java.awt.Font("Tahoma", 0, 100)); // NOI18N box6.setHorizontalAlignment(javax.swing.JTextField.CENTER); box6.setFocusable(false); box6.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { box6MouseClicked(evt); } }); getContentPane() .add(box6, new org.netbeans.lib.awtextra.AbsoluteConstraints(248, 150, 100, 100)); box7.setEditable(false); box7.setFont(new java.awt.Font("Tahoma", 0, 100)); // NOI18N box7.setHorizontalAlignment(javax.swing.JTextField.CENTER); box7.setFocusable(false); box7.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { box7MouseClicked(evt); } }); getContentPane() .add(box7, new org.netbeans.lib.awtextra.AbsoluteConstraints(48, 250, 100, 100)); box8.setEditable(false); box8.setFont(new java.awt.Font("Tahoma", 0, 100)); // NOI18N box8.setHorizontalAlignment(javax.swing.JTextField.CENTER); box8.setFocusable(false); box8.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { box8MouseClicked(evt); } }); getContentPane() .add(box8, new org.netbeans.lib.awtextra.AbsoluteConstraints(148, 250, 100, 100)); box9.setEditable(false); box9.setFont(new java.awt.Font("Tahoma", 0, 100)); // NOI18N box9.setHorizontalAlignment(javax.swing.JTextField.CENTER); box9.setFocusable(false); box9.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { box9MouseClicked(evt); } }); getContentPane() .add(box9, new org.netbeans.lib.awtextra.AbsoluteConstraints(248, 250, 100, 100)); getContentPane() .add(error_rectify, new org.netbeans.lib.awtextra.AbsoluteConstraints(456, 424, 40, 20)); refresh.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N refresh.setText("Refresh"); refresh.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { refreshActionPerformed(evt); } }); getContentPane() .add(refresh, new org.netbeans.lib.awtextra.AbsoluteConstraints(48, 377, -1, 57)); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel1.setText("Click any square to begin."); getContentPane() .add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(72, 11, 276, 28)); Back.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N Back.setText("Back"); Back.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BackActionPerformed(evt); } }); getContentPane() .add(Back, new org.netbeans.lib.awtextra.AbsoluteConstraints(207, 377, 141, 57)); setBounds(450, 200, 400, 500); } // </editor-fold>//GEN-END:initComponents