Results 1 to 7 of 7

Thread: GUI design

  1. #1
    kennyblue is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default 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 !

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default

    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.

  3. #3
    kennyblue is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default

    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?

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    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.

  5. #5
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default

    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 06:42 PM.

  6. #6
    kennyblue is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    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.
    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..

  7. #7
    kennyblue is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by KevinWorkman View Post
    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.
    i guess i will stick with eclipse since im more familiar with the environment over there... btw thx alot for all the tips.. i know the direction now:D

Similar Threads

  1. Design Editor
    By Psyclone in forum NetBeans
    Replies: 5
    Last Post: 02-04-2010, 05:28 PM
  2. Design MVC in java
    By dilanka007 in forum New To Java
    Replies: 2
    Last Post: 01-06-2010, 01:34 PM
  3. help: I want to design 2D map?
    By mofaker in forum AWT / Swing
    Replies: 4
    Last Post: 10-29-2009, 01:34 AM
  4. JSP Design.
    By makpandian in forum NetBeans
    Replies: 0
    Last Post: 04-20-2009, 02:21 PM
  5. Doubt in Design doc
    By Arulraj in forum Forum Lobby
    Replies: 0
    Last Post: 06-10-2008, 12:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •