Subversion Repositories wimsdev

Rev

Blame | Last modification | View Log | RSS feed

  1. package rene.gui;
  2.  
  3.  
  4. /**
  5. A text field, which can transfer focus to the next text field,
  6. when return is pressed.
  7. */
  8.  
  9. public class FormTextField extends MyTextField
  10.     implements DoActionListener
  11. {       public FormTextField (String s)
  12.         {       super();
  13.                 TextFieldActionListener T=
  14.                     new TextFieldActionListener(this,"");
  15.                 addActionListener(T);
  16.                 setText(s);
  17.         }
  18.         public void doAction (String o)
  19.         {       transferFocus();
  20.         }
  21.         public void itemAction (String o, boolean flag) {}
  22. }
  23.