[OpenMap Users] DnD "Hello World"

From: Thomas <javarun_at_gmail.com>
Date: Tue, 5 Jul 2005 12:55:43 -0400

Hello,

I'd really appreciate some guidance on getting Drag and Drop working.

I'd like to detect dragging something from one JPanel to the map, and
dropping the thing
over the map.

Upon OpenMap startup I have:

DropListenerSupport dsup = new DropListenerSupport( mapPanel.getMapBean() );
MyDnDCatcher mcat = new MyDnDCatcher();
            
mapPanel.getMapHandler().add( dsup );
mapPanel.getMapHandler().add( mcat );

where MyDnDCatcher extends DefaultDnDCatcher.

At a minumum, what parts need to be in place for my Layer to print "Hello World"
when a drop happens on it.

Sorry for the broad question. Even a broad answer would be helpful.

Thanks.
-Tom

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Jul 05 2005 - 14:41:02 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT