Package org.omegat.util.gui
Class ResourcesUtil
- java.lang.Object
-
- org.omegat.util.gui.ResourcesUtil
-
public final class ResourcesUtil extends java.lang.Object
Utils for load resources from classpath.
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.Image
APP_ICON_16X16
static java.awt.Image
APP_ICON_32X32
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Properties
getBundleColorProperties(java.lang.String style)
Load default colors scheme for LAF theme.static java.awt.Image
getBundledImage(java.lang.String imageName)
Load icon from classpath.static java.awt.Image
getImage(java.lang.String resourceName)
Load icon.
-
-
-
Field Detail
-
APP_ICON_32X32
public static final java.awt.Image APP_ICON_32X32
- See Also:
- Icon Reference Chart
-
APP_ICON_16X16
public static final java.awt.Image APP_ICON_16X16
-
-
Method Detail
-
getImage
public static java.awt.Image getImage(java.lang.String resourceName)
Load icon.- Parameters:
resourceName
- resource name
-
getBundledImage
public static java.awt.Image getBundledImage(java.lang.String imageName)
Load icon from classpath.- Parameters:
imageName
- icon file name- Returns:
- icon instance
-
getBundleColorProperties
public static java.util.Properties getBundleColorProperties(java.lang.String style) throws java.io.IOException
Load default colors scheme for LAF theme.- Parameters:
style
- a style name, should be 'light' or 'dark'- Returns:
- Properties object loaded when succeeded, otherwise null
- Throws:
java.io.IOException
-
-