Bonjour,
En regardant les sources de la classe org.jfree.ui.ApplicationFrame (si c'est bien celle là)
il suffit de surcharger la méthodeafin qu'elle ne fasse plus le System.exit(0);
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 /** 68 * Listens for the main window closing, and shuts down the application. 69 * 70 * @param event information about the window event. 71 */ 72 public void windowClosing(final WindowEvent event) { 73 if (event.getWindow() == this) { 74 dispose(); 75 System.exit(0); 76 } 77 }
Partager