Hi, Bradley here.
I am currently learning JAVA GUI programming in NetBeans and was wondering how you go about changing the GUI window, or moving to a different one, and then going back.
Any help would be much appreciated!
Regards, Bradley.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hi, Bradley here.
I am currently learning JAVA GUI programming in NetBeans and was wondering how you go about changing the GUI window, or moving to a different one, and then going back.
Any help would be much appreciated!
Regards, Bradley.
You're using the NetBeans GUIBuilder (graphical, drag and drop GUI creation), or have you coded the GUI "by hand?"
While knowing that will be helpful, the typical process is a parent window is open, a choice is made in that window that opens another, and a choice is made in the new window that either closes it and reverts to the parent or causes another window to open with the same possible outcomes. This can go on forever (boring and tedious), or stay close to the original parent. How you accomplish that is dependent on your answer to my question.
If you're using the GUIBuilder, then most here will not be able to help you, because that's an IDE question, not a Java coding question. If you're coding by hand, post a short, runnable example of an attempt to do what I've described above, and we'll help you sort it out whether it currently works or not.
tazeunite00 (August 29th, 2014)
You can either create a new JFrame as an additional, independent window, or a JDialog if you want a popup. If you want the popup you could also use JOptionPane if its just something simple like an error message or a notification. Read the API's for these classes to learn how to use them properly.
tazeunite00 (August 29th, 2014)
Hi Guys.
I really appreciate your help. I am using the NetBeans GUIBuilder.
That is OK if you aren't able to help me out.
Regards, Bradley.
Thread moved.
There are multiple online Netbeans GUIBuilder references and tutorials. Just search for them.
Good luck!