Please look into this problem. I have tried to state the problem in simple terms.
Class A extends Canvas.
Class B extends
applet and has Cardlayout
The first card is a panel,has borderlayout.
- This contains an instance of "A" in the "CENTER"
- Also, has a panel with a textfield in "SOUTH"
When I leave the browser window containing the applet, and return.
the Canvas in the center is repainted and refreshes itself. But the lower panel is not reset. (The textfield still retains the previous state).
To reset the textfield, I tried to implement class B as a ComponentListener and tried reseting the textfield values in
componentShown(ComponentEvent ce) method of the inteface. Doesnt seem to work on the textfield ?
Is this the right approach ? if so, why would this be not working ?
[ June 26, 2002: Message edited by: Jennifer Wallace ]