Class UrlImageIcon

All Implemented Interfaces:
Serializable, Accessible, Icon, FileBasedIcon

public class UrlImageIcon extends LazyImageIcon
LazyImageIcon that is created from a URL to an icon file.
See Also:
  • Constructor Details

    • UrlImageIcon

      public UrlImageIcon(String path, URL url)
      Constructor
      Parameters:
      path - the path String used to create the URL
      url - the URL to an icon resource file
  • Method Details

    • getUrl

      public URL getUrl()
      Returns the URL that was used to create this icon
      Returns:
      the URL that was used to create this icon
    • getOriginalPath

      public String getOriginalPath()
      Returns the original path that was used to generate the URL (e.g. images/foo.png)
      Returns:
      the original path that was used to generate the URL (e.g. images/foo.png)
    • createImageIcon

      protected ImageIcon createImageIcon()
      Specified by:
      createImageIcon in class LazyImageIcon
    • createImage

      protected Image createImage()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object