So, I'm trying to run Processing outside the IDE. I'm extending the PApplet class and going about my merry way and everything seems to be working fine.
Now, when I'm using g4p as part of the extended PApplet, everything is fine.

But when I move everything into its own Gui class (which has a reference to the original PApplet that gets passed into the constructors of all the different components) and use it that way I keep getting NullPointers in the event handler.
So what fundamentally changes about how things work that this happens? I want to keep my Gui code separate from my main PApplet code.