List of usage examples for javax.accessibility AccessibleComponent getBackground
public Color getBackground();
From source file:MainClass.java
void dumpComponentInfo(AccessibleContext ac) { AccessibleComponent ax = ac.getAccessibleComponent(); if (ax != null) { String s = ac.getAccessibleName(); if (s != null && s.equals("OK")) { System.out.println("Background color: " + ax.getBackground()); System.out.println("Cursor: " + ax.getCursor()); Cursor c = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR); ax.setCursor(c);/*from w w w . j a v a 2 s .c om*/ System.out.println("Foreground color: " + ax.getForeground()); System.out.println("Location: " + ax.getLocationOnScreen()); } } int nChildren = ac.getAccessibleChildrenCount(); for (int i = 0; i < nChildren; i++) dumpComponentInfo(ac.getAccessibleChild(i).getAccessibleContext()); }