Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Accessible behavior of Label + Combo
Accessible behavior of Label + Combo [message #484518] Tue, 08 September 2009 02:29
Benjamin Gold is currently offline Benjamin GoldFriend
Messages: 6
Registered: July 2009
Junior Member
I'm trying to find any documentation or other notes about the behavior I'm
seeing. Basically what I've found is that if you have a Label followed by
a Combo, the JAWS screen reader will only read the Label if it has a
mnemonic in the text (i.e. "T&ext"). Is this expected behavior? Or does
anyone know if there an option in JAWS to get it to read non-mnemonic
Labels?

Here's a code snippet that demonstrates the issue:

Display display = new Display();

Shell shell = new Shell();

GridLayout gLayout = new GridLayout();
gLayout.numColumns = 2;

shell.setLayout(gLayout);

Label testLabel = new Label (shell, SWT.NONE);

// Removing & from the Label causes it to not be read by JAWS
testLabel.setText("&Label Text:");

Combo testCombo = new Combo (shell, SWT.DROP_DOWN | SWT.READ_ONLY |
SWT.SINGLE);
testCombo.add("one");
testCombo.add("two");
testCombo.add("three");

testCombo.select(0);

shell.pack();
shell.open();

while (!shell.isDisposed())
{
if (!display.readAndDispatch())
{
display.sleep();
}
}


--------------
Ben Gold
Previous Topic:JEditorPane Problem
Next Topic:Re: Bizarre issue with tab order in a ToolBar
Goto Forum:
  


Current Time: Wed Apr 24 13:37:38 GMT 2024

Powered by FUDForum. Page generated in 0.02505 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top