How to close a sketch opened with PApplet.main() without closing the rest of my java application?


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) {                                       


Sign In or Register to comment.