Article View: borland.public.jbuilder.java.swing
Article #9493Drag and Drop problems
From: Rob Wilson
Date: Tue, 28 Mar 2000 00:00
Date: Tue, 28 Mar 2000 00:00
23 lines
1682 bytes
1682 bytes
I have an arrayList of 'NetworkItems' that include attributes like IP address, priorities, count statistics etc. I am using the JTableModel to populate a table with a simple visual representation as a single IconImage per 'networkItem'. The question is, drag and drop... how do I do it? I have obtained some drag and drop tutorials from the Sun tutorial page, and from javaworld.com, but am still experiencing 'novice' difficulties. Firstly, all demo's seem to revert to 'text' transfers, I guess I want to transfer the actual 'networkItem' that the user drags from one cell into another cell. Is this possible? It's also possible that the user can drag one icon from the table into a dialog window, or almost any other component that I decide should receive the 'NetworkItem'. If anyone has other resources, that would be great, I currently have javaworlds tutorial, part I and part II. Sun tutorial part I (couldn't find part II). Your help is appreciated, Rob Wilson.
Technical Details
Message-ID:
<ari1es4ntkirl9gqeueu22ah5bekv9stat@4ax.com>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,5fc6d86dacf3a682,start X-Google-Attributes: gid111d45,public From: Rob Wilson <rwilson@compd.com> Subject: Drag and Drop problems Date: 2000/03/28 Message-ID: <ari1es4ntkirl9gqeueu22ah5bekv9stat@4ax.com> X-Deja-AN: 603435304 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: [193.195.213.129]:193.195.213.129 X-Original-NNTP-Posting-Host: cd787323.compd.com Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 954256421 nnrp-03:20962 NO-IDENT [193.195.213.129]:193.195.213.129 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing