ボタン クリック イベントの開始後に、swing アプリケーションのルック アンド フィールを変更しました。しかし、小さなウィンドウのルック アンド フィールを変更すると、そのウィンドウのサイズを変更できなくなります。最大化されたウィンドウでルック アンド フィールを変更すると、完全に機能します。
これが私のコードです
UIManager.setLookAndFeel(new AluminiumLookAndFeel());
SwingUtilities.updateComponentTreeUI(nextFrame);
nextFrame.pack();
SwingUtilities.updateComponentTreeUI(this);
this.pack();