|
-
Subscript in Strings
Hello.
I want to draw Strings containing subscripts on designated places in my JFrame. I know you can use html-coding to get subscripts on for example buttons and textfields, but I can't use those since the placement have to be dynamic.
The only option I've found is to check the string for numbers, then divide the string into substrings and draw each of these using different fonts. But I get a problem because it's very hard to calculate the length of a string in pixels.
Is there a simpler solution?
Similar Threads
-
By Miha Markic in forum .NET
Replies: 5
Last Post: 06-19-2006, 09:48 AM
-
By kashif_82 in forum ASP.NET
Replies: 1
Last Post: 07-26-2005, 08:23 AM
-
Replies: 246
Last Post: 10-26-2002, 12:30 AM
-
By Mark Alexander Bertenshaw in forum VB Classic
Replies: 4
Last Post: 03-04-2002, 07:04 AM
-
By Brian Leung in forum VB Classic
Replies: 36
Last Post: 09-18-2000, 09:53 AM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks