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, ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.