This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251684 - Buttons in toolbar focused inconsistently
Summary: Buttons in toolbar focused inconsistently
Status: VERIFIED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-07 07:09 UTC by Jiri Skrivanek
Modified: 2015-05-04 10:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2015-04-07 07:09:07 UTC
Buttons in the profiler toolbar which are not toggle buttons should not be selected as focused. To reproduce:

- start to profile any project
- click Snapshot button
- return back to profiler view and Snapshot button is still focused
- click Reset Results button and now Thread Dump button is focused

I don't know what is the intention in regard of accessibility but for example in Java editor the code area is always focused when switched in and not the toolbar.

Product Version: NetBeans IDE Dev (Build 201504070001)
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26
System: Windows 8 version 6.2 running on amd64; Cp1250; en_US (nb)
Comment 1 Jiri Sedlacek 2015-04-23 13:40:13 UTC
The current behavior is intentional, toolbar buttons have always been fully focusable in profiler views.

For the special case - once you click the Reset Results button, the results are reset and the button disabled until new data arrive. Thus the focus moves from disabled Reset Results to the (first enabled) Thread Dump button.

Moving focus to the text component of Java editor is a natural behavior as the main use case for this view is editing the sources. In profiler you typically don't use keyboard for analyzing the results, much more likely you'll invoke another action from the toolbar (take another snapshot).