public final class ResourceIcon extends Object implements Icon
IconEditor| Constructor and Description |
|---|
ResourceIcon(File resource) |
ResourceIcon(File resource,
Toolkit toolkit) |
ResourceIcon(String resource) |
ResourceIcon(String resource,
Toolkit toolkit) |
ResourceIcon(URL resource) |
ResourceIcon(URL resource,
Toolkit toolkit) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
URL |
getURL() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public ResourceIcon(File resource, Toolkit toolkit) throws MalformedURLException
MalformedURLExceptionpublic ResourceIcon(File resource) throws MalformedURLException
MalformedURLExceptionpublic ResourceIcon(String resource, Toolkit toolkit) throws MalformedURLException
MalformedURLExceptionpublic ResourceIcon(String resource) throws MalformedURLException
MalformedURLExceptionpublic ResourceIcon(URL resource) throws MalformedURLException
MalformedURLExceptionpublic ResourceIcon(URL resource, Toolkit toolkit) throws MalformedURLException
MalformedURLExceptionpublic URL getURL()
public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface IconCopyright © 2003–2016 Community Z Tools Project. All rights reserved.