O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Technical Approach

The table browser application, for simplicity in presentation and because it is a Swing application, implements both the client and presentation tiers in a single class: the TableBrowser class. This class contains all of the component references needed to display the GUI and to manage the user interaction. This means that all event handlers are contained in this class as inner classes. (At 400 lines, this is not an unmanageable class, but in the development of a production system, you could argue to refactor the inner classes for the event handlers and table data model to external classes.)

Looking at the screen grab in Figure 30-6, you can see the major functions that need to be performed by the application: Enter a query, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required