Removed explicit call to Graphics.finalize();

Moved the JFrame declaration to the constructor.