Package com.sshtools.common.ui
Class ResourceIcon
java.lang.Object
javax.swing.ImageIcon
com.sshtools.common.ui.ResourceIcon
- All Implemented Interfaces:
Serializable
,Accessible
,Icon
- Version:
- $Revision: 1.20 $
- Author:
- $author$
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionResourceIcon
(Class cls, String image) Creates a new ResourceIcon object.ResourceIcon
(String imageName) Deprecated.Having this available is now bad practice since most of our software is plugable; each class requesting a resource should do so from the class loader that loaded the class, to keep track of images a class should also not be requesting a resource that is outside its own package.ResourceIcon
(URL url) Creates a new ResourceIcon object. -
Method Summary
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, loadImage, paintIcon, setDescription, setImage, setImageObserver, toString
-
Constructor Details
-
ResourceIcon
Creates a new ResourceIcon object.- Parameters:
cls
-image
-
-
ResourceIcon
Creates a new ResourceIcon object.- Parameters:
url
-
-
ResourceIcon
Deprecated.Having this available is now bad practice since most of our software is plugable; each class requesting a resource should do so from the class loader that loaded the class, to keep track of images a class should also not be requesting a resource that is outside its own package. For resources outside of a package, we should think about creating static helper class to store them. Use the ResourceIcon(Class cls, String image) constructor instead providing the class instance of the class using the image.Creates a new ResourceIcon object.- Parameters:
imageName
-
-
-
Method Details
-
loadImage
- Parameters:
imageName
-
-