/** * 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(); jPanel2 = new javax.swing.JPanel(); jLabel8 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); tfsurname = new javax.swing.JTextField(); tffirstname = new javax.swing.JTextField(); tflastname = new javax.swing.JTextField(); cmbclass = new javax.swing.JComboBox(); jLabel13 = new javax.swing.JLabel(); jXDOB = new com.toedter.calendar.JDateChooser(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); cmbstaffgender1 = new javax.swing.JComboBox(); cmbresidence = new javax.swing.JComboBox(); cmbmeals = new javax.swing.JComboBox(); cmbtransport = new javax.swing.JComboBox(); jLabel18 = new javax.swing.JLabel(); jbtsave = new javax.swing.JButton(); btnok = new javax.swing.JButton(); jLabel17 = new javax.swing.JLabel(); jrstudent = new javax.swing.JRadioButton(); jralumni = new javax.swing.JRadioButton(); jbtcancel2 = new javax.swing.JButton(); jLabel6 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setIconImage(selects.QueryMainDetails.setIcon()); setResizable(false); jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jLabel8.setForeground(new java.awt.Color(0, 0, 240)); jLabel8.setText("Surname"); jPanel2.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(57, 14, -1, -1)); jLabel10.setForeground(new java.awt.Color(0, 0, 240)); jLabel10.setText("First Name"); jPanel2.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(57, 68, -1, -1)); jLabel11.setForeground(new java.awt.Color(0, 0, 240)); jLabel11.setText("Last Name"); jPanel2.add(jLabel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(57, 124, -1, -1)); jLabel12.setForeground(new java.awt.Color(0, 0, 240)); jLabel12.setText("Gender"); jPanel2.add(jLabel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(57, 183, -1, -1)); tfsurname.setEnabled(false); jPanel2.add(tfsurname, new org.netbeans.lib.awtextra.AbsoluteConstraints(117, 11, 193, -1)); tffirstname.setEnabled(false); jPanel2.add(tffirstname, new org.netbeans.lib.awtextra.AbsoluteConstraints(117, 65, 193, -1)); tflastname.setEnabled(false); jPanel2.add(tflastname, new org.netbeans.lib.awtextra.AbsoluteConstraints(117, 121, 193, -1)); cmbclass.setEnabled(false); cmbclass.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmbclassActionPerformed(evt); } }); jPanel2.add(cmbclass, new org.netbeans.lib.awtextra.AbsoluteConstraints(581, 65, 208, -1)); jLabel13.setForeground(new java.awt.Color(0, 0, 240)); jLabel13.setText("Date of Birth"); jPanel2.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(407, 14, -1, -1)); jXDOB.setEnabled(false); jPanel2.add(jXDOB, new org.netbeans.lib.awtextra.AbsoluteConstraints(581, 11, 208, -1)); jLabel14.setForeground(new java.awt.Color(0, 0, 240)); jLabel14.setText("Class"); jPanel2.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(407, 68, -1, -1)); jLabel15.setForeground(new java.awt.Color(0, 0, 240)); jLabel15.setText("Residence"); jPanel2.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(407, 124, -1, -1)); jLabel16.setForeground(new java.awt.Color(0, 0, 240)); jLabel16.setText("Meals"); jPanel2.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(407, 183, -1, -1)); cmbstaffgender1.setModel( new javax.swing.DefaultComboBoxModel(new String[] {"Select", "MALE", "FEMALE"})); cmbstaffgender1.setEnabled(false); jPanel2.add( cmbstaffgender1, new org.netbeans.lib.awtextra.AbsoluteConstraints(117, 180, 193, -1)); cmbresidence.setEnabled(false); jPanel2.add(cmbresidence, new org.netbeans.lib.awtextra.AbsoluteConstraints(581, 121, 208, -1)); cmbmeals.setEnabled(false); jPanel2.add(cmbmeals, new org.netbeans.lib.awtextra.AbsoluteConstraints(581, 180, 208, -1)); cmbtransport.setEnabled(false); jPanel2.add(cmbtransport, new org.netbeans.lib.awtextra.AbsoluteConstraints(117, 250, 193, -1)); jLabel18.setForeground(new java.awt.Color(0, 0, 240)); jLabel18.setText("Transport"); jPanel2.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(57, 253, -1, -1)); jbtsave.setText("Transfer"); jbtsave.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtsaveActionPerformed(evt); } }); jPanel2.add(jbtsave, new org.netbeans.lib.awtextra.AbsoluteConstraints(720, 330, -1, -1)); btnok.setText("Ok"); btnok.setEnabled(false); btnok.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnokActionPerformed(evt); } }); jPanel2.add(btnok, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 330, -1, -1)); jLabel17.setForeground(new java.awt.Color(0, 0, 240)); jLabel17.setText("More Details"); jPanel2.add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(407, 253, -1, -1)); jrstudent.setForeground(new java.awt.Color(0, 0, 240)); jrstudent.setText("Student"); jrstudent.setEnabled(false); jrstudent.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jrstudentActionPerformed(evt); } }); jPanel2.add(jrstudent, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 250, -1, 20)); jralumni.setForeground(new java.awt.Color(0, 0, 240)); jralumni.setText("Alumni"); jralumni.setEnabled(false); jralumni.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jralumniActionPerformed(evt); } }); jPanel2.add(jralumni, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 280, 120, -1)); jbtcancel2.setText("Cancel"); jbtcancel2.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtcancel2ActionPerformed(evt); } }); jPanel2.add(jbtcancel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 330, -1, -1)); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 891, Short.MAX_VALUE) .addGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addContainerGap() .addComponent( jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 871, Short.MAX_VALUE) .addContainerGap()))); jPanel1Layout.setVerticalGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 409, Short.MAX_VALUE) .addGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addGap(19, 19, 19) .addComponent( jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(19, 19, 19)))); jLabel6.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel6.setForeground(new java.awt.Color(0, 0, 240)); jLabel6.setText("Edit Student Details"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addContainerGap() .addComponent( jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) .addGroup( layout .createSequentialGroup() .addGap(328, 328, 328) .addComponent(jLabel6) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); layout.setVerticalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, layout .createSequentialGroup() .addContainerGap() .addComponent(jLabel6) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE) .addComponent( jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap())); pack(); setLocationRelativeTo(null); } // </editor-fold>//GEN-END:initComponents
/** * This method is called from within the constructor to initialize the form. WARNING: Do NOT * modify this code. The content of this method is always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jtapaymentfor = new javax.swing.JTextArea(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jsregno = new javax.swing.JSpinner(); jsammount = new javax.swing.JSpinner(); jButton5 = new javax.swing.JButton(); jButton7 = new javax.swing.JButton(); jLabel8 = new javax.swing.JLabel(); cmbbordingdetails = new javax.swing.JComboBox(); btnclose = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Fee Payment"); setIconImage(selects.QueryMainDetails.setIcon()); setResizable(false); jLabel6.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel6.setForeground(new java.awt.Color(0, 0, 240)); jLabel6.setText("Edit Fee"); jLabel10.setForeground(new java.awt.Color(0, 0, 240)); jLabel10.setText("Registration Number"); jtapaymentfor.setColumns(20); jtapaymentfor.setRows(5); jtapaymentfor.setText("School Fee"); jScrollPane1.setViewportView(jtapaymentfor); jLabel11.setForeground(new java.awt.Color(0, 0, 240)); jLabel11.setText("Payment For"); jLabel12.setForeground(new java.awt.Color(0, 0, 240)); jLabel12.setText("Ammount"); jButton5.setText("Cancel"); jButton5.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton5ActionPerformed(evt); } }); jButton7.setText("Edit"); jButton7.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton7ActionPerformed(evt); } }); jLabel8.setForeground(new java.awt.Color(0, 0, 240)); jLabel8.setText("Select Boarding Details"); cmbbordingdetails.setModel( new javax.swing.DefaultComboBoxModel(new String[] {"Select", "Border", "Day Scholar"})); cmbbordingdetails.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmbbordingdetailsActionPerformed(evt); } }); btnclose.setText("Close"); btnclose.setEnabled(false); btnclose.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btncloseActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout .createSequentialGroup() .addGap(52, 52, 52) .addGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addComponent(jButton5) .addGap(290, 290, 290) .addComponent(btnclose) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton7)) .addGroup( jPanel1Layout .createSequentialGroup() .addGroup( jPanel1Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel10) .addComponent(jLabel8) .addComponent(jLabel11)) .addGap(79, 79, 79) .addGroup( jPanel1Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1) .addGroup( jPanel1Layout .createSequentialGroup() .addComponent( jsregno, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement .RELATED, 132, Short.MAX_VALUE) .addComponent(jLabel12) .addGap(75, 75, 75) .addComponent( jsammount, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent( cmbbordingdetails, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addGap(60, 60, 60)) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout .createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel6) .addGap(387, 387, 387))); jPanel1Layout.setVerticalGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addContainerGap() .addComponent( jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26) .addGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( cmbbordingdetails, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addGap(61, 61, 61) .addGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( jsregno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10) .addComponent( jsammount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel12)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE) .addGroup( jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( jPanel1Layout .createSequentialGroup() .addComponent( jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(94, 94, 94) .addGroup( jPanel1Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton7) .addComponent(jButton5) .addComponent(btnclose))) .addComponent(jLabel11)) .addGap(26, 26, 26))); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent( jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); layout.setVerticalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent( jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); pack(); setLocationRelativeTo(null); } // </editor-fold>//GEN-END:initComponents