Trouble with action listener

NOBEL

Member
Aug 2, 2000
51
0
0
Any help please, for some reason I can't call the array within the actionPerformed method
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Nums is local to the init() method, it dissappears when init() ends. Or at least the reference to it does, the data is left for the garbage collector to come and get later.

You should declare it at the same scope as all your Buttons