943,685 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1323
  • Java RSS
Mar 30th, 2006
0

New to Netbeans and Slightly to Java

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dgrblr is offline Offline
7 posts
since Mar 2006
Mar 31st, 2006
0

Re: New to Netbeans and Slightly to Java

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Mar 31st, 2006
0

Re: New to Netbeans and Slightly to Java

Quote 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!!!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dgrblr is offline Offline
7 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Hey check out my prog. It has an error can u find it?
Next Thread in Java Forum Timeline: compiling from command line





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC