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 140031 - Evaluate Expression Dialog - multiple acessibility problems
Summary: Evaluate Expression Dialog - multiple acessibility problems
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2008-07-15 11:04 UTC by Petr Cyhelsky
Modified: 2009-03-30 13:44 UTC (History)
1 user (show)

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 Petr Cyhelsky 2008-07-15 11:04:01 UTC
Product Version: NetBeans IDE Dev (Build 200807101204)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Linux version 2.6.24-16-generic running on i386; UTF-8; en_US (nb)

Evaluate expression dialog has multiple acessibility problems:

No Accessible description :
Class    javax.swing.JButton { | }   (the corner button(change columns))

Components with no mnemonic :
Class    javax.swing.JButton { | } 
Class    javax.swing.JButton { Close | Close the evaluator dialog. } 

Components not reachable with tab traversal :
Class    javax.swing.JButton { | }  (the corner button for changing visible columns)
Class    javax.swing.JButton { Close | Close the evaluator dialog. } 
Class    javax.swing.JButton { Evaluate | Evaluate the expression. } 
Class    javax.swing.JButton { Help | Help button } 
Class    javax.swing.JButton { Watch | Add the expression into Watches view. } 
Class    javax.swing.JEditorPane { | text/x-java } 
Class    javax.swing.JScrollPane { Expression: | The expression to evaluate } 
Class    org.openide.explorer.view.TreeTable { N/A | N/A } 

The mnemonic for Evaluate button is not underlined or othervise marked on the button and/or it clashes with mnemonic for
the evaluate expression textfield (try typing in some variable -> alt-e).

The expression to evaluate scroll pane is not scrollable via arrow keys nor with mousewheel.
Comment 1 Tomas Pavek 2008-07-18 15:41:56 UTC
> No Accessible description :
> Class    javax.swing.JButton { | }   (the corner button(change columns))

I think this was fixed by issue 140161 (part of tree table view component).

> Components with no mnemonic :
> Class    javax.swing.JButton { | } 
> Class    javax.swing.JButton { Close | Close the evaluator dialog. }

The button for setting columns is not supposed to have a mnemonic - it has no text.
The Close button does not need mnemonic - Esc key can be used to close the dialog. The Evaluate button does not need it
either because it becomes the default button when editing the expression (so invoked by Enter). Buttons tied to
Esc/Enter don't need mnemonics.

> Components not reachable with tab traversal :
> Class    javax.swing.JButton { | }  (the corner button for changing visible columns)

This is reachable by TAB for me in today build (press TAB in Expression field); maybe fixed by 140161.

> Class    javax.swing.JButton { Close | Close the evaluator dialog. }
> Class    javax.swing.JButton { Evaluate | Evaluate the expression. }
> Class    javax.swing.JButton { Help | Help button }
> Class    javax.swing.JButton { Watch | Add the expression into Watches view. }

These are reachable but in a bit strange way. When the focus is switched away from the results table (via TAB) it goes
back to Expression field - while one would expect the focus will go to the Evaluate button. If Ctrl+TAB is used, the
focus switches properly to the buttons. This should be investigated. But all the buttons can also be invoked without
having focus, so this is a minor problem.

> Class    javax.swing.JEditorPane { | text/x-java }

This is the Expression field - I can switch to it via TAB without problems.

> Class    javax.swing.JScrollPane { Expression: | The expression to evaluate } 

This is probably the hidden scrollpane in which the editor component representing the Expression field is enclosed. No
reason why it should be reachable by TAB.

> Class    org.openide.explorer.view.TreeTable { N/A | N/A } 

The results view can be reached by TAB - two TABs from the Expression field, works for me in today build. The tree table
view does not paint the focus in any way if it has no content or nothing is selected. But the focus is there.

> The mnemonic for Evaluate button is not underlined or othervise marked on the button
> and/or it clashes with mnemonic for the evaluate expression textfield (try typing
> in some variable -> alt-e).

Evaluate button has no mnemonic. Alt+E is used to get to the Expression field. I don't know why I would type it again if
I am already in the Expression field.

> The expression to evaluate scroll pane is not scrollable via arrow keys nor with mousewheel.

I don't see any scroll pane in the expression field. It is supposed to be one line - scroll pane makes no sense here.


So I think the only (minor) issue is to find out why TAB moves focus from results table back to Expression field instead
of to Evaluate button.

What I found an accessible problem not reported here is that I can't expand the combo box and choose something from it
via keyboard. It's probably because the arrow keys are consumed by the editor component which theoretically can contain
more lines of code.
Comment 2 Petr Cyhelsky 2008-07-18 15:45:42 UTC
Well the combo problem isnt here because i showed it to mentlicher in person :)
Comment 3 Daniel Prusa 2008-08-07 16:33:37 UTC
Focus can be moved from results table to Evaluate button by pressing Ctrl+TAB.
Comment 4 Martin Entlicher 2008-11-11 10:20:37 UTC
Evaluate Expression dialog will probably be changed in NB 7.0.
Comment 5 Martin Entlicher 2009-03-30 13:04:13 UTC
Evaluate dialog is gone, therefore this is fixed. ;-)
Comment 6 Petr Cyhelsky 2009-03-30 13:44:53 UTC
cool fix :)