aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes GUI best practices? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GUI best practices?" Watch "GUI best practices?" New topic
Author

GUI best practices?

Karl Beowulph
Ranch Hand

Joined: May 31, 2004
Posts: 130
Hello.

For the past few months I've been working on a Struts application, I'm now working on a purely Java project and find myself a bit lost.

Are there any standards or best practices guides, with examples, that are available online? Something as simple as going from a login screen to a main menu (Do I create a new panel and hide the old one, a new frame entirely, or use the CardLayout?) and other such issues can be a bit confusing when coming from web-centric line of thought.

And are there any recommended tools/plugins I should be using? Eclipse is my IDE of choice.

Thanks.
Sirish Kumar Gongal Reddy
Ranch Hand

Joined: Oct 25, 2004
Posts: 109
Hi Karl Beowulph,
I request you one thing is presently iam working on Servlets,jsp and jdbc now i want to learn struts can you suggest me how can i learn in mean while plz let me know some good books for struts which covers example.
One more thing is we are using standard editor(Editplus) i want to take a leap to Eclipse can you plz help me out in using Eclipse.(just tell me how to buid a project and how to setup the environment i.e how to include ANT,Log4j and Tomcat server to Eclipse).
Hope that you clear my all answers.

As per my knowledge a Good book on swings is Core Java Volume-1 (SUN) which cover detailed swings.

Regards,
G Sirish Reddy.,
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

G Sirish Reddy,

This is a Swing forum. If you want to ask Struts questions start your own in the Struts forum. Please do no hijack threads. Future off topic replies will be deleted.

Thanks.

Karl

Unortunately, the kind of documentation you are looking for is hard to find. Everyone wants to tell you how to put a JButton on a JPanel but no one wants to tell you the *best* way to do it. And a lot of it is preference. The end user doesn't really care.

If you are familiar with Swing enough that you can put together an application fairly easily, I'd suggest picking up a copy of Desktop Java Live. It doesn't specifically say "here is the best way to build a gui" however, all of the code examples follow good design principles and practices. The new chapter do out any day now is even on MVC and MVP design patterns. I got to read the chapter ahead of time and it is great. Be sure and buy the EBook from the linked web site so that you get all the future chapters and revisions.

Eclipse is a decent IDE. I prefer IDEA. There have been hundreds of discussions on the prefered IDE for Swing development and you can search this and the IDE forum to locate those. I would suggest that you stay away from GUI Builders or Visual Designers at least until you really know the ins and outs of Swing. Using those to learn with can hender you.
[ August 31, 2005: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: GUI best practices?