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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -