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

Color class documentation still references the obsolete Color.fromAWTColor(awtColor) function

    Details

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

      All

      Description


      The API fromAWTColor() does not work, as documented in the API doc

      http://java.sun.com/javafx/1.2/docs/api/javafx.scene.paint/javafx.scene.paint.Color.html


      ----------------------------- Code Starts ---------------------------------

      import javafx.scene.paint.Color;

      var awtColor: java.awt.Color = java.awt.Color.BLUE;
      var fxColor: javafx.scene.paint.Color;
      fxColor = Color.fromAWTColor(awtColor);

      ------------------------------ Code Ends ---------------------------------


      Unable to compile the code snippet !!

        Attachments

          Activity

            People

            • Assignee:
              kcr Kevin Rushforth
              Reporter:
              snathsunw Subrata Nath (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:
                Imported: