Workshop: Enhancing the LottoMadness Application

The LottoMadness application consists of two classes, the LottoMadness class that builds a graphical user interface and the LottoEvent class that receives user events—button clicks and check box selections.

The LottoMadness and LottoEvent classes were developed during Hour 17, “Creating Interactive Web Programs.”

Copy these class files and their .java source code files to the same folder as the classes created so far this hour.

The LottoMadness class requires no modifications to work with XML-RPC.

Around 30 lines must be added to LottoEvent to cause it to submit XML-RPC requests.

In Listing 25.5, the shaded lines are new material. Add them, then resave the file in your editor.

Listing 25.5. The ...

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.