Advertisement
RazorBlade57

GraphicsRunner

Oct 10th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. //Β© A+ Computer Science  -  www.apluscompsci.com
  2. //Name -
  3. //Date -
  4. //Class -
  5. //Lab  -
  6.  
  7. import javax.swing.JFrame;
  8.  
  9. public class GraphicsRunner extends JFrame
  10. {
  11.     private static final int WIDTH = 700;
  12.     private static final int HEIGHT = 700;
  13.  
  14.     public GraphicsRunner()
  15.     {
  16.         super("Graphics Runner");
  17.  
  18.         setSize(WIDTH,HEIGHT);
  19.  
  20.         getContentPane().add(new ShapePanel());
  21.        
  22.         //add other classes to run them
  23.         //BigHouse, Robot, or ShapePanel
  24.  
  25.         setVisible(true);
  26.  
  27.         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  28.     }
  29.  
  30.     public static void main( String args[] )
  31.     {
  32.         GraphicsRunner run = new GraphicsRunner();
  33.  
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement