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

Text.setWrappingWidth uses integer parameter

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx

      Although all positional properties in JavaFX accepts double parameters, the Text.setWrappingWidth method takes an integer. So the developer is using methods like

      Text.setX(double), and
      ImageView.setFitWidth(double)

      and many more. But when it comes to setWrappingWidth(), you are required to cast your double to an (int). That seems odd. Since Java FX uses doubles in general, I think Text.setWrappingWidth should too.

            prr Philip Race
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: