Program in a Program?

For those wishing to do so – from the Processing javadocs:

Base class for all sketches that use processing.core.
The Window Size and Full Screen page on the Wiki has useful information about sizing, multiple displays, full screen, etc.

Processing uses active mode rendering. All animation tasks happen on the “Processing Animation Thread”. The setup() and draw() methods are handled by that thread, and events (like mouse movement and key presses, which are fired by the event dispatch thread or EDT) are queued to be safely handled at the end of draw(). […]