O'Reilly logo

Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications by Paul Anderson, Gail Anderson

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

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

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