Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

Sponsored Links

Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs

Speed up your Swing GUI construction with better building blocks

Use two helper classes to reduce dialog development time

  • Print
  • Feedback

Page 8 of 8

  • LabelledItemPanel could support a read-only flag for viewing, but not editing, data
  • LabelledItemPanel could support I18N by passing in a ResourceBundle key for a label instead of passing in text already internationalized


The need for speed

We have described an approach that speeds up the construction of Swing user interfaces by using better building blocks than ones available in the Swing libraries. It relies on two classes: LabelledItemPanel and StandardDialog. The essence of our approach was to identify repetitive elements of GUIs that could be encapsulated in easily reusable code.

About the author

David Fraser is a senior software engineer specializing in user interfaces and has worked on software in the financial, telecommunications, and interactive television industries. He has been developing user interfaces for eight years on DOS, Windows, and Unix platforms, using the BASIC, C, C++, VB, and Java languages. He has been developing user interfaces with Swing for the last three years. Michael Harris is a software architect. He has spent a number of years developing application frameworks for Internet and network management applications for defense, telecommunications, and television industries. He is always looking for ways to make his fellow programmers' lives easier. He has been using Java for the past five years.

Read more about Core Java in JavaWorld's Core Java section.

  • Print
  • Feedback

Resources