June 2002
Beginner to intermediate
640 pages
14h 24m
English
This chapter mainly covered events and graphics using Java AWT. We learned about the different events the various graphics components publish, and we got some firsthand experience of the order in which events take place. We prototyped a FrameEvents class that allowed us to see the runtime behavior of many events. With prototyping it's much easier to see how events work.
We dealt with the basic drawing of shapes and the XOR graphics mode for rubberbanding. We were able to put together the things we learned about graphics programming and events in a very simple drawing application, which we extended to incorporate ideas in earlier chapters about object-oriented programming and the dynamic behavior of Jython.
Read now
Unlock full access