EditorComponentImpl () { for (int i = getComponentCount() - 1; i >= 0; i--) { Component component = getComponent(i); if (component instanceof EditorComponentImpl) { return (EditorComponentImpl)component; } } throw new IllegalStateException(); }