Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
On oracle website it is mentioned that for javaFX api you require JDK SE 7 as it comes with jdk 7 or higher.
I have already downloaded and installed JDK SE 7 but i'm having a problem.
when i write the following code
i'm getting compiler error "package javafx does not exist"
Also in my JDK folder i couldn't see the package "javafx" as it is the case with other packages like "java" or "javax"
There's no issue with path(till bin) and classpath(till lib) ,i have set it correctly as i'm able to compile and run other programs.
Help me,how can i sort this out.
yeah i know that there are no classes in javafx package,but even when i'm using javafx.animation.*; or javafx.event.*;
still i'm getthing the same error "javafx.animation package not found". The problem persists.
And yes i'm using the latest version of jdk 7 , i downloaded it from webpage
Also just as i can see other packages like "java" and "javax" in my JDK folder , i couldn't find the javafx package.
Help me to resolve this.
ohk thanks for that.i'll try it.i'm not using any IDE just compiling via cmd.
And one more thing do i need to include that jar file in both "path" and "classpath" or "classpath" only.
and this jar file should be in classpath only when i'm using javafx package ? or even if i'm not using javafx then also is it ok to have classpath till that jar file .
one more thing : which jar file to include,i mean jfxrt is presnt in both jdk and jre folder because after installation 2 folders get created one for jdk that contains jre folder and one separate jre folder.
1) C:\Program Files\Java\jre7\lib\jfxrt.jar
ohk thanks..and can you tell me how these launch(args) and start() are working.i mean how is the control flowing in the code?
whether launch() calls start() ?and both start() and launch() are part of Application class ?
Thanks..and do we have anything like a JOptionPane ,dialogbox kind of a thing in javafx like we have in javax.swing.
Suppose i want to pop up a message on a button click ,in swings i can do so with JOptionPane.showMessageDialog();
So, can we do such thing in a javaFX program ? If yes,then how and what classes and methods are required.