title: Execute JButton when ENTER key is pressed in panel - Swing
body: <p>I have <kbd>Login</kbd> <code>JButton</code> on a panel and I need to execute it when I press <kbd>ENTER</kbd> key. </p>
  
  <p>Do we have any code snippet for that?</p>