java - Unable to setVisible(false) of JFrame -
i creating medical shop billing software in have 3 jframes
1 of need setvisible(false)
on click jmenuitem
. each time compile error displayed
jframe f accessed within inner class; needs declared final
can please me on this?
if need access variable on outer class. need add final this:
final public jframe frame
you can read here more information final (java) on wikipedia.
Comments
Post a Comment