Originally posted by Jennifer Wallace:
Thanks ! validate() resets my textfield beautifully. Sorry for the delayed response. Just saw your reply today.
But looks like I have worked up with the wrong listener. Because apparently, the componentshown method of Component Listener is invoked only once initially (atleast in my code) and is not invoked when the applet is repainted on re gaining focus. This contradicts what I saw in the demo applet of java tutorial. Would this not work on applets ?
Also, I tried a couple of others. They didn't work as well - Focus Listener, WindowFocuslistener, WindowListener (the last 2 work only for windows!)
Which listener should I be using, to capture the moment of my return to the applet screen ?
Thanks,
Jennifer