The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


StyleSheet again

Posted by Rach on December 10, 2001 at 2:44 PM

Hi Brian,

Thanks for your answer. I just wanna make sure about what you mentioned. Does it mean that I couldn't customize those sizes myself at all? And does the setBaseFontSize(int) only work in J2SE 1.4?

Thanks again,

> You can't with the Sun JDK implementation.

> The Sun implementation only uses 7 point sizes:
> (8, 10, 12, 14, 18, 24, 36)
> The default "base font size" is "3", which corresponds to the element of the list at index 3 (14pt). getPointSize("+2") corresponds to the element of the list at index (3 + 2) (24pt).


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us