-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphicsRunner.java
More file actions
50 lines (31 loc) · 962 Bytes
/
GraphicsRunner.java
File metadata and controls
50 lines (31 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//(c) A+ Computer Science
// www.apluscompsci.com
//graphics frame to run graphics examples
import javax.swing.JFrame;
public class GraphicsRunner extends JFrame
{
private static final int WIDTH = 800;
private static final int HEIGHT = 600;
public GraphicsRunner()
{
super("Graphics Runner");
setSize(WIDTH,HEIGHT);
//getContentPane().add(new Circles());
getContentPane().add(new Rectangles());
//getContentPane().add(new Lines());
//getContentPane().add(new Polygons());
//getContentPane().add(new Arcs());
//getContentPane().add(new Colors());
//getContentPane().add(new Fonts());
//getContentPane().add(new ImageOne());
//getContentPane().add(new DoubleBuffer());
//getContentPane().add(new Animation());
//getContentPane().add(new Sounds());
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main( String args[] )
{
GraphicsRunner run = new GraphicsRunner();
}
}