Development java GUI builder

Discussion in 'Software' started by alpaca, 5 May 2010.

  1. alpaca

    alpaca llama eats dremel

    Joined:
    27 Jan 2009
    Posts:
    1,132
    Likes Received:
    45
    Hi guys,

    I was wondering if there was a good interface builder for java out there. It would be nice if it is Eclipse-based, as I'm using that program to write the rest of the program.

    I just have this problem with swing, if i see it, i can understand it, and modify it to fit my preferences, but writing an interface out of the blue is still too difficult.:sigh:

    Ideally it should have a WYSIWYG window and a generated code window, so i can view them together and see what I do if i modify one or the other. Or am I being difficult right now?:worried:

    alpaca
     
  2. masterjonny

    masterjonny What's a Dremel?

    Joined:
    5 Mar 2010
    Posts:
    316
    Likes Received:
    23
    NetBeans has a GUI builder, but 9 times out of 10 writing your own GUI will lead to much better code.

    Like NetBeans will try to use the GridBag layout manager, which is good, very powerful layout manager, but if your new to Java it can prove quite complicated. As well as this it has hell of a lot of wasted code.

    Like say you want a panel, with a grid layout in, and in one cell of the grid you want a border layout. Well to do that properly is 6 or 7 lines of code, but when NetBeans does it on the other hand, it starts using absolute positioning and all sorts.

    Try drawing you GUI, then split the different sections into panels, and try and work out the layout managers from that. The most common mistake people get is calling the "add" method for the various components in the wrong order.
     
    alpaca likes this.
  3. brendon9x

    brendon9x What's a Dremel?

    Joined:
    5 May 2010
    Posts:
    1
    Likes Received:
    1
    Mindsilver?

    You may also want to look at Mindsilver GUIDE. I will mention that I am one of the authors, but GUIDE was written using itself, so there's nothing that can't be done in it.

    Regards,
    Brendon.
     
    alpaca likes this.
  4. alpaca

    alpaca llama eats dremel

    Joined:
    27 Jan 2009
    Posts:
    1,132
    Likes Received:
    45
    thanks guys. i'll look into it. especially this GUIDE looks promising...

    have some rep you both.
     
  5. masterjonny

    masterjonny What's a Dremel?

    Joined:
    5 Mar 2010
    Posts:
    316
    Likes Received:
    23
    Do I sense universe ending paradoxes brewing :lol:
     

Share This Page