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

Error when extending Image class: javafx.gui.Task is not public in javafx.gui; cannot be accessed from outside package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx1.0
    • None
    • javafx
    • None

      From forum post: http://forums.java.net/jive/thread.jspa?messageID=278998
      -----------------------------------------------------------------------------------------------------------------------------------------------------------
      I would like to create my own Image class and add to it interesting properties/methods.

      I tried to extends jfx.gui.Image and I've an error about jfx.gui.Task. Promise the class is empty. I've tried to define the class private or protected ... no luck

      Any idea?

      class CImage extends javafx.gui.Image{
      ...


      ***compilation error ***
      Compiling 1 source file to C:\Documents and Settings\user\Bureau\jfx\Tests\build\classes
      C:\Documents and Settings\user\Bureau\jfx\Tests\src\FXScreenshot\CImage.fx:29: [bold]javafx.gui.Task is not public in javafx.gui; cannot be accessed from outside package[/bold]
      class CImage extends javafx.gui.Image{
      error: javafx.gui.Task is not public in javafx.gui; cannot be accessed from outside package
      2 errors

      regards,
      -----------------------------------------------------------------------------------------------------------------------------------------------------------

            kcr Kevin Rushforth
            alexsch Alexandr Scherbatiy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: