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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -