1 package sample;
2
3 import fi.jyu.mit.graphics.*;
4 import fi.jyu.mit.graphics.Window;
5
6 import java.awt.*;
7
8
13 public class TestPanel {
14
15
18 public static void main(String[] args) {
19 Window frame = new Window(300,300);
20 SpacePanel panel = new SpacePanel();
21 panel.add(new Line(0,0,100,100));
22 panel.add(new Circle(50,50, 20)).setColor(Color.RED);
23 frame.setLayout(new GridLayout(2,3));
24 frame.add(panel);
25 frame.showWindow();
26 frame.add(new Line(0,0,100,100));
27 frame.add(new Circle(50,50, 20));
28
29 }
30
31 }
32