1 | Notice the reference to the class variable applet in actionPerformed(...) |
2 | The TextFieldHandler constructor accepts and stores an Applet object: private Applet applet; public TextFieldHandler( Applet a ) { applet = a; } |
3 | Thus the handler works with any applet |