public class Resource
extends java.lang.Object
| Constructor and Description |
|---|
Resource() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.InputStream |
getFileResource(java.lang.String resourcePath,
java.lang.String fileName)
Open a resource as a Stream.
|
static javax.swing.ImageIcon |
getIcon(java.lang.String fullIconName,
boolean errMsg)
Get a gif file, make it into an ImageIcon.
|
static java.awt.Image |
getImage(java.lang.String fullImageName)
Get a gif file, make it into an Image.
|
static javax.swing.ImageIcon |
getImageIcon(java.lang.String fullImageName)
Get a gif file, make it into an ImageIcon.
|
static java.net.URL |
getURL(java.lang.String filename)
Get a file as a URL
|
static void |
main(java.lang.String[] args)
testing
|
static java.awt.Cursor |
makeCursor(java.lang.String name)
Get a gif file, make it into a Cursor.
|
public static javax.swing.ImageIcon getIcon(java.lang.String fullIconName,
boolean errMsg)
fullIconName - full path name of gif file (use forward slashes!)errMsg - print err message on failurepublic static java.awt.Image getImage(java.lang.String fullImageName)
fullImageName - full path name of gif file (use forward slashes!)public static javax.swing.ImageIcon getImageIcon(java.lang.String fullImageName)
fullImageName - full path name of gif file (use forward slashes!)public static java.net.URL getURL(java.lang.String filename)
filename - full path name of file (use forward slashes!)public static java.awt.Cursor makeCursor(java.lang.String name)
name - full path name of gif file (use forward slashes!)public static java.io.InputStream getFileResource(java.lang.String resourcePath,
java.lang.String fileName)
resourcePath - name of file path (use forward slashes!)fileName - name of file (use forward slashes!)public static void main(java.lang.String[] args)
args -