Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Jframe window builder(window builder help)
Jframe window builder [message #942342] Sat, 13 October 2012 12:20 Go to next message
Eclipse UserFriend
Hi, I am learning Java and i am staring with GUI and i want to make a short game with three Jframes that link to each other. that when the button on the first Jframe is pressed it will take you to the next panel that will say what you have chosen and then go to the third page to show the winner. Please help, i do not know how to switch between Jframes.
Re: Jframe window builder [message #947126 is a reply to message #942342] Tue, 16 October 2012 20:59 Go to previous messageGo to next message
Eclipse UserFriend
Well first of all, you can only design one of the JFrames at a time in WindowBuilder.

Second of all, take a look at JFrame.setDefaultCloseOperation() and swing.WindowConstants. Then decide if you want to have your JFrames HIDE_ON_CLOSE or DISPOSE_ON_CLOSE. Then setup your buttons with listeners which will close the current JFrame and open the next one.
Re: Jframe window builder [message #947366 is a reply to message #942342] Wed, 17 October 2012 03:09 Go to previous message
Eclipse UserFriend
As Michael said, you can use WindowBuilder to create your JFrames (one per class). The logic you use to tie your JFrames together is up to you and there are many ways that you could do it. Michael's suggestions are good. In general, however, this forum is not the correct place to ask Swing how-to questions.
Previous Topic:Child JFrames & JDialogs not showing
Next Topic:Change form format of WindowBuilder
Goto Forum:
  


Current Time: Sun Feb 09 06:03:17 GMT 2025

Powered by FUDForum. Page generated in 0.03620 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top