This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have many buttons that have the name "btnName", however the name displayed within the button could be "save", "close", "add", "update", ... I have somthing like this: JButton btnName = new JButton(); btnName.setText("save"); When a click btnName, I want to get button name If button name is "save" the preform action.