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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access