summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/TextField1.inc
blob: a56259adf82cdbff603dcb78ada80072abc92c95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* TextField1.inc */

public void actionPerformed(ActionEvent event)
{
  Object obj = event.getSource();
  if (obj instanceof TextField) {
    System.out.println(
      "ButtonAction: "+event.getActionCommand()
    );
  } else if (obj instanceof Button) {
    if (event.getActionCommand().equals("Ende")) {
      endDialog();
    }
  }
}