Tweaked MainPanel a bit

Tweaked MainPanel a bit to be more like the java swing demos