Skip to main content

class extends: error message when extending javafx.gui.Image

1 reply [Last post]
rlasjunies
Offline
Joined: 2008-06-08

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?

<br />
class CImage extends javafx.gui.Image{<br />
...<br />

***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,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexsch
Offline
Joined: 2007-07-12