We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I have many sketches in my NetBeans projects and I created a very simple JFrame with a list in order to start the sketches directly from the list.
The problem I am having is that when I close the window of the sketch (clicking on the "x" button), it also closes the JFrame with the list.
How to make sure it only closes the Processing sketch?
Here is the code that opens the sketch, where appLister is the JList and appList is a String[] :
private void appListerMouseClicked(java.awt.event.MouseEvent evt) {
if(evt.getClickCount()==2){
PApplet.main(appList[appLister.getSelectedIndex()]);
}
}
Thanks,