posted 14 years ago
> as an aside why is using "static" in a method not avisable?
specific usage of static is good
Math.random()
System.out...()
etc
but overuse can lead to problems.
I've seen numerous posts of "is this a Swing bug" turn out to be
just a changed program (now to be reused) where a static field was the culprit
simple demo, QuizPanel.
run as is, see all the radioButtons/labels when you click 'next'
now change the comments around so they're static, rerun and see
and if someone was using this, the forum post would be "why don't my radioButtons appear"