当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
Startup (Look & Feel Customization Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.swing.plaf
Class Startup
java.lang.Object
org.netbeans.swing.plaf.Startup
public final class Startup
- extends Object
Singleton, manages customizers for various LFs. Installs, uninstalls them on LF change.
LF customizers works with Swing UIManager, putting info about various UI elements
in it. Other modules then can query UIManager to get UI elements to get needed
visual design and behaviour.
Method Summary |
static void |
run(Class uiClass,
int uiFontSize,
URL themeURL)
Initialize values in UIDefaults which need to be there for NetBeans' components; apply customizations such
as setting up a custom font size and loading a theme. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
run
public static void run(Class uiClass,
int uiFontSize,
URL themeURL)
- Initialize values in UIDefaults which need to be there for NetBeans' components; apply customizations such
as setting up a custom font size and loading a theme.
- Parameters:
uiClass
- The UI class which should be used for the look and feeluiFontSize
- A custom fontsize, or 0. This will be retrievable via UIManager.get("customFontSize") after this method has returned
if non 0. If non zero, all of the standard Swing font keys in UIDefaults will be customized to
provide a font with the requested size. Results are undefined for values less than 0 or greater
than any hard limit the platform imposes on font size.themeURL
- An optional URL for a theme file, or null. Theme file format documentation can be found
here.