Setting the Default Button
Only one button in a top-level container can be the default button. The default button typically has a highlighted appearance and acts as though clicked whenever the top-level container has the keyboard focus and the user presses the Enter (or Return) key. The exact implementation depends on the look and feel.
说的是converterFrame.getRootPane().setDefaultButton(convertTemp);
其中convertTemp是一个Button,说一个TOP-LEVEL只能有一个Default button,是 高亮的,而且只要窗口有焦点就什么什么,后面就有点疑惑了,但是我测试了一下,同时有2个BUTTON的时候,设置成为DEFAULTBUTTON的那个BUTTON跟另外一个比起来没有任何区别???为什么?不明白也