Re: Java GUI



On Sun, 22 Mar 2009 23:34:09 -0700, David Segall <david@xxxxxxxxxxxxxxx> wrote:

"bob@xxxxxxxxxxxxxx" <bob@xxxxxxxxxxxxxx> wrote:

Is there a good program for visually designing a Java GUI?

The GUI builder in the open source Netbeans IDE
<http://www.netbeans.org/> is better than any other one I have used
and much better than the ones available in other Java IDEs.

There is a good reason for this. Because of the close ties between
Netbeans and Sun, Netbeans were able to introduce a new Swing layout
manager that is designed to work with a GUI builder. I have seen
complaints that GroupLayout is more difficult to program than other
layout managers if you _don't_ use the GUI designer.

Well, the docs _do_ say that GroupLayout is there specifically for the support of the GUI designer. :)

On a related note, after finally getting fed up with hand-coding UIs in Java, I tried out NetBeans and its GUI designer (I'd been using Eclipse on recommendation of a friend). Seems to work pretty well, though there are some clunky places.

One thing I ran into is that they provide this new "application framework" stuff; my impression of it is that it adds a lot of complexity without much benefit. I mean, some of the stock features are useful, but using them involves jumping through too many hoops, and it only took me an hour of fiddling to run into at least one very annoying bug (non-fatal, but definitely UI-breaking).

I found that sticking to just plain old "Java Form" support works much better. I'm writing the GUI pretty much just like I always used to, except now there's a drag-and-drop UI to arrange things, and for many things, a place in the "property inspector" (or whatever they call it) to initialize or otherwise control things.

It might be my imagination, but NetBeans also just seems to be a bit snappier/responsive than Eclipse. Not that NetBeans is my new hands-down favorite -- for example, Eclipse did a much better job of detecting my installed JREs and configuring the workspace/builds for them -- but I've been pleased with it so far.

Pete
.



Relevant Pages

  • Re: A constructive debate: Eclipse or NetBeans?
    ... However, I've tried NetBeans recently. ... better support for creating GUIs than Eclipse ... "make" as a build system and primarily programming in OCaml. ... Sun's Java implementation. ...
    (comp.lang.java.softwaretools)
  • Which IDE ?
    ... IDE fits me best, NetBeans or Eclipse... ... Eclipse is very scalable has MANY plugins and very very fast. ... technologies (like i do now with Java Server Faces) it's a lot easier ...
    (comp.lang.java.programmer)
  • Re: Looking for that special Java IDE...
    ... My understanding is that NetBeans is also written in Java, and lots of people swear by it. ... I recommend that rather than refusing to use an IDE just because it's written in Java, check out what Eclipse and NetBeans have to offer. ...
    (comp.lang.java.programmer)
  • Re: What is the best java development and vm ?
    ... Yeah, I was pretty leary of going with anything other than Sun, so I upgraded to the new jdk 5.0 and then installed netbeans. ... It says that it needs 384 MB of memory and I only have 256 MB so I am guessing that is the reason for the slow running. ... Is eclipse any better at running with less memory? ... Since I have no java experience I really do want visual style IDE so that I only have to worry about learning java and not have to deal with the visual interface at the same time. ...
    (Debian-User)
  • Re: After I try latest of Netbean and Eclipse I wonder if have Another beter IDE?
    ... Eclipse and I disappointment. ... JAVA worth for beter IDE. ... NetBeans is the best that I have tried. ... The Java world is different than MS. ...
    (comp.lang.java.programmer)