public class ResourceUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static @NotNull java.lang.String |
ALL_SPELL_SKILLS_ICON
The resource name for the default skill face.
|
static @NotNull java.lang.String |
APPLICATION_ICON
The resource name for the application icon.
|
static @NotNull java.lang.String |
NEXT_GROUP_FACE
The resource for "Click here for next group of items" buttons.
|
static @NotNull java.lang.String |
PREV_GROUP_FACE
The resource for "Click here for previous group of items" buttons.
|
static @NotNull java.lang.String |
UNKNOWN_PNG
The resource name of the "unknown" face.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull javax.swing.ImageIcon |
loadImage(@NotNull java.lang.String name)
Loads an image file.
|
@NotNull public static final @NotNull java.lang.String UNKNOWN_PNG
@NotNull public static final @NotNull java.lang.String NEXT_GROUP_FACE
@NotNull public static final @NotNull java.lang.String PREV_GROUP_FACE
@NotNull public static final @NotNull java.lang.String APPLICATION_ICON
@NotNull public static final @NotNull java.lang.String ALL_SPELL_SKILLS_ICON
@NotNull public static @NotNull javax.swing.ImageIcon loadImage(@NotNull @NotNull java.lang.String name) throws java.io.IOException
name
- the resource name to loadjava.io.IOException
- if the image cannot be loaded