The DVD application
Once more we'll reuse my often-used DVD Library application--you
may find it in the Struts
article mentioned earlier, but I'll briefly run through it
here.
It's an application that can be used to manage a collection of
DVDs stored in an XML file. It can show all the DVDs on a List Page,
and you may enter, update or delete a DVD on a Detail Page. The List
Page looks like this:

- Figure 3: The List Page -
This is the first page you see, and the URL for it is (for a
Tomcat installation on your own computer):
http://localhost:8080/dvdapp/list.do
When clicking on an "Id" you go to the Detail Page:

- Figure 4: The Detail Page -
The URL for this page is:
http://localhost:8080/dvdapp/detail.do?index=<dvd_number>
where dvd_number can be 0, 1, 2,
The dialog flow in the application is as follows:
- Figure 5: The application flow -
The heart of the DVD application is the
DVDmanager
class, which keeps the DVDs in a
JDOM tree-structure. The DVDManager reads the DVDs from an
XML file, and can also write them back to this file with the
save action. It's therefore an obvious choice to let the
application return data to the Swing application in XML format.
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|