Solved

Preferred method for java gui design

Posted on 2012-03-24
8
445 Views
Last Modified: 2012-03-26
What is your preferred method , for designing java swing gui applications?
Which layout(s) , software tools or methods do you use and why?
Thank you.
0
Comment
Question by:skiabox
  • 7
8 Comments
 
LVL 47

Expert Comment

by:for_yan
Comment Utility
Therae are two main ways -

one is to learn a little bit about the Swing compobnenets and undesrtand at least some layouts and then write the code yourself in any of the IDE's - mainly folks are using Eclipse, but also can use NetBeans and IntelliJ Idea.

The second way is to use GUI Designer - the most usable and popular one is within NetBeans IDE - some people prefer to design the application GUI graphichally with NetBeans Designer.

If you ask me I would not recommend to get addicted to designer, it is worth learning a little bit more about the componenets and layout and devise layout yourself - you'll be much more flexible understand better the process
Event though some of your lauyouts espeecially in the beginning may be less beautiful, but you;ll be not dependendon that desigenr,
I would recommedn to do it yourslef.
0
 
LVL 47

Expert Comment

by:for_yan
Comment Utility
This is the info about NetBeans GUI builder:

http://netbeans.org/features/java/swing.html
0
 
LVL 47

Expert Comment

by:for_yan
Comment Utility
These are the there main Java IDE - this may seem not directly answer to your question - but it is related  to your question:

http://www.eclipse.org/downloads/


http://netbeans.org/downloads/


http://www.jetbrains.com/idea/download/
(this is commercial, but has a free community edition)

So if you want to use GUI builder - then use NetBeans,
if you decide to create GUI yourself, Eclipse is probably
a better and more popular choice
0
 

Author Comment

by:skiabox
Comment Utility
I have used all three tools for java development.
My preferred method is to design layouts by coding them, but I wonder if there is a roadmap when you use these layouts.
For example if I use BordeLayout which is the default layout, and later I want to add more panes in the main application window will it be possible?
I even bought JFormDesigner but I was disappointed to see the code it produces and the fact that you cannot edit this code.
My preferred ide is NetBeans.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 47

Accepted Solution

by:
for_yan earned 350 total points
Comment Utility
>For example if I use BordeLayout which is the default layout, and later I want to add more >panes in the main application window will it be possible?

Sure, it will be possible - all depends how you want to place them
One way I use is that suppose I had at the south one row of button on a panel, you now want two rows of buttons, just create one more panel put it on the south - set  GridLayout(2,1) to that ne panle and then add two morec panels to it and add your existing buttons to the upper of this two and new buttons to the lower of these two
I know it does not sound very elegant but in fact os very little coding work - just pasting some lines , add say panle2 to where it was called panel, and you'll do it very quickly
Once you understand how it wroks - it is really easy - than to have to do with these designers or thrid party components
0
 
LVL 47

Expert Comment

by:for_yan
Comment Utility
Of course, as usuall all depnds on particualr situation - I do not develop big commercial programs, I usually write programs for in-department consumption of a couple of dozens users, main requirement to the interface is not the beauty of it, but practicality and ease of use

I'm sure for commericali application developement you'll have a separate department, artistic designer, etc, then it becomes quite different situation and maybe some third party tools there would be more appropriate.
Again, I still doubt that  in that environment someone would use some designer tools.
0
 
LVL 47

Assisted Solution

by:for_yan
for_yan earned 350 total points
Comment Utility
tehs seem to be godd parctical recommendations about designing layuts
http://jfpoilpret.blogspot.com/2009/01/swing-ui-layout-best-practices.html
0
 
LVL 47

Assisted Solution

by:for_yan
for_yan earned 350 total points
Comment Utility
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
commonTwo  challenge 63 98
Fibonacci challenge 11 81
endX challenge 2 47
JAVA part two 5 39
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now