public class Resource extends Object
| Constructor and Description |
|---|
Resource() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
getFileResource(String resourcePath)
Open a resource as a Stream.
|
static ImageIcon |
getIcon(String fullIconName,
boolean errMsg)
Get a gif file, make it into an ImageIcon.
|
static Image |
getImage(String fullImageName)
Get a gif file, make it into an Image.
|
static URL |
getURL(String filename)
Get a file as a URL
|
static void |
main(String[] args) |
static Cursor |
makeCursor(String name)
Get a gif file, make it into a Cursor.
|
public static ImageIcon getIcon(String fullIconName, boolean errMsg)
fullIconName - full path name of gif file (use forward slashes!)errMsg - print err message on failurepublic static Image getImage(String fullImageName)
fullImageName - full path name of gif file (use forward slashes!)public static URL getURL(String filename)
filename - full path name of file (use forward slashes!)public static Cursor makeCursor(String name)
name - full path name of gif file (use forward slashes!)public static InputStream getFileResource(String resourcePath)
resourcePath - name of file path (use forward slashes!)public static void main(String[] args)
Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.