May 25, 2015 This library was sparked from a question in the forums, on how to drag items in a TreeView. After a bit of reading , a few tweaks ( the original code snippet ' lost' items if you moved them to the end of the TreeView) here it is. Produced under java 8 so if you have all heeded Oracles update messages about old versions of java, you will be fine. forgot to add how to use it lol. Code: Globals.. Dim DnD as JTreeDnD .... DnD.allowDnD(tv) ' where tv is the treeview to allow Drag n Drop on Although Initialize and isInitialized show in the drop down, just ignore them, the library does not require any initialization. Attachments JTreeDnD.zip JTreeDnD.zip 6.6 KB · Views: 664 Last edited: May 26, 2015 Click to expand...
This library was sparked from a question in the forums, on how to drag items in a TreeView. After a bit of reading , a few tweaks ( the original code snippet ' lost' items if you moved them to the end of the TreeView) here it is. Produced under java 8 so if you have all heeded Oracles update messages about old versions of java, you will be fine. forgot to add how to use it lol. Code: Globals.. Dim DnD as JTreeDnD .... DnD.allowDnD(tv) ' where tv is the treeview to allow Drag n Drop on Although Initialize and isInitialized show in the drop down, just ignore them, the library does not require any initialization.