阅读背景:

JButton的gridLayout,每个JButton的actionListener

来源:互联网 

I have a gridLayout of JButtons. I'd like to distinguish every JButton from each other in the actionPerformed function. I don't want to "name" each JButton. The user press a JButton randomly. Is there any method to know which button has been pressed? It is possible? I have a gridLayout of JButtons. I'd like to di




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

分享到: