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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: fx1.3.1
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:

      Description

      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");
      }

        Attachments

          Activity

            People

            Assignee:
            dgrieve David Grieve
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: