« JavaFX Tips and Tricks: Using Singleton Pattern to Share a Model | Main | Six Degrees of Bob Seger: A JavaFX Program that We'll Build Together »

April 07, 2009

Comments

Jim Weaver

"hi i created image transition demo in JavaFX u can see it here it take some time to load because i upload html file on one server and JNLP and jar file on other server on my server it does not allow JNLP files."

Farrukh Obaid,

Sweet! Have you thought about putting it on jfxstudio.org and showing the source code?

Thanks,
Jim Weaver

Pedro Duque Vieira

Alejandro,

Have you tested calling methodA from IA of an object CFX?

You could be creating new methods and not ones which override the interface methods.

Farrukh Obaid

hi i created image transition demo in JavaFX u can see it here it take some time to load because i upload html file on one server and JNLP and jar file on other server on my server it doesnot allow JNLP files..

http://farrukh.hostrator.com/

Alejandro

Finally I found the solution, but I can't explain why, I think it's a bug too. Just type the keyword "override" for the first level of classes / interfaces in your hierarchy. For example:

public interface IA{
public void methodA();
}
public interface IB extends IA{
public void methodB();
}
public interface IC extends IB{
public void methodC();
}
public class CFX extends IC{
public function methodA(){}
public function methodB(){}
public override function methodC(){}//<--override only for IC
}

Regards

The comments to this entry are closed.