so I have my JFrame set to fullsize
temp.setExtendedState(JFrame.MAXIMIZED_BOTH);
I add 3 panels (borderlayout), in panel1 I have JLabel to display an image using:
img.getScaledInstance(600, 400,
Image.SCALE_SMOOTH);
panel2 the same , panel3 just some buttons. (I will not post the whole code here), but this code runs great. Now what I want to do is: Jframe is fullsized, and 45% is taken by panel1, 45% by panel2, 10% panel3. If my picture to dsiplay is too big to fit 45% it gets scaled to fit this 45% of JFrame, if it's smaller than it's just displayed. Any ideas ?