Advertisement
Guest User

Processing Exit Code Test

a guest
Jun 28th, 2014
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. public class ExitHandler
  2. {
  3.   ExitHandler(PApplet thisProgram)
  4.   {
  5.     thisProgram.registerMethod("dispose", this);
  6.   }
  7.  
  8.   public void dispose()
  9.   {
  10.     File randomFile = new File("randomFolder"); // When running the program in Processing, make this an absolute file path.
  11.     randomFile.mkdir();
  12.   }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement