A.1. MusicApp Swing Application

Listing A.1 contains the source for MusicApp.java, the Java Swing application client presented in Chapter 4 (see “A Java Swing Application Client” on page 106). Also refer to Figure 4-3 on page 106 and Figure 4-4 on page 109 for screen shots captured during execution of this program.

Listing A.1. MusicApp.java
 // MusicApp.java // Swing application to read the Music Collection Database // using the Music EJB stateless session bean // Puts recording titles into a Swing JList component // so that user can select the title // Upon selection (ListSelectionEvent), // displays additional information about the recording // When user clicks "View Tracks" JButton (ActionEvent), // displays track list for the selected recording ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications 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.