java-scuola/6.x/p6.15/GrigliaViewer.java

19 lines
448 B
Java
Raw Normal View History

2022-12-30 14:55:33 +01:00
import javax.swing.JFrame;
public class GrigliaViewer {
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setSize(400, 430);
frame.setTitle("Circles");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
GrigliaComponent component = new GrigliaComponent();
component.repaint();
frame.add(component);
frame.setVisible(true);
}
}