| Modifier and Type | Field and Description |
|---|---|
private javax.swing.plaf.FontUIResource |
controlFont |
private javax.swing.plaf.FontUIResource |
menuFont |
private javax.swing.plaf.FontUIResource |
messageFont |
private javax.swing.plaf.FontUIResource |
smallFont |
private javax.swing.plaf.FontUIResource |
titleFont |
private javax.swing.plaf.FontUIResource |
windowTitleFont |
| Constructor and Description |
|---|
DefaultFontSet(java.awt.Font controlFont,
java.awt.Font menuFont,
java.awt.Font titleFont,
java.awt.Font messageFont,
java.awt.Font smallFont,
java.awt.Font windowTitleFont)
Constructs a DefaultFontSet for the given fonts.
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.plaf.FontUIResource |
getControlFont()
Returns the font used for all dialog components.
|
javax.swing.plaf.FontUIResource |
getMenuFont()
Returns the font used for the menu.
|
javax.swing.plaf.FontUIResource |
getMessageFont()
Returns the font used for message dialogs.
|
javax.swing.plaf.FontUIResource |
getSmallFont()
Returns the font used for tool tips.
|
javax.swing.plaf.FontUIResource |
getTitleFont()
Returns the font used for the title label in TitledBorders.
|
javax.swing.plaf.FontUIResource |
getWindowTitleFont()
Returns the font used for internal frame titles.
|
private final javax.swing.plaf.FontUIResource controlFont
private final javax.swing.plaf.FontUIResource menuFont
private final javax.swing.plaf.FontUIResource titleFont
private final javax.swing.plaf.FontUIResource messageFont
private final javax.swing.plaf.FontUIResource smallFont
private final javax.swing.plaf.FontUIResource windowTitleFont
public DefaultFontSet(java.awt.Font controlFont,
java.awt.Font menuFont,
java.awt.Font titleFont,
java.awt.Font messageFont,
java.awt.Font smallFont,
java.awt.Font windowTitleFont)
null, it uses the control font as
fallback. If the small font is null it will
be derived from the control font.controlFont - used for all controlsmenuFont - used for the menu bar and menu itemstitleFont - used for TitledBorder, titles and titled separatorsmessageFont - used for OptionPanessmallFont - used for tool tips and similar componentswindowTitleFont - used for internal frame window titlesjava.lang.NullPointerException - if the control font is nullpublic javax.swing.plaf.FontUIResource getControlFont()
FontSetgetControlFont in interface FontSetpublic javax.swing.plaf.FontUIResource getMenuFont()
FontSetgetMenuFont in interface FontSetpublic javax.swing.plaf.FontUIResource getTitleFont()
FontSetgetTitleFont in interface FontSetpublic javax.swing.plaf.FontUIResource getWindowTitleFont()
FontSetgetWindowTitleFont in interface FontSetpublic javax.swing.plaf.FontUIResource getSmallFont()
FontSetgetSmallFont in interface FontSetpublic javax.swing.plaf.FontUIResource getMessageFont()
FontSetgetMessageFont in interface FontSet