Gap « JLabel « Java Swing Q&A





1. How to add a horizontal gap with a JLabel    stackoverflow.com

I have a JLabel (actually, it is a JXLabel). I have put an icon and text on it. Now I wand to add some spacing on the left side of the component, like ...