Glad it was useful, by the way setting up the opengl library you only need to include jars for your own OS/architecture.
To avoid stop button and present mode you only need the following, where box.newP5Main is your class,
of course you could just enter it as a String "box.newP5Main"
PApplet.main(new String[]{box.newP5Main.class.getName()});
To have stop button in present mode and specify the external background
- PApplet.main(new String[]{"--present", "--bgcolor=#DFDFDF", box.newP5Main.class.getName()});