title: how to define action listener for buttons in java
body: <p><a href="https://i.stack.imgur.com/lIR1J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lIR1J.png" alt="enter image description here"></a></p>
  
  <p>I have a jframe that includes JButton.I have six buttons in this frame, but I don't know how to define action listener for this buttons.please help to solve this problem.</p>