
Pause Button will pause animation.
Download Source Code
(II) Clock in JavaFx
To create Clock in JavaFX we have created a class Clock in Main.fx file and it creates a custom
node by extending “CustomNode” class in “javafx.scene” package.
package javafxclock;
/**
* @author Amit
*/
import javafx.scene.Node;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.geometry.Circle;
|