A Flexible Constructor
Notice the reference to the class variable applet in actionPerformed(…)
The TextFieldHandler constructor accepts and stores an Applet object: private Applet applet; public TextFieldHandler( Applet a ) { applet = a; }
Thus the handler works with any applet