Beispiel #1
0
 /**
  * This method initializes descriptionTextField
  *
  * @return javax.swing.JTextField
  */
 private JTextField getDescriptionTextField() {
   if (descriptionTextField == null) {
     descriptionTextField = new JTextField(20);
     if (!insert) {
       descriptionTextField.setText(examType.getDescription());
       lastdescription = examType.getDescription();
     }
   }
   return descriptionTextField;
 }
Beispiel #2
0
 /**
  * This is the default constructor; we pass the arraylist and the selectedrow because we need to
  * update them
  */
 public ExamTypeEdit(JFrame owner, ExamType old, boolean inserting) {
   super(owner, true);
   insert = inserting;
   examType = old; // disease will be used for every operation
   lastdescription = examType.getDescription();
   initialize();
 }
Beispiel #3
0
 /**
  * This method initializes codeTextField
  *
  * @return javax.swing.JTextField
  */
 private JTextField getCodeTextField() {
   if (codeTextField == null) {
     codeTextField = new VoLimitedTextField(2);
     if (!insert) {
       codeTextField.setText(examType.getCode());
       codeTextField.setEnabled(false);
     }
   }
   return codeTextField;
 }