24 lines
686 B
Java
24 lines
686 B
Java
|
import javax.swing.JFrame;
|
||
|
|
||
|
/**
|
||
|
Classe che visualizza una lampadina tramite un JFrame e LampadinaComponent
|
||
|
@author radaelli11353
|
||
|
*/
|
||
|
public class PolygonViewer {
|
||
|
/**
|
||
|
Metodo main di LampadinaViewer
|
||
|
@param args Argomenti passati all'esecuzione del programma
|
||
|
*/
|
||
|
public static void main(String[] args) {
|
||
|
JFrame frame = new JFrame();
|
||
|
|
||
|
frame.setSize(500, 500);
|
||
|
frame.setTitle("Visualizzatore poligono");
|
||
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||
|
|
||
|
PolygonComponent component = new PolygonComponent();
|
||
|
frame.add(component);
|
||
|
|
||
|
frame.setVisible(true);
|
||
|
}
|
||
|
}
|