Пример #1
0
 /**
  * This method initializes this
  *
  * @return void
  */
 private void initialize() {
   this.setSize(299, 77);
   this.setPreferredSize(new Dimension(299, 77));
   this.setContentPane(getJContentPane());
   this.setUndecorated(true);
   this.setAlwaysOnTop(true);
   this.WerteSetzen(true);
   NamePatient.setCaretPosition(0);
   this.addKeyListener(this);
 }
Пример #2
0
 public void WerteSetzen(boolean aufName) {
   String[] werte = Eltern.getWerte();
   NamePatient.setText(werte[0]);
   Rezeptnummer.setText(werte[1]);
   Dauer.setText(werte[3]);
   BeginnStunde.setText(werte[2].split(":")[0]);
   BeginnMinute.setText(werte[2].split(":")[1]);
   EndeStunde.setText(werte[4].split(":")[0]);
   EndeMinute.setText(werte[4].split(":")[1]);
   if (aufName) {
     NamePatient.requestFocus();
     NamePatient.setCaretPosition(0);
   }
 }