I have worked on some basic application in java swing, such as reading a text from JTextField, or implement some logic on the event generated by JButton. I have gone thorough the topics in the internet of how to create a button of custom shape as compared to JButton which is rectangular in shape. I want to know is there someway to display the text in the JLabel in an inclined way. I have attached an image for clarification. Suppose I want to create JLabel as
It will display the text JLabel as the text in the image (left side)
I want to display the text as in the image at the right side
Please suggest me how can I achieve this.
Left one is the normal inclination and right one that I wanted