How do I add a margin outside the border of a component in Swing?

Posted by Jonas on Stack Overflow See other posts from Stack Overflow or by Jonas
Published on 2010-05-21T15:12:54Z Indexed on 2010/05/22 1:20 UTC
Read the original article Hit count: 250

Filed under:
|
|
|

I use multiple components that has a border painted. Is there any easy way to add a margin to the component so that the borders aren't painted so close to eachother?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing