B4J Library TreeViewDnD

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.
B4X:
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
    6.6 KB · Views: 379
Last edited:
Top