Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8100633

Image class should recognize a URL beginning with a leading slash as relative to the classpath

XMLWordPrintable

      When an image is created using a URL that begins with a leading slash, I'd expect the URL to be treated as relative to the classpath. For example, I'd expect the following code to work, assuming that I have a file named "bar.png" in the foo directory on my classpath:

      Image image = new Image("/foo/bar.png");

            msladecek Martin Sládeček
            gkbrown Greg Brown (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: