Content deleted Content added
m Signing comment by 79.135.222.215 - "→Use on the web: new section" |
Ncmathsadist (talk | contribs) |
||
Line 112:
That code at the end is a mess. I've written cleaner code and I'm 13. --[[Special:Contributions/75.166.224.107|75.166.224.107]] ([[User talk:75.166.224.107|talk]]) 21:41, 22 November 2009 (UTC)
I rewrote this code. Someone has changed it to use wildcard importing, which I do not consider good style. It violates the principle of keeping namespaces small. You always want to know exactly what classes you are making visible.
You will notice that I made the whole class a Runnable so you do not need an anonymous class in the main method. You just instantiate
the class and pass it to javax.swing.SwingUtilities.invokeLater().
== Use on the web ==
|