Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Java drag & drop
Date: Sat, 4 Apr 2009 20:08:01 +0000 (UTC)
Organization: TACT Computer Systems Ltd
Lines: 13
Message-ID: <gr8en1$g30$1@fred.mathworks.com>
References: <fahm1i$5e7$1@fred.mathworks.com> <fc6889$n5i$1@fred.mathworks.com> <fc91jd$2uu$1@fred.mathworks.com> <fc93qh$d7j$1@fred.mathworks.com> <gfvdhq$13l$1@fred.mathworks.com> <gg1bn6$up$1@fred.mathworks.com> <gg46ub$o63$1@fred.mathworks.com> <gr55hd$26l$1@fred.mathworks.com> <gr8c0p$t5r$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1238875681 16480 172.30.248.38 (4 Apr 2009 20:08:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 4 Apr 2009 20:08:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 642467
Xref: news.mathworks.com comp.soft-sys.matlab:530334


> I've tried to implement a Matlab-only approach that uses Java, but which does not require compiling a new Java class. I was successful to a point - perhaps others on this thread will have an idea how to proceed:

[snip]

> This works with 2 problems - Any ideas anyone?
> 1) after several drag-&-drops the figure stops accepting drags. It's not a source but a target problem, since DND from the list onto the editor still works.
> 2) the above does not work with a Matlab uicontrol('style','listbox') - setDragEnabled(1) on the underlying com.mathworks.hg.peer.ListboxPeer$UicontrolList is not enough to make the listbox draggable.

To clarify, these two problem exist even when using Dirk Engel's Java class. I could not detect any improvement over the Matlab-only approach. Ideas anyone?

Yair Altman
http://UndocumentedMatlab.com