Friday, August 9, 2013

Java Clear Text Box And Combo Box

 public void clear(){
       
             try{

                 jText_Allowence.setText("");
                 jTextArea_Details.setText("");
                 jText_Deduction.setText("");
                  jCombo_EmpList.removeAllItems();
                  jCombo_Month.removeAllItems();
                  // set one blank
                  FillCombo();
                  // call dropdown
              
              }catch (Exception e) {
           
                       JOptionPane.showMessageDialog(this, e, "Invalid", JOptionPane.ERROR_MESSAGE);
        }
        }

No comments:

Post a Comment