java-scuola/7.x/P7.17 Cloud/CloudViewer.java
Giacomo Radaelli e9eb9fa3f4 Aggiunti es P7.17 18 19
Aggiunto definitivamente esercizi grafici Cloud, Polygon e Chart
(esercizi P7.17, P7.18 e P7.19)
2023-01-17 19:14:09 +01:00

20 lines
557 B
Java

import javax.swing.JFrame;
/**
* Classe che visualizza una nuvola tramite un JFrame e CloudComponent
* @author radaelli11353
*/
public class CloudViewer {
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setSize(500, 500);
frame.setTitle("Visualizzatore nuvola");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
CloudComponent component = new CloudComponent();
frame.add(component);
frame.setVisible(true);
}
}