Results 1 to 5 of 5
- 02-15-2010, 09:44 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
- 02-16-2010, 12:17 AM #2
Call (AbstractButton method) setFocusPainted(false) on the buttons.
- 02-16-2010, 01:14 AM #3
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
What behaviour? This is normal.
The dotted box is there so the user knows which button has focus. This allows the user to tab from key to key and then use the keyboard to activate the button.
Good GUI design "does not" assume that all users use the mouse. In fact, for any application advanced users will use the keyboard instead of the mouse because its faster.
However, if you want to cripple your application by preventing users from using the keyboard, then you can use:
button.setFocusable(false);
- 02-18-2010, 07:46 PM #4
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
thanks worked fine.
cheers
- 02-19-2010, 02:56 AM #5
Similar Threads
-
jcheckbox item listener
By GUIJAVA in forum New To JavaReplies: 2Last Post: 02-09-2010, 11:15 AM -
Extract item from a string
By firewalll in forum New To JavaReplies: 2Last Post: 09-02-2009, 05:00 AM -
[SOLVED] Item too big for JComboBox
By nwboy74 in forum AWT / SwingReplies: 5Last Post: 02-23-2009, 08:21 PM -
JToolBar movable but not floatable
By Fosters in forum AWT / SwingReplies: 0Last Post: 08-22-2008, 03:04 PM -
grabbing an item from an arraylist.
By newtojava7 in forum New To JavaReplies: 1Last Post: 03-17-2008, 08:25 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks