public interface Resources
Modifier and Type | Method and Description |
---|---|
ImageIcon |
getImageIcon(String key)
Overloaded version of
getImageIcon(String, boolean)
which doesn't write out a waning if the resource is missing. |
ImageIcon |
getImageIcon(String key,
boolean warnIfMissing)
Use key to look up resource which names image URL.
|
String |
getString(String key)
Overloaded version of
getString(String, boolean) which
writes out a waning if the resource is missing. |
String |
getString(String key,
boolean warnIfMissing)
Use key to look up resource which names image URL.
|
String |
getStringFromFile(String key,
boolean warnIfMissing)
Use
key to identify a file by URL. |
String getString(String key)
getString(String, boolean)
which
writes out a waning if the resource is missing.key
- The resource key.String getString(String key, boolean warnIfMissing)
key
- The resource key.warnIfMissing
- true => write out an error message if the
resource is missing.ImageIcon getImageIcon(String key)
getImageIcon(String, boolean)
which doesn't write out a waning if the resource is missing.key
- The resource key.ImageIcon getImageIcon(String key, boolean warnIfMissing)
key
- The resource key.warnIfMissing
- true => write out an error message if the
resource is missing.String getStringFromFile(String key, boolean warnIfMissing)
key
to identify a file by URL. Return contents
of file as a String.key
- Resource key used to look up URL of file.warnIfMissing
- true => write out an error message if the
resource is missing.Copyright © 2000-2014. All Rights Reserved.