Achieving a LineBorder that is also padded
Hi all.
I'm using
Code :
setBorder (BorderFactory.createEmptyBorder (10,10,10,10));
to get some padding around a component (which is a group of other components), however I'd also like a thin border around this group (as well as the padding). How do I go about this.
At first I tried creating a new CompoundBorder with both the line and empty border. But this didn't work.
Cheers.
Re: Achieving a LineBorder that is also padded
What do you mean by "didn't work"?
I'd suggest you throw together an SSCCE demonstrating what you tried. A single component with the compound border should probably be enough.
Re: Achieving a LineBorder that is also padded