Article View: borland.public.jbuilder.java.swing
Article #9223Drag & Drop
From: Paul Gostelow
Date: Fri, 28 Apr 2000 00:00
Date: Fri, 28 Apr 2000 00:00
11 lines
1016 bytes
1016 bytes
I have an application that has a JSplitPane. In the left pane is a JTree and the right a number of Components. What I need to do is be able to drag nodes from the JTree and drop them on to the Components and vice-versa. The data being moved are not simple text values but objects. Can anyone point me to relevant examples or resources that may get me started? I have checked out the tutorials on the java.sun.com website and found a couple of simple examples that relate to moving text around but nothing to do with objects.
Technical Details
Message-ID:
<3909647f@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f848305d19c5f40f,start X-Google-Attributes: gid111d45,public From: "Paul Gostelow" <Paul.gostelow@cableinet.co.uk> Subject: Drag & Drop Date: 2000/04/28 Message-ID: <3909647f@dnews> X-Deja-AN: 616720913 X-Trace: 28 Apr 2000 03:14:23 -0800, 195.224.72.25 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200