By the way... I'm using the SwingUtilities.layoutCompoundLabel() to calculate the text and icon rects, accordingly to the vertical/horizontal alignments and to the vertical/horizontal text alignments...
Is there a better way to do it? Because... When I rotate in 0 or 180 degrees it's ok (I just change the vertical/horizontal alignments when I rotate in 180 degrees). The problem is when I rotate in 90 or 270 degrees. The vertical/horizontal alignments works ok too (I change too). The problem is about the width and the height.... For example, when I put the component that I'm making on a frame with a text and a rotation on 90 or 270 degrees, it looks like that they are inverted, but when I invert in the component code, everything got weird (for example: when I resize the component on the width, the text moves diagonally).... [Message sent by forum member 'mario_cesar' (mario_cesar)] http://forums.java.net/jive/thread.jspa?messageID=193162 =========================================================================== 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".
