public void removeChild(Node node) { super.removeChild(node); if (node instanceof AxisAlignedPanel) { AxisAlignedPanel panel = (AxisAlignedPanel)node; Check.state(panel.getFrame()==this,"frame of panel equals this"); panel.setFrame(null); } }
public void removeChild(Node node) { super.removeChild(node); if (node instanceof AxisAlignedPanel) { AxisAlignedPanel panel = (AxisAlignedPanel)node; Check.state(panel.getFrame()==this,"frame of panel equals this"); panel.setFrame(null); } }