private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly);
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock ()) { for (int i = ncomponents - 1; i >= 0; --i) { Component comp = component[i];    boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly && ! (comp instanceof Container));
	private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) {		synchronized (getTreeLock()) {			for (int i = 0; i < ncomponents; ++i) {				Component comp = component[i];				boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly);				if (applicable)					visitChild(gfx, visitor, comp);			}		}	}