Skip to main content

CustomNode vs ComositeNode

2 replies [Last post]
stevelaw
Offline
Joined: 2008-08-01
Points: 0

Hi All,

Would someone be able to clarify the cases for when I would use CustomNode vs CompositeNode?

Also, I notice that some JFX apps use a canvas as below:

Frame {
content: Canvas {
content: // Additional code here
}
}

and others use a stage:

Frame {
stage : Stage {
content: // Additional code here
}
}

Why would I want to use one over the other?

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexsch
Offline
Joined: 2007-07-12
Points: 0

The old javafx.ui library had CompositeNode class and Frame class with content attribute.
This library has been removed from the JavaFX Script language.
The new javafx.application and javafx.scene libraries use CustomNode class and Frame with the stage attribute.

stevelaw
Offline
Joined: 2008-08-01
Points: 0

Thank you.