|
Quick Lists
|
|
Bug ID:
|
6300582
|
|
Votes
|
0
|
|
Synopsis
|
Focus indicator is missing on buttons in JToolBars in windows look and feel
|
|
Category
|
java:classes_swing
|
|
Reported Against
|
1.4.1
, tiger
|
|
Release Fixed
|
mustang(b53)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6293377
,
6316673
,
6316684
,
6383212
,
4758890
,
4905301
|
|
Submit Date
|
22-JUL-2005
|
|
Description
|
Subject says it - run "javaws -viewer", on Windows. Select some cached application - buttons to launch, view JNLP and so on get enabled. Select choise with "Show" options with mouse, close it. Now press Tab. Button "Run the selected application online" will receive focus - but its visual representation will not change. To verify that it is focused press Space - button will be pressed and application will be launched. Reproducible with 6.0b43
Posted Date : 2005-07-22 13:17:56.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
We purposely do not draw focus indicators for buttons on a toolbar. As far as I can tell this is bad, in that if the button gets focus you'll have no visual indication of that. If customers don't want the buttons in a toolbar focusable they can make the buttons non-focusable, but we should draw the indicator if the button gets focus.
Posted Date : 2005-08-03 14:56:48.0
The problem here is that Windows (XP at least) doesn't let you tab between toolbar buttons in native applications. They are not focusable. In Swing apps we allow this. When writing Swing application to run on Windows the author should disable the focusability on toolbar buttons but Swing does not enforce this. It's simply a recommendation. Given that there are existing applications which don't do the right thing I recommend we modify the XP L&F to draw the focus rects. Then if the author does the right thing it's not an issue and if they don't at least the application is still usable from the keyboard. (ie. You don't see the focus go off into oblivion). This is preferable to forcibly making the toolbar buttons not be focusable.
During our discussions of this bug someone brought up the possibility of having a client property or UI defaults to control this behavior. This is a good idea but globally controlling the focusability of toolbar buttons is a separate issue from whether to draw the focus rect when they *do* get focused. Since this is the case I have started a separate CR to address the client property issue.
Posted Date : 2005-09-08 17:16:14.0
New CR for turning off focusability of toolbar buttons is 6316673.
Posted Date : 2006-02-10 16:10:53.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |