Add a getFrame method

This program adds a method named getFrame to the World class.

The getFrame method returns a reference to the JFrame object that is used to display the world.

This makes it possible to treat World objects in much the same way that other JFrame objects are treated.

File: ap.htm [Next] [Prev]