Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • \$\begingroup\$ f.setSize(n,668); - depends heavily on the used Theme, but I'll accept it. \$\endgroup\$ Commented Mar 8, 2014 at 9:11
  • \$\begingroup\$ You can drop the imports in Java because they're auto-generated anyway. \$\endgroup\$ Commented Mar 8, 2014 at 9:23
  • \$\begingroup\$ I also see double where float could be used if you tried \$\endgroup\$ Commented Mar 8, 2014 at 9:29
  • \$\begingroup\$ JFrame => Frame shaves off 2 chars. Although you can't close the window anymore. ;) \$\endgroup\$ Commented Mar 8, 2014 at 15:01
  • 2
    \$\begingroup\$ Your class do not need to be public. Further, use Java 8 to get rid of the final modifier. And you must not omit the imports in order to be a complete submission. \$\endgroup\$ Commented Mar 10, 2014 at 4:53