applet, window, fullscreen framework

HI there,
I need a simple framework for running my games in applet, window, or fullscreen mode. It’d be nicer if with the same code the game could run as an applet, or application (window or fullscreen mode). Does anybody here have already implemented it?

I’m too lazy to code this stuff today… :frowning:

I sure have :slight_smile:

It’s in the code included with my tutorial:

http://www.gamelizard.com/JavaGameProgrammingPresentation.htm