Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Java App Question

  • 01-05-2001 08:22PM
    #1
    Registered Users, Registered Users 2 Posts: 1,022 ✭✭✭


    Right I'm doing up a java app with Swing. I've two JScrollPane left and right of app. Each pane have a JTree in it. I want to be able to drag nodes from Left Tree to right Tree. So left one has to implement Draggable, and Right one Droppable. Problem is this. Do the JScrollPane, JTree, or DefaultMutableNodes implement the Draggable and droppable. I've been looking at examples from java.sun.com but I can't figure out the best way to implement this. Any ideas?

    Cheers.
    Dave.


Advertisement