B4J Library TreeViewDnD

Discussion in 'B4J Libraries & Classes' started by Daestrum, May 25, 2015.

  1. Daestrum

    Daestrum Well-Known Member Licensed User

    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.
    Dim DnD as JTreeDnD
    ' 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.

    Attached Files:

    Last edited: May 26, 2015
    Mashiane and Erel like this.