阅读背景:

为未定义数量的JLabel添加MouseListeners

来源:互联网 

I have a little bit of a problem here with MouseListeners. I am trying to add multiple JLabels to a JFrame and that works perfectly fine. The problem is that I also want to add MouseListeners to each of the JLabels. But it doesn't want to work this way, because it is complaining about the variable not being final. Can anyone help me with this?I have a little bit of a problem here with Mous




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: