Rob Camick wrote:
Michael Dunn wrote:but it might be simpler to have
button.setFocusable(false)
Then you can't use the keyboard and tab to the button.
A GUI should support keyboard and mouse UI.
Yeah... I am able to type in a number and press enter on the keyboard, and I am able to click the button... I like to personally press enter, but my buddy likes to click calculate... He said he would like the cursor to be automatically set to the JtextField... I thought that using some sort of focusable, but I'm not really sure how they work...