appBase
Class FontManager

java.lang.Object
  extended by appBase.FontManager

public class FontManager
extends java.lang.Object

The FontManager class provides tha capability of setting the font size for all of the components in a swing application or applet.


Constructor Summary
FontManager()
           
 
Method Summary
static void setFontSize(float sz)
          FontManager.setFontSize(sz) sets the font size for all swing display components to sz.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontManager

public FontManager()
Method Detail

setFontSize

public static void setFontSize(float sz)
FontManager.setFontSize(sz) sets the font size for all swing display components to sz. This method does not by itself change the display. To do that, SwingUtilities.updateComponentTreeUI() should be invoked on the contentPane and, if it exists, the menu bar.

BUG: If there are multiple applets in a single web page that use this library then there is no way to control their font sizes individually. They will all share this class so setting the font size for one sets the font size for all. However, SwingUtilities.updateComponentTreeUI() can be invoked on on individual applet content panes and menu bars. The effects of doing this have not been explored.

Parameters:
sz -