I wrote a program inside public void draw()
for a processing applet
. Is there a way to close the applet completely after the program has finished running?
Such as applet.close
?
I know this is possible with a direct java
applet
, but I don't know how to do it when using processing.
Depending on your needs, try
System.exit(0);
The following link though goes over some limitations that might apply to you.
How to close java Applet through code
Here are some other options: Close event for applet?
Including:
void destroy();
void stop();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.