JavaFX 1 class CustomNode not found in JavaFX 2

437 Views Asked by At

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

1

There are 1 best solutions below

1
On

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.