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