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.
Hi, This is my first post in javaRanch, Hope I vl get my solution. Let me share the issue, What i had.
I am doing a project completely based on swing components. In that In the topleft corner of the frame, There will be a new, save and open buttons for their respective functions. If the user clicks the Save button after enter the inputs & If the same user clicks a new button means, It should create a new frame that contains a fresh application page that should not contain, What user entered before clicking new button. The challenging thing is that, When user clicks new button, The new frame should appear by hiding the existing frame.
It's not a good approach to show multiple JFrame instances in one application. Instead, you can as well use dialogs or internal frames (inside the main application frame). You should check this tutorial:
To make a window that is dependent on another window — disappearing when the other window is iconified, for example — use a dialog instead of frame.. To make a window that appears within another window, use an internal frame.
The quieter you are, the more you are able to hear.