set flag AllPublic. lib 1013739 import processing.core.*; static Pair A pMain(final Class c) { ret swing(func -> A { fixContextClassLoader(); Set frames = asSet(listFrames()); PApplet.main(c.getName()); Frame frame = first(listWithoutSet(listFrames(), frames)); ret pair((A) last(getAndClearThreadLocal(PApplet2_instancesMade)), frame); }); } static Pair pMain() { ret pMain(mc()); }