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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • fx1.3
    • fx1.2
    • javafx
    • All


      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 !!

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

              Created:
              Updated:
              Resolved:
              Imported: