hello. I have a JFrame, I use a container for this. Now, i want to add two JPanels to the container and then add the container to the JFrame. My problem is that I cannot set the "size" of the JPanels. I want the first Jpanel to take the 1/3 of the screen vertical, and the other JPanel to take the rest of the Jframe. How can I do that? panel.setSize and setPreferedSize does not work .
Do you have any suggestions?, because i really need it.