Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Β© A+ Computer Science - www.apluscompsci.com
- //Name -
- //Date -
- //Class -
- //Lab -
- import javax.swing.JFrame;
- public class GraphicsRunner extends JFrame
- {
- private static final int WIDTH = 700;
- private static final int HEIGHT = 700;
- public GraphicsRunner()
- {
- super("Graphics Runner");
- setSize(WIDTH,HEIGHT);
- getContentPane().add(new ShapePanel());
- //add other classes to run them
- //BigHouse, Robot, or ShapePanel
- setVisible(true);
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- }
- public static void main( String args[] )
- {
- GraphicsRunner run = new GraphicsRunner();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement