Example code for simple Java GUI's.