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.
Originally posted by Phoebe Song: I've a assignment that needs to click button to close a popup window. How do I do that? It's urgent, thank you very much.
Hi Phoebe. First ease up a bit. You need to show some effort here. In Swing there really is no such thing as a "popup window". There are dialogs which are typically an instance of some JDialog. If you could read the links I posted and then maybe ask some questions that will allow us to help you, that would be great.
You are right. It is a JDialog, and there is JButton on it. My assignment is when I click the JButton, JDialog window is closed. Below is my code, I was trying to close the window when bnCridOK is clicked. Thank you.
[ December 12, 2007: Message edited by: Gregg Bolinger ]