aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to turn the text vertical in graphics? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to turn the text vertical in graphics?" Watch "How to turn the text vertical in graphics?" New topic
Author

How to turn the text vertical in graphics?

Shashi Bhushan N
Greenhorn

Joined: Sep 02, 2003
Posts: 12
Hi,
I was just using
g.drawString("N.SHASHIBHUSHAN",50,50);
and thought of displaying my name vertically
N
.
S
H
A
S
H
I
B
H
U
S
H
A
N
!!!@#$%!!!
But how do i do it in the applet???
Thankyou and regards.
Shashi Bhushan N
Greenhorn

Joined: Sep 02, 2003
Posts: 12
Is there any facility in FontMetrics or Font or Swing.text to turn my text vertical??
David Gilbert
Ranch Hand

Joined: Jun 01, 2002
Posts: 42
Here's the method I use in JFreeChart to draw vertical labels for axes:

Regards,
Dave Gilbert
JFreeChart Project Leader
 
Consider Paul's rocket mass heater.
 
subject: How to turn the text vertical in graphics?