List of usage examples for javax.accessibility AccessibleRelation getTarget
public Object[] getTarget()
From source file:MainClass.java
void dumpConnectedInfo(AccessibleContext ac) { AccessibleRelationSet ars = ac.getAccessibleRelationSet(); AccessibleRelation ar = null; if (ars != null) ar = ars.get("connector"); if (ar != null) { Object[] o = ar.getTarget(); JComponent jc = (JComponent) o[0]; System.out.println("Label connected to: " + jc.getAccessibleContext().getAccessibleName()); return;/*from w ww . jav a2s . com*/ } int nChildren = ac.getAccessibleChildrenCount(); for (int i = 0; i < nChildren; i++) dumpConnectedInfo(ac.getAccessibleChild(i).getAccessibleContext()); }