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

[JavaDoc] Mispelling in MediaView Constructor documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8u20, 9
    • javafx
    • Windows - JavaFX API Doc

      Please refer to the following snippet of code in the API doc for MediaView constructor
      "public MediaView(MediaPlayer mediaPlayer)"
      ----------------------------------------------------------------------
      MediaPlayer player; // initialization omitted
       MediaView view = new MediaView();
       view.setPlayer(player);
      -----------------------------------------------------------------

      The last statement should use setMediaPlayer() method instead of setPlayer() method.

            ddehaven David Dehaven (Inactive)
            ksharanjfx Kishori Sharan (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: