Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to turn the text vertical in graphics?

 
Shashi Bhushan N
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any facility in FontMetrics or Font or Swing.text to turn my text vertical??
 
David Gilbert
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the method I use in JFreeChart to draw vertical labels for axes:

Regards,
Dave Gilbert
JFreeChart Project Leader
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic