Listings
Listing 1
. The controlling class.
Listing 2
. Beginning of GUI class.
Listing 3
. Beginning of the BaldButton class.
Listing 4
. The processMouseEvent method.
Listing 5
. An anonymous inner class for low-level event handling.
Listing 6
. The remaining code.
Listing 7
. Instantiating and registering a MouseListener object.
Listing 8
. Define mouseClicked method.
Listing 9
. Extending the WindowAdapter class.
Listing 10
. Complete program listing.
File: ad.htm
[Next]
[Prev]