This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a class that extends JFrame, and uses contentPane to create a pane with various components. (I'm leaving out all of the fields to keep this brief)
Once the yes button is pushed, a new window is created using identical code, just with different components. That works perfectly. At the end of the sequence of four windows, there is an option to continue, or quit. The continue button just calls code I have placed above.
When it goes back to the original pane, I have artifacts left over. If I uncomment the c.validate, then the next window contains nothing but an empty box.
Since it goes through the four different versions of the window, why isn't it working when it goes back to the original window? I thought validate was the command to use after components have been added or removed in order to lay them out properly again? [ January 25, 2005: Message edited by: C. Alan ]
<a href="http://www.security-forums.com/forum/viewforum.php?f=48" target="_blank" rel="nofollow">Malware Removal</a> - Get your system running like new again.