void releaseParent() { super.releaseParent(); if (this == parent.getCaret()) parent.setCaret(null); }