The Artima Developer Community
Sponsored Link

Java Community News
Scott Violet Releases Extreme Swing GUI Makeover Code

4 replies on 1 page. Most recent reply: Nov 24, 2006 3:58 AM by V.H.Indukumar

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Scott Violet Releases Extreme Swing GUI Makeover Code Posted: Nov 22, 2006 11:32 AM
Reply to this message Reply
Summary
Extreme GUI Makeover was among the best-attended JavaOne 2006 sessions. Scott Violet, Shannon Hickey, and Romain Guy presented their take on the popular TV show format, showing how a plain-looking Swing application can be transformed into a stunning modern GUI in the hands of Swing experts. Scott Violet now released the source for the demo.
Advertisement

Swing applications are often criticized for their plain, 1990s look. With Apple's user interface becoming increasingly popular, and Microsoft's upcoming Vista release, the default Swing look will feel increasingly out of place on modern desktops.

Swing applications don't have to look boring, however, as Scott Violet, Shannon Hickey, and Romain Guy demonstrated at JavaOne earlier this year. Borrowing the popular extreme makeover TV show format, they transformed a plain-looking Swing mail client into a stunning example of modern UI design. Scott Violet now released both the demo itself, which can be run from the command line, as well as the full source code.

Here is a "before" image of the application:

And this is the UI after the makeover:

One lesson from this demo is that the Java APIs bundled with the JDK are increasingly merely foundational. API projects developed outside core JDK functionality are required even for desktop projects that previously didn't think of going beyond standard Swing classes. The most notable desktop project outside the JDK is SwingLabs, and many of the effects in the Extreme GUI Makeover take advantage of SwingLabs classes.

The demo also imparts the importance of the common-sense, but often overlooked aspect of GUI development of thinking of the user experience rather than just stitching together readily available UI components for an application. To improve the user experience, the most interesting GUI Makeover examples rely either on embellishing Swing components with custom painting code—such as adding drop-shadows to panels—or using already embellished versions of those components from the SwingLabs project.

The downloadable demo contains another interesting feature: use of the java.awt.Robot class. Robot must be one of the least-known classes in the JDK, albeit it has been around since JDK 1.3. Robot, in effect, allows you to create animated demos of rich-client Java applications by letting you post UI events to components, simulating a user interacting with the application. Scott Violet's demo walks you through the Extreme Makeover steps using Robot to animate the various UI changes.

The final lesson from the Extreme GUI Makeover demo is that creating stunning UIs is a lot of work. Spending so much effort on the user experience may seem inappropriate at first to server-side developers who are used to writing business logic or plumbing code. However, user experience is increasingly the differentiating factor for consumer-facing Web applications—in last's weeks interview with Artima, Bret Taylor, Google's developer products manager mentioned "user experience" no less than five times in a thirty-minute conversation about developer tools.

Do you agree that user experience is an increasingly important consideration for enterprise applications we well? If so, do you see yourself spending more time writing UI code?


Achilleas Margaritis

Posts: 674
Nickname: achilleas
Registered: Feb, 2005

Re: Scott Violet Releases Extreme Swing GUI Makeover Code Posted: Nov 23, 2006 4:22 AM
Reply to this message Reply
I do not see how a few colors here and a few graphics there make a UI better...perhaps younger people care about that, but personally all I want is less eye candy and better functionality...

Marc Loxton

Posts: 9
Nickname: spoonchops
Registered: Feb, 2006

Re: Scott Violet Releases Extreme Swing GUI Makeover Code Posted: Nov 23, 2006 2:46 PM
Reply to this message Reply
Well looking at that example the first thing that jumped out at me is each email has a photo of the sender next to it which i think is a great idea. Not because anyone good looking ever emails me but because (in business especially) this would greatly help put a face to a name and remember who is who in large organisations, to help you remember who you're dealing with. That's just one example how "a few colors here and a few graphics there" can improve a UI.

Achilleas Margaritis

Posts: 674
Nickname: achilleas
Registered: Feb, 2005

Re: Scott Violet Releases Extreme Swing GUI Makeover Code Posted: Nov 24, 2006 2:24 AM
Reply to this message Reply
Agreed, that's a good change. But that is not an aesthetic improvement, it is a functional improvement. On the other hand, the gradients, text shadowing and transparent windows offer nothing over the UI but mere confusion.

V.H.Indukumar

Posts: 28
Nickname: vhi
Registered: Apr, 2005

Re: Scott Violet Releases Extreme Swing GUI Makeover Code Posted: Nov 24, 2006 3:58 AM
Reply to this message Reply
Well, if you are looking at an application for the whole day, making it look good will help :-)

Flat View: This topic has 4 replies on 1 page
Topic: Ruby on Rails 1.2 Release Candidate Available Previous Topic   Next Topic Topic: Krugle Adds CodeSpaces to Its Search Engine

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use