So in css you can set overflow on a div, for eg, and force it to show any overflowing elements appended to it. Can you do that with swing?
JLabel outside=new JLabel();
outside.setBounds(100,100,400,400);
JLabel inside=new JLabel();
inside.setBounds(0,0,500,400);
outside.add(inside); // show the cropped parts?
I'm aware I've omitted a bucket load of other code. This is more just theory. I did google 'JLabel overflow' as well as 'Swing Component overflow' but couldn't find anything concrete.
If there's no simple answer, just type 'No' and I'll leave it alone.
Thanks