Java/Skew and Bend JLabel in Swing
I checked your link and it was very helpful for rotating JLabel in swing.
By this link I got Idea, But here one problem for me.
Is there any way to add skew and bend(separately) feature into this RotatedJLabel.java file. So we just call the method like rotate the jlabel (rjl.setRotation(30);) likewise,
I am very confused to how to implement that both functionality with same RotatedJLabel.java class.
Can you help me for this?
Give me some more idea...
First, I didn't answer that question, it was someone else that answers questions here.
You can shear/scale/rotate pretty easily, but bending is more difficult. For that you will need to use the Java Advanced Imaging library.
To use the RotatedJLabel class simply add it as a component in a swing enviroment, and use the setRotation to change it.
Note that the class is probably more than you need. If you just want to draw a rotated string you can use font.deriveFont(0, tx) where tx is your AffineTransform.
g.drawString("String", 50, 50);