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

ImageView doesn't load Image from style sheet

    XMLWordPrintable

Details

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

    Description

      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.


      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: