Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Preferred method for java gui design

Posted on 2012-03-24
8
Medium Priority
?
466 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
8 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 37761524
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
ID: 37761530
This is the info about NetBeans GUI builder:

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

Expert Comment

by:for_yan
ID: 37761538
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:skiabox
ID: 37761560
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
 
LVL 47

Accepted Solution

by:
for_yan earned 1400 total points
ID: 37761569
>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
ID: 37761577
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 1400 total points
ID: 37761643
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 1400 total points
ID: 37761657
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

618 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