File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes GUI designer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "GUI designer" Watch "GUI designer" New topic

GUI designer

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918


I have a general question : to use or not to use a gui designer ? That is the question !

On one side you are preaty quick and you can deliver your soulution faster (ok not always) but on the other side a gui means more than what you see on the screen and this under all aspects(design patterns, threading, ...) so you lose on all the other Software Life Cycle aspects.

Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
If you use a good one you can write code in such a way that coupling is limited.
Good ones will also produce code that can be maintained outside the GUI designer and can load code created or modified outside it without mangling it.

I'd say use a designer for the initial screen layout, then modify it by hand to hook up with your data and data processing routines.

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Ok you are right a gui designer is good when you "draw" the frist layout.
Unfortunately after this you must brush the code and make it human readable, customize it and add some small extra fatures.
This only the frist look, a deeply analyze(base on my experince with JBuilder
) lead me to more unpleasant stuff,
for a simple panel where a FloatLayout will solve the problem is use some sort of GridBagLayout(this with a lot of code). If you try later to maintain your code with other tool than the designer you'll need a lot nights (and coffe).

So afterm me "the initial screen layout" must be done in the "old fashion" way with a pen and a paper(and some user case diagrams) see Katty & Bert (chapter Designing the Graphical User Interface).
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Others comments ?
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I got some horrid code somebody probably built in Visual Age, maybe WSAD. I deleted hundreds of lines of cruft and put my own event handling framework in place and felt a lot better. I tried Jigloo (spelling?) and was happy enough with what it produced for a first cut at a new window, then took over by hand.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

How about IDEA (4.0).I try it and it and a got a nice code salad and the layout was not exactly how I wanna .
Using a gui desinger implies a lot of compromises(fast delivery vs. maintenance).
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
This is a duplicate thread. Please continue in the IDEs and Other Tools forum...
[ July 24, 2004: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: GUI designer
It's not a secret anymore!