I am relatively new to JavaFX. I have chosen the game "BrickBreaker", which is included as an example in NetBeans, to help me understand JavaFX.
The following code is from class Splash
:
KeyFrame kf = new KeyFrame(Config.ANIMATION_TIME, new EventHandler<ActionEvent>() {
public void handle(ActionEvent event) {
//some code …
});
My question is: is it possible to instantiate a KeyFrame
without passing any instance of KeyValue
to its constructor ?
The documentation shows five versions of the constructor HERE, and they all have a KeyValue
argument, while the above code does not.