void () { super.init(); DialogWrapperPeer peer = getPeer(); JRootPane pane = peer.getRootPane(); if (pane != null) { JBDimension size = JBUI.size(FlatWelcomeFrame.MAX_DEFAULT_WIDTH, FlatWelcomeFrame.DEFAULT_HEIGHT); pane.setMinimumSize(size); pane.setPreferredSize(size); } }