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 130698 - [A11Y] no LABEL_FOR pointing to TreeView$ExplorerTree
Summary: [A11Y] no LABEL_FOR pointing to TreeView$ExplorerTree
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2008-03-20 18:20 UTC by _ potingwu
Modified: 2008-03-26 09:08 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 _ potingwu 2008-03-20 18:20:19 UTC
I got an A11Y bug which was forked from projectui/src/org/netbeans/modules/project/ui/BrowseFolders.java, the A11Y
toolkit shows the following error when opening the Browser dialog:

     Components with no LABEL_FOR pointing to it :
       Class: org.openide.explorer.view.TreeView$ExplorerTree {  |  } 

Then I found that there are so many such Browse dialogs have the same issue and they are either forked from the above
Java file or just use org.netbeans.spi.project.ui.templates.support.Templates.createSimpleTargetChooser(). The Browse
dialog all have this A11Y issue.

In my forked coded, I use the following to resolve it that I'm not sure is correct! I think the BeanTreeView should have
someway to return the tree that is not currently available:
    BeanTreeView btv = new BeanTreeView();
    ...
    someLabel.setLabelFor(btv.getViewport().getView());

Since there are at least 20-30 usages of this Browse dialogs in the current NetBeans IDE, mostly call
createSimpleTargetChooser(), I suggest it's a P2 bug that should be easy to fix and will fix lots of them.
Comment 1 Milan Kubec 2008-03-21 10:06:28 UTC
Correcting priority.
Comment 2 Milan Kubec 2008-03-26 09:08:33 UTC
Fixed.

http://hg.netbeans.org/main/rev/327cdce1951f