I have JLabel (actually it is JXLabel).
I placed an icon and text on it.
<icon><text>
Now I made a wand to add some space on the left side of the component, for example:
<space><icon><text>
I DO NOT accept the suggestion to move JLabel or add spacing by changing the image.
I just want to know how to do this with simple Java code.
java swing swingx jlabel
michelemarcon
source share