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

CSS attribute -fx-graphic for Labeled doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • fx2.0
    • fx1.3.1
    • javafx

      According to the "JavaFX CSS Reference Guide" at http://download.oracle.com/docs/cd/E17802_01/javafx/javafx/1.3/docs/api/javafx.scene/doc-files/cssref.html, oneshould also be able to use CSS to set the image source of Labeled (Button, Label, etc.), e.g.:
      #mylabel {
        -fx-graphic: url("javafx-logo-154x64.png");
      }
      This doesn't seem to work for Button or Label.
      BTW, the url value seems to be right, as it works with an ImageView, e.g.:
      #myimageview {
        -fx-image: url("javafx-logo-154x64.png");
      }

            dgrieve David Grieve
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: