Re: Good tool for developing Swing based GUI
- From: Lew <lew@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 May 2007 10:13:29 -0400
Bent C Dalager wrote:
If you aren't familiar with Swing and its component layout system,
That should be if you /are/ familiar with Swing then use a GUI.
then you should use some drag-and-drop type GUI design tool in order
to learn. I don't know what Eclipse offers for this. JBuilder was very
good back when I was learning this.
If you _are_ familiar with Swing, then you're probably better off
doing it by hand as this allows you to write properly factored GUI
If you are /not/ familiar with Swing then you should do it by hand until you are or you won't understand anything.
setup code. Automated tools tend to make a mess out of things. If you
Automated tools make a mess out of things for people who don't know how to do it by hand. They are very useful once you understand what they are automating.
are aiming for a very artsy GUI for the poker game, you are probably
also better off doing it by hand and possibly writing your own layout
manager. Which I am told isn't difficult.
Some people relate to code better, some to visual metaphors when writing GUI code. Either way, doing it by hand first will teach you what's happening, otherwise you have no control with either the hand-coding or the GUI-tool approach.
Hand-coding GUIs isn't a lot of work, but depending on what layout
Nor is GUI-coding, if you have some hand-coding experience to inform your work.
manager you are using, it may be very confusing and unsatisfying
unless you're very familiar with that particular layout manager. In
particular, trying to manually set gridbaglayout constraints is an
exercise in frustration for the beginner (that is not a layout manager
I would recommend at any rate but it seems popular enough).
Check out the Swing tutorial on java.sun.com.
The main benefit in hand coding is that you can write GUI layout code
that is actually readable and maintainable into the future as well as
being properly modular. Also, it can be considerably faster than
fiddling around with dragging, dropping, pulling and whatnot with the
components in a GUI builder. But you do need to know what you're
doing for this to be a workable approach.
You need to know what you're doing to use any approach.
For many people who understand Swing programming, using a GUI tool enhances productivity. It's impossible to know in one's own case until one has tried it both ways. Coding the text first as one is learning often helps master the details; certainly reviewing any GUI-generated code to achieve full understanding is a necessity.
--
Lew
.
- Follow-Ups:
- Re: Good tool for developing Swing based GUI
- From: Bent C Dalager
- Re: Good tool for developing Swing based GUI
- References:
- Good tool for developing Swing based GUI
- From: marcussilfver
- Re: Good tool for developing Swing based GUI
- From: Bent C Dalager
- Good tool for developing Swing based GUI
- Prev by Date: an inheritance question
- Next by Date: Re: an inheritance question
- Previous by thread: Re: Good tool for developing Swing based GUI
- Next by thread: Re: Good tool for developing Swing based GUI
- Index(es):
Relevant Pages
|