Results 1 to 7 of 7
Thread: GUI design
- 11-10-2010, 04:48 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
GUI design
Hi everyone,
i need to design a GUI like a normal installation wizard to install something but im stuck at the connection between JFrame and JPanel.. these are the questions in my mind now..
1. Is netbeans good for designing GUI?
im just started to learn it now...
2. how to implement page switching method in a proper way? for example i press next button to next page...
i've tried the JFrame to JFrame method... when i need to open a new page i just create a new JFrame..
new Page2(); //new frame for page 2
dispose(); //terminate current frame
but i noticed that it is kidda slow when switching between JFrame...
maybe there is a way to solve this problem??
so i try to implement it with 1 JFrame with multiple JPanel...
press next button to close the current panel and open the new one....
but if i use this method im stuck at Netbeans GUI tool, it don't allow me to overlap panels...
Thanks !
- 11-10-2010, 04:59 PM #2
Look into CardLayout. Google is your friend.
And no, netbeans is not good for designing a GUI. Ditch the IDE and do it by hand.
- 11-10-2010, 05:28 PM #3
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
Thanks Kevin...
previously im using eclipse to write my own GUI using GridBagLayout but i have big problem in adjusting alignment... that is why i change to Netbean to use the GUI designer tool to develop my GUI
ok so should i just go back to eclipse and continue my GUI design with CardLayout? or Netbeans is much better than eclipse?
-
You are learning -- so stick with Eclipse and hand coding as it will give you a much greater understanding of what you're doing.
Also, don't try to make GridBagLayout do more than it was intended to do. Often you're better off nesting JPanels with each one using a simple layout.
- 11-10-2010, 05:39 PM #5
You know my thoughts. Don't use a GUI designer. Whether netbeans is "much better" than eclipse isn't really an answerable question. It's up to you which you like better.
Last edited by KevinWorkman; 11-10-2010 at 05:42 PM.
- 11-10-2010, 05:57 PM #6
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
thx fubarable... i think i get what you mean.. for example next and previous buttons place it on 1 panel with simple layout instead of using GridBagLayout for the whole panel..
i thought GridBagLayout could handle all the placement for me... no wonder it cause me so much troubles ha..
- 11-10-2010, 05:59 PM #7
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Design Editor
By Psyclone in forum NetBeansReplies: 5Last Post: 02-04-2010, 04:28 PM -
Design MVC in java
By dilanka007 in forum New To JavaReplies: 2Last Post: 01-06-2010, 12:34 PM -
help: I want to design 2D map?
By mofaker in forum AWT / SwingReplies: 4Last Post: 10-29-2009, 12:34 AM -
JSP Design.
By makpandian in forum NetBeansReplies: 0Last Post: 04-20-2009, 01:21 PM -
Doubt in Design doc
By Arulraj in forum Forum LobbyReplies: 0Last Post: 06-10-2008, 11:32 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks