|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.wlpi.client.common.ImageFactory
A static factory class that creates and caches images and icons. This class
is provided to enable access to images in JAR files, because the
ImageIcon(URL)
constructor now requires an absolute URL that
references the actual JAR file in which the image is located. Pre JDK 1.1
releases used sun.net.* classes to search all JARs referenced in an applet's
ARCHIVE tag, but this is no longer the case.
Method Summary | |
static javax.swing.ImageIcon |
getIcon(java.lang.String name)
An icon constructed from the specified resource. |
static java.lang.String |
getName(javax.swing.ImageIcon icon)
Get the resource name used to construct the specified icon. |
static java.net.URL |
getResource(java.lang.String name)
Get a URL for the specified resource. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static javax.swing.ImageIcon getIcon(java.lang.String name)
name
- Resource name (fully qualified with '/' separators).public static java.lang.String getName(javax.swing.ImageIcon icon)
getIcon(java.lang.String)
.
icon
- Existing icon object.public static java.net.URL getResource(java.lang.String name)
name
- Resource name (fully qualified with '/' separators).
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |