public class ImageGrabber extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
ImageGrabber() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
getImage(String path)
Create an image.
|
static ImageIcon |
getImageIcon(String path)
Create an image icon.
|
static JLabel |
getImageLabel(String path)
Create an image label.
|
private static final long serialVersionUID
public static BufferedImage getImage(String path) throws IOException
path - The path to the image.IOException - If an image cannot be read correctly. Since all
image paths are hard coded, this should never
be thrown.public static ImageIcon getImageIcon(String path) throws IOException
path - The path to the image.IOException - If an image cannot be read correctly. Since all
image paths are hard coded, this should never
be thrown.public static JLabel getImageLabel(String path) throws IOException
path - The path to the image.IOException - If an image cannot be read correctly. Since all
image paths are hard coded, this should never
be thrown.