I know there are many other posts about how to rotate an JLabel on the forum. But they all talk about rotating the imageIcon inside the jLablel. I would like to know if its possible to rotate the label itself.
My requirement is that I have a label that is a straight line. Not I would like to rotate it dynamically based on other things on the panel. Now if I just rotate the imageIcon by say 45 degress, the new label would take more space and probably overlap other components.
I hope, I framed my question properly.