Okay, you know when on like an alert window, or a form, one of the buttons automatically gets executed when you press enter, such as shown. See Picture #1
So I was wondering how I could do this in Java for a both a JFrame and a JOptionPane. Thanks.
arithehun
Picture #1