I recently played around with XTreeView the tree component of JFXtras. It’s a nice component with a clean boundary between control and view so that was quiet easy to add a draggable behaviour to the nodes. By the way I’m really grateful to Rakesh Menon for his clear post about Drag and Drop in JavaFX.
The main idea is to wrap a renderer into a draggable wrapper that will encapsulate the created nodes into a
SwingDragSource.
Checkout the demo:
You will find the source and the eclipse project in the attached zip.
[[posterous-content:AEJvlcJRhkIFG0D5yfRT]]
Aucun commentaire:
Enregistrer un commentaire