Have you tried something like this?
[code]
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.plaf.basic.BasicHTML;
import javax.swing.text.View;
public class HtmlText {
    public static void main(String[] args) {
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        f.add(new JPanel() {
            protected void paintComponent(Graphics g) {
                View v = BasicHTML.createHTMLView(this, "<html><i>Hi</i> 
<b>there</b></html>");
                v.paint(g, getVisibleRect());
            }
        });
        f.pack();
        f.setVisible(true);
    }
}
[/code]
It should get you going for drawing html, how to rotate it you already know...
BTW I've tested it only on java 6, can't vouch it works for older JDKs, but see 
no reason why not.
[Message sent by forum member 'rah003' (rah003)]

http://forums.java.net/jive/thread.jspa?messageID=192700

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to