put everything else in a separate panel, then add that to EAST/WEST/NORTH or SOUTH,
giving it a preferredSize width or height (depending on where it is in the BorderLayout) equal to 20% of the frame's width or height,
then add the scrollpane to BorderLayout.CENTER, and it will take up the remaining 80%
Joined: Mar 04, 2009
I tried the below code but it didn't work. It is 50% for both. I'll try Michael Dunn's suggestion and give feedback.
Joined: Feb 23, 2007
Leandro Coutinho wrote:Thank you.
I tried the below code but it didn't work. It is 50% for both.