|
-
Scaling
Hi everyone,
I have a JTextPane with some styled text in it and i am trying to scale them.
What i mean is that assuming that the text inside the JTextPane on startup is a 100% in size. After i click some JButton all the font size of the entire document is reduced to 25%
The thing is that this JTextPane contains alot of text that has different font sizes thus i want each of their respective font sizes of the character to be 25% of its original value.
Does anyone know how to do this?
But is there another way i could achieve the scaling of my styled text in my JTextPane so that it is 25% of its original value by means of subclassing my JTextPane or StyledDocument class and overiding its paint method?
Does anyone know how to do this?
Any help is greatly appreciated
Thank You
Yours Sincerely
Richard West
Similar Threads
-
Replies: 2
Last Post: 01-10-2003, 01:18 PM
-
By dave in forum Enterprise
Replies: 0
Last Post: 10-25-2001, 03:09 PM
-
By Allen Johnson in forum VB Classic
Replies: 2
Last Post: 04-28-2000, 11:00 AM
-
By Allen Johnson in forum VB Classic
Replies: 0
Last Post: 04-26-2000, 12:39 PM
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