/** * Sets the frame for this panel. If the frame is not null and this panel * has a non-null constraint, then this method sets the constraint of its * frame accordingly. * @param frame the frame; null, if none. */ public void setFrame(AxisAlignedFrame frame) { _frame = frame; if (_frame!=null) { BoxConstraint constraint = getBoxConstraint(); if (constraint!=null) _frame.setBoxConstraint(constraint); } dirtyBoundingSphere(); dirtyDraw(); }