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