Results 1 to 2 of 2
- 12-21-2010, 09:24 AM #1
Member
- Join Date
- May 2010
- Posts
- 47
- Rep Power
- 0
question about Font.stringWidth()
Hi to all,
Hope you all will be fine. Actually i want to ask. When i code
it gives meJava Code:System.out.println( "Basit width is: " + mFont.stringWidth("Basit"));
I want to ask why it is giving me 24? Basit is 5 characters long. Please tell me what is this 24 exactly.Basit width is: 24
Thanks
- 12-21-2010, 04:19 PM #2
Member
- Join Date
- Dec 2010
- Posts
- 15
- Rep Power
- 0
Similar Threads
-
Set Font Color, Font Style & Font Family While Replacing Text
By sherazam in forum Java SoftwareReplies: 0Last Post: 08-18-2010, 10:31 AM -
Font.PLAIN - won't set font style to PLAIN!
By Unsub in forum New To JavaReplies: 3Last Post: 03-11-2010, 12:13 PM -
How to change font/ font color etc in a graphic object using JCombobox?
By JavaInLove in forum AWT / SwingReplies: 5Last Post: 04-25-2009, 08:00 PM -
SWT Font Registry Example
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:46 PM -
Font question
By orchid in forum Java 2DReplies: 1Last Post: 08-01-2007, 02:03 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks