Reputation: 59
I try to to remake an app from JavaFX 1 to JavaFX 2. The JavaFX 1 app uses:
import javafx.scene.CustomNode;
Using this import in JavaFX 2 I receive an error:
Cannot find symbol class CustomNode in package javafx.scene
There is an equivalent in JavaFX 2?
Thanks.
eb
Upvotes: 0
Views: 424
Reputation: 159486
Group
is the JavaFX 2 equivalent of a JavaFX 1 CustomNode
.
A JavaFX 1.3 CustomNode
was a node with children and no explicit layout (all children needed to be laid out manually by the implementor of the CustomNode
).
Don't expect JavaFX 1 and JavaFX 2 to be very similar - they are pretty different things.
Upvotes: 1