public final class Startup extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
static void |
run(Class uiClass,
int uiFontSize,
URL themeURL,
ResourceBundle rb)
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.
|
static void |
setClassLoader(ClassLoader loader)
Set a class loader to be used in place of
Thread.getContextClassLoader() . |
public static void setClassLoader(ClassLoader loader)
Thread.getContextClassLoader()
.loader
- a system-wide class loaderpublic static void run(Class uiClass, int uiFontSize, URL themeURL)
Startup.run(java.lang.Class, int, java.net.URL, java.util.ResourceBundle)
with null
resource bundle.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.public static void run(Class uiClass, int uiFontSize, URL themeURL, ResourceBundle rb)
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.rb
- resource bundle to use for branding or null. Allows NetBeans to provide enhanced version
of bundle that knows how to deal with branding. The bundle shall have the same keys as
org.netbeans.swing.plaf.Bundle
bundle has.