/** * Convenience method so that PApplet.main("YourSketch") launches a sketch, * rather than having to wrap it into a single element String array. * @param mainClass name of the class to load (with package if any) */ static public void main(final String mainClass) { main(mainClass, null); }
public static void main(String[] args) { PApplet.main("com.mapr.synth.drive.Trails", new String[]{""}); }
/** * Convenience method so that PApplet.main(YourSketch.class) * launches a sketch, rather than having to call getName() on it. */ static public void main(final Class<?> mainClass, String... args) { main(mainClass.getName(), args); }
public void run() { MiraApp.inputFile = selectedFile.getAbsolutePath(); PApplet.main(MiraApp.class.getName()); } }).start();
public static void main(String args[]) { if (0 < args.length) inputFile = args[0]; if (!(new File(inputFile)).isAbsolute()) { String appPath = System.getProperty("user.dir"); inputFile = (new File(appPath, inputFile)).getAbsolutePath(); } PApplet.main(new String[] { MiraApp.class.getName() }); } }