Results 1 to 6 of 6
  1. #1
    dinosoep is offline Senior Member
    Join Date
    Nov 2009
    Posts
    150
    Rep Power
    5

    Default gui builder vs from scratch

    what is used the most, what is used at work?
    are there any benefits apart from eficiency in handwritten gui?

    and when is it ok to use the null layout?

    I use gui builders as I am to lazy and the time it takes to create something gets way shorter
    but I once saw a post of one of the mods here stating you have more control if you handwrite it can someone enlighten this for me, I totally disagree you know :p

    (and sorry for my english, its not as good as my java yet :p)

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

    Default

    My own non-professional opinion: if you're just learning Swing (which isn't you), then go through the tutorials and learn to do it by hand so that you can gain an understanding of the underpinnings of the library. We see too many folks using the GUI builder as if this were C#, and then due to misconceptions, fall flat on their face when they try to do the simplest extensions of their code. If you already have this understanding and don't mind being married to a GUI builder, then use the builder if you find it works best for you.

  3. #3
    alacn's Avatar
    alacn is offline Senior Member
    Join Date
    Jun 2010
    Location
    UK. near London
    Posts
    118
    Rep Power
    0

    Default

    ok i recently started learning GUI about a month back and i posted a similiar thread. from my expierance in the last month its best to do everything from scratch so that you understand everything thats going on. and after a few weeks, it feels natrual.
    i would never use a GUI builder.

    plus i think the biggest thing u lose out on is getting a true understanding of layout managers if u use GUI builder.
    Teaching myself java so that i can eventually join the industry! Started in June 2010

  4. #4
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    Personally, in any language I do, I write it from scratch. I see tools for dialog building, GUI building, and so on, but I never use them. Because of my background in web development, I've seen it go on too much that builders (like DreamWeaver, for example in web programming) add too much spaghetti code and so on to the program/application/whatever. Despite my laziness when programming, I like to make sure none of this happens, so I write it myself.

    But it's all up to personal opinion; if you find that you want to build the meat of the program rather than spend your time on the GUI, maybe a builder is right for you. Try both ways--write some programs from scratch and some with a builder, and see which is better.

    Much luck!

  5. #5
    dinosoep is offline Senior Member
    Join Date
    Nov 2009
    Posts
    150
    Rep Power
    5

    Default

    thanks for the advice so far.
    I will try to write the gui of the coming programs from scratch and after that I'll decide.

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,373
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by dinosoep View Post
    thanks for the advice so far.
    I will try to write the gui of the coming programs from scratch and after that I'll decide.
    It's not so much a gui builder to blame as well as the fact that lots of people cram all their controller code (and their model code) in their Swing components and get stuck there; if they'd left their components for just a view (built by the gui builder) things would be fine. Of course the code generated by those builders is, to say the least, not very good and very 'mechanical'.

    kind regards,

    Jos

Similar Threads

  1. How to use process builder
    By javameanslife in forum Advanced Java
    Replies: 1
    Last Post: 01-21-2010, 07:46 AM
  2. Builder
    By AgentApe in forum New To Java
    Replies: 4
    Last Post: 12-02-2009, 09:33 PM
  3. Replies: 1
    Last Post: 08-10-2009, 11:51 AM
  4. Formula Builder
    By rbs100 in forum Advanced Java
    Replies: 1
    Last Post: 07-03-2009, 06:57 PM
  5. Help with NetBeans 5 GUI builder
    By Daniel in forum NetBeans
    Replies: 2
    Last Post: 07-04-2007, 07:08 AM

Posting Permissions

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