Some reader favorites:
EJB fundamentals and session beans
Create a scrollable virtual desktop in Swing
Wizard API updated!
Tim Boudreau has released a new version of the Swing Wizard library (version 0.997) that fixes the WizardException bug reported in JavaWorld's recent Open Source Java Project profile. The article's examples have been reworked to test out the new, improved WizardException. Thanks, Tim, for this helpful fix!
Open Source Java Projects: The Wizard API
Greg has put together some code to show us one way for two applets on two separate pages to communicate with each other.
The Ticket Frames page will launch the demonstration. Two frames will be displayed with each frame displaying a different HTML page. The Ticket Holder page will display in the top frame while the Ticket Reader page displays in the bottom frame. Note that you will need Netscape Navigator 2.x or some other browser that supports HTML frames to view this demonstration.
Those two simple pages are just HTML wrappers for running the TicketHolder and TicketReader Java applets, respectively. Both applets make use of the Ticket abstract Java class.
The two applets are straightforward examples of multithreaded Java applications. The pair of them implement a classic reader/writer scenario. The TicketHolder class is periodically updating the shared data while the TicketReader class is periodically reading the shared data.
The "shared data" is encapsulated in the Ticket class as a "static" data member manipulated by the synchronized, static accessor and mutator class methods. So each applet is just using the Ticket class as a third party to facilitate communication. This method will scale up to handle more readers (but multiple writers offer lots of fun new problems).
Free Download - 5 Minute Product Review. When slow equals Off: Manage the complexity of Web applications - Symphoniq
![]()
Free Download - 5 Minute Product Review. Realize the benefits of real user monitoring in less than an hour. - Symphoniq