public class IconCache extends Object
Constructor and Description |
---|
IconCache()
Creates an icon cache.
|
Modifier and Type | Method and Description |
---|---|
ImageIcon |
getImageIcon(String urlString)
Gets an Icon from the cache.
|
static String |
getImageIconUrlAsString(String urlString)
Returns an Icon URL as String.
|
public static String getImageIconUrlAsString(String urlString)
urlString
- Relative URL of the icon.public ImageIcon getImageIcon(String urlString)
urlString
- URL for which to get the icon.
Relative URLs are resolved using the ClassLoader of IconCache.
Absolute URLs are not yet supported.Copyright © 2016 Nelkinda Software Craft Pvt Ltd. All rights reserved.