Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GUI designer

 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
author & internet detective
Posts: 41944
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
We can walk to school together. And we can both read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic