-
Rotate text using Java 2D on Win ME
Hi everybody,
I am trying to rotate text on Win ME. I created a JPanel with bounds(0,0,50,200)
& override the its paintComponent:
public void paintComponent(Graphics g){
super.paintComponent(g);
Graphics2D g2D = (Graphics2D)g;
g2D.translate(0,(double)getHeight());
g2D.rotate(-Math.PI/2);
g2D.drawString("Nasser",2,20);
}
this code will work on Win 2000, Win NT, Win 98. On Win ME, it shows only
the 1st character rotated (N).
Any Help will be appreciated.
Nas
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|