void setSizeConstraints(Dimension? minSize, Dimension? maxSize) { _minSize = minSize; _maxSize = maxSize; }