I have created to GUI interfaces using netbeans drag n drop. The first interface has a button upon clicking which opens the second interface. I want to close the 1st interface as soon as I click the button in it so that only the second interface is displayed.
How can I do that?
titan5
0
Junior Poster in Training
Recommended Answers
Jump to PostJust setVisible(false) /* temporary */ or dispose() /* permanent */ the first window in the button's ActionListener
Jump to PostJames was faster...
BTW why you messing with drap and drop if you do not know basics? Your teacher will easily discover you used IDE to create application and you may loose marks because of it...
All 5 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
titan5
0
Junior Poster in Training
HelloMe
0
Junior Poster in Training
titan5
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.