I've created a simple Frame with a button on Eclipse but i can't close it.
package esercizi1;
import java.awt.*;
public class FinestraConBottone {
public static void main(String[] args) {
Frame finestra = new Frame ("Titolo");
Button bottone = new Button ("Cliccami");
finestra.add (bottone);
finestra.setSize (200,200);
finestra.setVisible (true);
}
}