阅读背景:

如何让两个JButtons执行单独的操作

来源:互联网 

Everytime I press cancel or save on the UI it always executes both of the buttons. I've tried countless ways to make it listen to the if statements in the actionperformed block, but it seems to ignore it. I need it so that if I click save it only executes onSave() and cancel for onCancel(). Thanks for your time Everytime I press cancel or save on the UI it a




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

分享到: