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

textAlignment and textOrigin attributes are rejected as java.lang.IllegalArgumentException: unsupported type: JavaType

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx1.2
    • Fix Version/s: fx1.3
    • Component/s: javafx
    • Environment:

      Windows Vista SP 2

      Description

      Note: I have selected the affected version to be J12009 ( I mean version 1.2 - I can't find this in the list).

      The following CSS (and any combination of attribute values therein ) works fine in version 1.1

      "javafx.scene.text.Text" {
          font:bold italic 11pt "Verdana";
          textAlignment : RIGHT; /* CENTER JUSTIFY LEFT RIGHT */
          textOrigin : BASELINE; /* BASELINE BOTTOM TOP */
      }

      But throws ( similar exception for both textAlignment and textOrigin and for any of the legal values) in version 1.2

      java.lang.IllegalArgumentException: unsupported type: JavaType[javafx.scene.text.TextAlignment] RIGHT
              at com.sun.stylesheet.types.TypeManager.convertFromString(TypeManager.java:411)
              at com.sun.stylesheet.styleable.DefaultStyleable.convertPropertyFromString(DefaultStyleable.java:158)
              at com.sun.stylesheet.Declaration.convertValue(Declaration.java:76)
              at com.sun.stylesheet.Declaration.applyTo(Declaration.java:91)
              at com.sun.stylesheet.Rule.applyTo(Rule.java:221)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:269)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:274)
              at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:251)
              at javafx.scene.Scene.applyStylesheets(Scene.fx:332)
              at javafx.scene.Scene.userInit$(Scene.fx:306)
              at com.sun.javafx.runtime.FXBase.complete$(FXBase.java:56)
              at javafxapp.Main.javafx$run$(Main.fx:25)
              at javafxapp.Main.javafx$run$(Main.fx:25)

        Attachments

          Activity

            People

            Assignee:
            dgrieve David Grieve
            Reporter:
            artsofticjfx ArtSoftica (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: