void (int yTop) { JComponent parent = myEditor.getContentComponent(); for (int i = 0; i < parent.getComponentCount(); ++i) { Component component = parent.getComponent(i); if (component instanceof MyRenderer && component.getY() >= yTop) { component.revalidate(); } } }