DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   New to Netbeans and Slightly to Java (http://www.daniweb.com/forums/thread42272.html)

dgrblr Mar 30th, 2006 11:31 am
New to Netbeans and Slightly to Java
 
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.

jwenting Mar 31st, 2006 1:38 am
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.

dgrblr Mar 31st, 2006 9:29 am
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!!!!!


All times are GMT -4. The time now is 2:07 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC