I want to put 2 JPanels next to each other in 1 JFrame. My JFrame is 1200 in width.
But I want the left panel to have the size of 300 and my right panel be the size of 900.
I want to put 2 JPanels next to each other in 1 JFrame. My JFrame is 1200 in width.
But I want the left panel to have the size of 300 and my right panel be the size of 900.
Set JFrame
with BorderLayout
and then set the first JPanel
orientation West
and the other set to Center
. The first JPanel
set 300 width. The other panel will be with the adjusted to the Frame