Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Build Identifier: According to this page, http://www.eclipsezone.com/eclipse/forums/t96096.html, screen readers should read out Labels preceding Tables. I have found this is not happening using the following code example and JAWS 10: import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.TableItem; public class TableExample { /** * @param args */ public static void main(String[] args) { Display d = new Display(); Shell shell = new Shell(d); FillLayout fill = new FillLayout(); fill.type = SWT.VERTICAL; fill.marginHeight = 0; fill.marginWidth = 0; shell.setLayout(fill); Composite panel = new Composite(shell, SWT.NONE); GridLayout containerGridLayout = null; containerGridLayout = new GridLayout(); containerGridLayout.numColumns = 3; containerGridLayout.marginTop = 5; containerGridLayout.marginRight = 5; containerGridLayout.marginLeft = 5; panel.setLayout(containerGridLayout); Label label = new Label(panel,SWT.NONE); GridData gridData = new GridData(GridData.FILL_HORIZONTAL); gridData.horizontalSpan = 3; label.setLayoutData(gridData); label.setText("Label preceding Table:"); //$NON-NLS-1$ Table table = new Table(panel, SWT.BORDER); table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); TableItem ti = new TableItem(table, SWT.LEFT); ti.setText("Table item 1"); TableItem t2 = new TableItem(table, SWT.LEFT); t2.setText("Table item 2"); shell.pack(); shell.open (); while (!shell.isDisposed ()) { if (!d.readAndDispatch ()) d.sleep (); } d.dispose (); } } Reproducible: Always
*** This bug has been marked as a duplicate of bug 320062 ***