Change from JApplet to running it with JFrame

Due to the difference of layouts between Mac and Windows, therefore,
changed it from extending a JApplet to JFrame.