🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8034

Re: Programming challenge!

#8034
From: Stephen Legge
Date: Mon, 13 Nov 2000 00:00
35 lines
1793 bytes
Hi John,

I already did this, and dragging and dropping single items works great.

The problem comes in when I want to multi-select a bunch of items in the
JList and drag them all.

If you could provide a sample showing it working with multiple items (or a
detailed explaination) I would greatly appreciate it.  I am becoming quickly
convinced it can't be done, though. :-(

Stephen Legge


"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:MPG.147569f8a6313a33989cef@forums.borland.com...
> On Tue, 7 Nov 2000 16:32:42 -0500, Stephen Legge wrote:
>
> > I challenge anyone to implement a program that allows you
> > to drag and drop multiple items from one JList to another
> > (without getting an annoying circle-with-a-line-through
> > it cursor when dropping).
>
> You need to recognize that the drag has entered your DropTarget using
> a DropTargetListener, and then in the dragEnter() event, call the
> acceptDrag() method on the DropTargetDragEvent.
>
> --
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
>     http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <8up6pl$i3a11@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8u9sju$l9n4@bornews.inprise.com> <MPG.147569f8a6313a33989cef@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,133fda11b6d1bea0
X-Google-Attributes: gid111d45,public
From: "Stephen Legge" <stephen@cryptocard.com>
Subject: Re: Programming challenge!
Date: 2000/11/13
Message-ID: <8up6pl$i3a11@bornews.inprise.com>
X-Deja-AN: 693128328
References: <8u9sju$l9n4@bornews.inprise.com> <MPG.147569f8a6313a33989cef@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing