Hi all, I am writing a javaapplet that displays a line graph, and I am wondering if it is possible to draw vertical strings in the applet. the drawString method only allows you to give it a startX and a startY, which means that the only way to draw that string is horizontal. If you know how to do this, I would appreciate any information you could provide. Thanks.
Use a loop control, you can use charAt(String toDraw) to draw each character of the string with a constant X-coordinate and decreamental Y-coordinate. You need to experiment to find correct X-coordinate and correct y-coordinate and its decreamental according to the font you are using for the string. Hope this helps. Ruilin
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
Devious Experiments for a Truly Passive Greenhouse!