|
-
May 8th, 2000, 06:20 AM
#4
Re: How to catch the length of string in pixels
Ok, here's a version that should work with applets.
Graphics g = getGraphics();
FontMetrics fm = g.getFontMetrics();
int length = fm.stringLength(myString);
-------------------------------------------
weaver
icq# 64665116
Please rate this post.
http://weaver.x7.htmlplanet.com
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
|
Click Here to Expand Forum to Full Width
|