New to Netbeans and Slightly to Java

Reply

Join Date: Mar 2006
Posts: 7
Reputation: dgrblr is an unknown quantity at this point 
Solved Threads: 0
dgrblr dgrblr is offline Offline
Newbie Poster

New to Netbeans and Slightly to Java

 
0
  #1
Mar 30th, 2006
I have created two GUIs with netbeans. I simply do not know how to call them to display on the screen. I'm sure it's simple, but I must not be understanding properly. I created the GUIs as JPanels and all they have on them right now is some labels and buttons. After the first screen renders I want to click a button to display the second screen. Can someone point me in the right direction with some coding help this first time around? I can use samples to figure out GUIs from there.

Greatly appreciate it.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: New to Netbeans and Slightly to Java

 
0
  #2
Mar 31st, 2006
A JPanel has to exist inside something else.
To show it on screen that will usually be a JFrame or a JDialog.

When you have one of those you can easily display them, both have methods to achieve that.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 7
Reputation: dgrblr is an unknown quantity at this point 
Solved Threads: 0
dgrblr dgrblr is offline Offline
Newbie Poster

Re: New to Netbeans and Slightly to Java

 
0
  #3
Mar 31st, 2006
Originally Posted by dgrblr
I have created two GUIs with netbeans. I simply do not know how to call them to display on the screen. I'm sure it's simple, but I must not be understanding properly. I created the GUIs as JPanels and all they have on them right now is some labels and buttons. After the first screen renders I want to click a button to display the second screen. Can someone point me in the right direction with some coding help this first time around? I can use samples to figure out GUIs from there.

Greatly appreciate it.
Boy, that was easy! I read two "textbooks" and one Java reference book and didn't come up with the information that I had to start with a JFrame. Sorry to appear so new, but I am.

Now I get the read all through these same books and try the internet search to try to find out how and when to use MDI. Multiple Document Interfaces weren't too hard to read about in other languages, but ..........

Thanks for your help. This forum has been great to help me out!!!!!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC