Io ho questo codice:
public class TryWindow {
//l'oggetto window
static JFrame aWindow = new JFrame("This is the Window title");
public static void main(String[] args) {
int windowWidth = 400;
int windowHeight = 500;
aWindow.setBounds(500, 100, windowWidth, windowHeight );
aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CL OSE);
aWindow.setVisible(true);
}
}
Che mi apre il componente principale di un applicazione,
Perche una volta compilato non riesco ad avviare l'applicazione con
un doppio click(o uno su avvio veloce)??
Sia con il prompt che con Netbeans funziona!!