I want to repeat one node in scene . Is it possible ? for example I have an anchorpane and 3 panes on it . I have one button on pane(1) and I want to add it to pane(2) after some process in program ... . I want to repeat that node exactly like the old one( with same properties)
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Only one Node appears on the scene graph, if you want to have same scene manipulating several times on the scene, then you gona have to try the hard way by creating other nodes with similar content like the one you want to repeat on the scene graph. Adding them to the scene will look like the same Node on the scene.
I don't other way of doing it,more answers and corrections are welcome. Sorry to respond to this old qtn
No, you cannot repeat the same node in a scene.
From the Node Javadocs :
Answering your question :
To achieve this, create a
styleclass
andadd it to similar nodes
that you want to create.