News

When a Canvas object is displayed, the paint() method is automatically invoked. The Graphics object is passed in by the Java runtime. Developers do not invoke the paint() method directly.