This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI designer

 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo

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.
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It more depends on your project
if you need dynamic form (GUI) generation
from some OLAP + metadata ,... hard codeing is best approach ,
also when you use hand made beans , probably you will need hard code.

when :you know the forms and GUI would not change in future using gui builder is fast and best way , but code generated by GUI builder are not easy readable and does not met best performance , (i used jbuilder 5 years ago).
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It hard to admint that a "GUI would not change",ok you don't chhange it every day but at least at some time periods you update it.
An other bad stuff is that some gui desingnes birg some extra "goodies" and if you pack them in your code you 'll need them always.
Also when you need to change your patform/JVM is a problems (parts you can solve it with independent build tool like ant& ..) and the gui designer has problems with the new patform/JVM.
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If you wish the human readable generated GUI code. I recommend one GUI Builder tool JFrameBuilder which you must feel satisfied.

The following is a simple GUI code generated by JFrameBuilder, easy to read and maintain.

For more GUI Example code, see the online tutorial of JFrameBuilder at http://www.mars3000.com/tutorial.html
[ August 26, 2004: Message edited by: Pat Hays ]
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get some pretty source code if you use IntelliJ IDEA. For example, the code to make a very complex panel where all the widgets do nothing except for one button looks like this:



Yup, that's hand-written source code with no layout or component assembly code at all. All the gui assembly code is silently injected during compilation! I've found that the IDEA panel designer is very non-intrusive (the only constraint is that each panel needs to be associated with a unique class, although if you use inner classes you can get a bunch of panels into a single source file).
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Pat H",
We're pleased to have you here with us in the <forum> forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name (not just initial) separated by a space character, and must not be obviously fictitious.

Thanks,
Jeanne
Forum Bartender
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic