This patch modifies the graphics2d interface such that it simply doesn't draw if the gui is disabled. This allows simulations that would normally use a graphics2d to be run without a gui. Previously, stage would refuse to create the interface and quit.
Patch to allow graphics2d interface with gui disabled
fixed/patches in release-2-1-patches