Results 1 to 9 of 9
  1. #1
    mig
    mig is offline Member
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    0

    Default Preferred way to code

    Hi

    I am just starting to learn GUI. I am using NetBeans and I was wondering how people code their program. When you create a desktop project, it provides a GUI sidebar for adding components on your program. Do you use this feature when you are coding your program? If so, what is the advantage other than it providing you a starting point? Or do you code everything by yourself?

    Thanks

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,939
    Rep Power
    8

    Default

    Almost everybody here will recommend against using the GUI builder until you understand how to program Swing better.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    The NetBeans GUI builder, aka Matisse, is definitely not a beginner's tool. Once you thoroughly understand Swing coding, you could invest time in learning its quirks, or not. Trying to simultaneously learn both Swing and Matisse is like trying to learn to drive in a F1 car -- easy way to crash and burn ;)

    db

  4. #4
    mig
    mig is offline Member
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    0

    Default

    I see. Thank you guys for the comments.

    That is good. I almost got disappointed when I looked at Matisse. I prefer to code by myself. Can the same thing be said about the GUI on Java ME for Android programming?

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    I've never done Android, but after making two toy applications in Java ME using the visual designer, I started a new project for what I really wanted to create, and have never so much as looked at the designer again.

    The ME designer is however somewhat easier to grasp than its Swing counterpart. I still prefer manual coding though.

    db

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Yeah I like to write code manually, rather using UI designers. Then I have more control over my code, specially over the auto generated code.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    I'd just like to add that I have nothing against using the code generation features of an IDE (like "Implement all abstract methods") but it's a hard fact that visual designers are more difficult to master than manual coding, and do require a prior understanding of the nature of code they can produce.

    Once you're a master of manually coding a GUI, spending time to understand a GUI designer's features may be a good investment of that time: a skilled Matisse designer can produce a well laid out, fully functional complex GUI in maybe a third of the time it would take to code it manually. Of course, said skilled Matisse designer knows better than to ever look at the generated code ;)

    db

  8. #8
    fex
    fex is offline Member
    Join Date
    Dec 2010
    Posts
    20
    Rep Power
    0

    Default

    I think it's very annoying to use that feature. Simply because it generates code that you cannot adjust & at some point in your program that's gonna turn against you. My advice: write it yourself ;)

  9. #9
    mig
    mig is offline Member
    Join Date
    Dec 2010
    Posts
    4
    Rep Power
    0

    Default

    Thanks you all very much.

    Now I have a better idea of what Matisse is. I was afraid that it would be something more standard for programming than manually coding which I prefer. I am definitely coding by myself :)

Similar Threads

  1. Replies: 7
    Last Post: 12-03-2010, 04:47 AM
  2. Code to check if a piece of code is legal.
    By vahshir in forum New To Java
    Replies: 3
    Last Post: 08-30-2010, 04:21 AM
  3. Replies: 1
    Last Post: 03-04-2010, 11:19 AM
  4. Convert java code to midlet code
    By coldvoice05 in forum Advanced Java
    Replies: 1
    Last Post: 08-09-2009, 01:21 PM
  5. Replies: 1
    Last Post: 04-26-2007, 03:52 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
  •