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

ImageView doesn't load Image from style sheet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8
    • fx2.0
    • javafx
    • Windows 7, beta release

      In the early access B25 release the following code

              ImageView img = new ImageView();
              img.getStyleClass().add("expand-image");

      with a CSS style sheet of

              .expand-image
              {
                  -fx-image: url("images/maximize.jpeg");
              }

      would load the given image from the style sheet as the Image field of the ImageView.

      In the beta this no longer works.


            dgrieve David Grieve
            gmatthewsjfx Graham Matthews (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: