In the Shapes example code (http://www.javaranch.com/CodeBarn/shapes.jsp) how does the paint method get called? The main method instantiates a new ShowShapes object, which seems to have a constructor method that just sets up a window and makes it visible. From where is the paint method called? Thanks
Marilyn de Queiroz
posted 13 years ago
setVisible( true );
causes paint() to be called.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt