// Drawing Example // Source code file: Main.java // Instantiate a MyFrame object derived from the // JFrame class. The MyFrame object contains a JPanel // object that displays a Swing drawing using Graphics // methods. public class Main { public static void main(String[] args) { new MyFrame(); } }