Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Java drag & drop
Date: Wed, 22 Aug 2007 21:01:45 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 15
Message-ID: <fai87p$7u6$1@fred.mathworks.com>
References: <fahm1i$5e7$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1187816505 8134 172.30.248.37 (22 Aug 2007 21:01:45 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Aug 2007 21:01:45 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:425049



I must admit I'm just as baffled. It appears that
e.setDropTarget() overrides the default call to the drop
target's TransferHandler() method (which is the default text
handler
javax.swing.plaf.basic.BasicTextUI$TextTransferHandler). You
might try to implement your own TransferHandler as explained
here:
http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html
. I believe R2007b (Matlab 7.5) uses Java 1.6 and if so,
then you may be interested in the following article:
http://weblogs.java.net/blog/shan_man/archive/2006/02/choosing_the_dr.html

Yair Altman
http://ymasoftware.com