title: How to check which button was clicked using Netbeans GUI editor
body: <p>Currently I am designing my GUI form and I am wondering about one thing.
  Here is my GUI:
  <a href="https://i.stack.imgur.com/oCkGD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oCkGD.png" alt="enter image description here"></a></p>
  
  <p>I want to add the same ActionPerformed method to all of these buttons, but in ActionListener only one parameter can be set (or I dont know how to change it), that is ActionEvent evt.</p>
  
  <p>My question is : how to add another parameter to be sent to ActionPerformed, according to which button was clicked, and then lets say print in console text from button?</p>
  
  <p>It is not possible to do it while just editing code (ActionListener) because NetBeans editor blocks such things.</p>
  
  <p>Thanks in advance.</p>