9 Replies - 1948 Views - Last Post: 14 August 2009 - 04:46 PM Rate Topic: -----

#1 Apokio  Icon User is offline

  • D.I.C Addict

Reputation: 134
  • Posts: 509
  • Joined: 14-August 09

Creating JAVA GUI's

Posted 14 August 2009 - 12:02 PM

Long time lurker but first time poster. I have taken a couple of programming courses in college and one JAVA course. I am starting to create some small applications to do various things. In school when I created a GUI I used the GridLayout with an array to set all the buttons, and North,South,East,West,Center (can't remember what it is called) to create a GUI for a simple inventory program. Later I used NetBeans to make the GUI look a lot better but when I looked at the code that NetBeans created it was very confusing. I was just wondering what techniques do you guys and gals with experience in JAVA use to create a nice looking layout for a JAVA GUI. I know all the elements can be manually set by the x,y cordinates but is this really the best way? NetBeans feels like cheating to me because I am just learning and I feel like it does the work for me, but do most programmers use a IDE to create the GUI's? Thanks in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: Creating JAVA GUI's

#2 xclite  Icon User is offline

  • LIKE A BOSS
  • member icon


Reputation: 902
  • View blog
  • Posts: 3,163
  • Joined: 12-May 09

Re: Creating JAVA GUI's

Posted 14 August 2009 - 12:15 PM

Most automatic generators can be quite confusing. I always code them myself, but that also takes much longer than a generator.
Was This Post Helpful? 1
  • +
  • -

#3 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10486
  • View blog
  • Posts: 38,858
  • Joined: 27-December 08

Re: Creating JAVA GUI's

Posted 14 August 2009 - 12:16 PM

View PostApokio, on 14 Aug, 2009 - 01:02 PM, said:

Long time lurker but first time poster. I have taken a couple of programming courses in college and one JAVA course. I am starting to create some small applications to do various things. In school when I created a GUI I used the GridLayout with an array to set all the buttons, and North,South,East,West,Center (can't remember what it is called) to create a GUI for a simple inventory program. Later I used NetBeans to make the GUI look a lot better but when I looked at the code that NetBeans created it was very confusing. I was just wondering what techniques do you guys and gals with experience in JAVA use to create a nice looking layout for a JAVA GUI. I know all the elements can be manually set by the x,y cordinates but is this really the best way? NetBeans feels like cheating to me because I am just learning and I feel like it does the work for me, but do most programmers use a IDE to create the GUI's? Thanks in advance.


I prefer writing the text code for a the functionality of a GUI; but for layout, the IDE is better for me. Simply put, I have no aesthetic abilities.
Was This Post Helpful? 1
  • +
  • -

#4 mostyfriedman  Icon User is offline

  • The Algorithmi
  • member icon

Reputation: 727
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: Creating JAVA GUI's

Posted 14 August 2009 - 12:17 PM

i HATE netbeans, the gui builder is crap.. am not much of a GUI artist but i can work fine with them..most of the time i set the layout to null and place the components manually..sometimes its a better idea to use a layout manager, depending on how i want the components to look and stuff
Was This Post Helpful? 0
  • +
  • -

#5 xclite  Icon User is offline

  • LIKE A BOSS
  • member icon


Reputation: 902
  • View blog
  • Posts: 3,163
  • Joined: 12-May 09

Re: Creating JAVA GUI's

Posted 14 August 2009 - 12:44 PM

View Postmacosxnerd101, on 14 Aug, 2009 - 03:16 PM, said:

Simply put, I have no aesthetic abilities.


I'm with you on that. I can design simple stuff, but I'm no good at making things pleasing to the eye.
Was This Post Helpful? 0
  • +
  • -

#6 Apokio  Icon User is offline

  • D.I.C Addict

Reputation: 134
  • Posts: 509
  • Joined: 14-August 09

Re: Creating JAVA GUI's

Posted 14 August 2009 - 12:47 PM

Ok makes sense to me, depends on the project. The layout managers tend to look generic to me but I feel like I lose control when using netbeans. I will practice more with setting the layout to null and manually setting all the components. I know it really doesn't matter for a small GUI application but does manually coding the GUI use less resources than using a IDE like NetBeans?
Was This Post Helpful? 0
  • +
  • -

#7 NeoTifa  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2651
  • View blog
  • Posts: 15,673
  • Joined: 24-September 08

Re: Creating JAVA GUI's

Posted 14 August 2009 - 12:48 PM

View Postmostyfriedman, on 14 Aug, 2009 - 11:17 AM, said:

i HATE LOVE netbeans, but the gui builder is crap..



I fix. I code all my GUI myself. :D
Was This Post Helpful? 0
  • +
  • -

#8 mostyfriedman  Icon User is offline

  • The Algorithmi
  • member icon

Reputation: 727
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: Creating JAVA GUI's

Posted 14 August 2009 - 01:10 PM

View PostNeoTifa, on 14 Aug, 2009 - 11:48 AM, said:

View Postmostyfriedman, on 14 Aug, 2009 - 11:17 AM, said:

i HATE LOVE netbeans, but the gui builder is crap..



I fix. I code all my GUI myself. :D


eat my tits, netbeans suck
Was This Post Helpful? 0
  • +
  • -

#9 horace  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 290
  • View blog
  • Posts: 1,900
  • Joined: 25-October 06

Re: Creating JAVA GUI's

Posted 14 August 2009 - 01:25 PM

Java GUI classes are fairly simple and easy to use so I build the GUI code myself. C++ is different - in the past I have used CBuilder and Visual Studio to build GUIs but these days tend to use Code::Blocks with wxWidgets and wxSmith as the GUI builder.
Was This Post Helpful? 0
  • +
  • -

#10 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8329
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Creating JAVA GUI's

Posted 14 August 2009 - 04:46 PM

Use GUI generators for a quick shot or a proof of concept
but if you have write code that will have to be maintained stay away from them
This is a common practice in the industry
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1