dcsimg

How can I set the minimum size of a Window/Frame?

Sandip Chitale

Subclass and override -


public Dimension getMinimumSize() {
  return new Dimension(
    MINIMUM_WIDTH, MINIMUM_HEIGHT);
}

Note that the native implementation of Frame does not allow minimum size below certain size.