Gets an ImageIcon. @return the icon
()
| 222 | * @return the icon |
| 223 | */ |
| 224 | public ImageIcon getImageIcon() { |
| 225 | if ((icon == null) && isAnImage) { |
| 226 | icon = new ImageIcon(getURL()); |
| 227 | if (icon.getIconWidth() < 1) { |
| 228 | icon = null; |
| 229 | isAnImage = false; |
| 230 | return null; |
| 231 | } |
| 232 | } |
| 233 | return icon; |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * Gets a ResizableIcon. |
no test coverage detected