im creating a prototype for a hotel using netbeans ide 7.0. I used the drag and drop in designing the buttons, panels, label etc... then what i want to happen is when the button is clicked a jpanel/ jframe that i did will appear. How would i do that? I don't even know whats that called so i am having a hard time searching it in the net. All help is appreciated. Thank you.
stakeMyHeart 0 Newbie Poster
Recommended Answers
Jump to Postyou mean a second screen?
MySecondFrame sFrame = new MySecondFrame();
Jump to Postthat's great: the solution to step one is in my previous post. (well, I did use a JFrame for both parts here) but just add a JPanel to the JFrame and you're golden :P
for the second part: check if you can find something like a dispose method for a …
All 5 Replies
stultuske 1,116 Posting Maven Featured Poster
stakeMyHeart 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
stakeMyHeart 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
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.