親のサイズ変更時に JInternalFrames のサイズを変更する場合は、自分で行う必要があります。レイアウトマネージャーを使用してもこれは行われません.camickrが言うように、とにかくJDesktopPaneにレイアウトマネージャーを使用するべきではありません.
内部フレームのサイズを変更する場合は、JFrame に ComponentListener を設定し、setBounds() を使用して内部フレームを選択した比率にサイズ変更する必要があります。
@Override public void componentResized(ComponentEvent e) {
if (e.getSource() == yourFrame) {
yourInternalFrame1.setBounds(0, 0, yourFrame.getContentPane().getWidth() / 4, yourFrame.getContentPane().getHeight());
yourInternalFrame2.setBounds(yourFrame.getContentPane().getWidth() / 4, 0, yourFrame.getContentPane().getWidth() / 2, yourFrame.getContentPane().getHeight() / 2);
// and so on
// also can use yourDesktopPane instead of yourFrame.getContentPane()
}
}