You would do well to read up on the various layout managers at the
Sun Swing tutorials. It will tell you how to solve this. One possibility is to add the inner JPanel to the JFrame's content via BorderLayout.CENTER, though this is the default for the contentPane so somehow your app must be changing this. Again, without more information it would be difficult to provide more help. Best of luck and HTH.
angus young wrote:Sorry for the lack of information
I created a jframe and add into the jframe a jpanel.
I defined the flow layout for the panel.
Now when I am running the application and choosing the window maximize option the panel will stay in the same size, means that half of the window will be “empty”.