Example usage for Java javax.swing ImageIcon fields, constructors, methods, implement or subclass
The text is from its open source code.
ImageIcon(String filename) Creates an ImageIcon from the specified file. | |
ImageIcon(URL location) Creates an ImageIcon from the specified URL. | |
ImageIcon(Image image) Creates an ImageIcon from an image object. | |
ImageIcon(byte[] imageData) Creates an ImageIcon from an array of bytes which were read from an image file containing a supported image format, such as GIF, JPEG, or (as of 1.3) PNG. | |
ImageIcon(String filename, String description) Creates an ImageIcon from the specified file. | |
ImageIcon(URL location, String description) Creates an ImageIcon from the specified URL. | |
ImageIcon(Image image, String description) Creates an ImageIcon from the image. | |
ImageIcon(byte[] imageData, String description) Creates an ImageIcon from an array of bytes which were read from an image file containing a supported image format, such as GIF, JPEG, or (as of 1.3) PNG. | |
ImageIcon() Creates an uninitialized image icon. |
String | getDescription() Gets the description of the image. |
int | getIconHeight() Gets the height of the icon. |
int | getIconWidth() Gets the width of the icon. |
Image | getImage() Returns this icon's Image . |
int | getImageLoadStatus() Returns the status of the image loading operation. |
ImageObserver | getImageObserver() Returns the image observer for the image. |
void | paintIcon(Component c, Graphics g, int x, int y) Paints the icon. |
void | setDescription(String description) Sets the description of the image. |
void | setImage(Image image) Sets the image displayed by this icon. |
void | setImageObserver(ImageObserver observer) Sets the image observer for the image. |
String | toString() Returns a string representation of this image. |