Path: news.mathworks.com!not-for-mail
From: "Malcolm Lidierth" <ku.ca.lck@htreidil.mloclam>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Listbox mousedown problems
Date: Tue, 13 May 2008 16:34:02 +0000 (UTC)
Organization: King's College London
Lines: 14
Message-ID: <g0cftq$ju9$1@fred.mathworks.com>
References: <g09d97$ir0$1@fred.mathworks.com> <g09toa$j63$1@canopus.cc.umanitoba.ca> <g0altk$221$1@fred.mathworks.com> <g0b48v$pu8$1@fred.mathworks.com> <g0b5ef$2k6$1@fred.mathworks.com> <g0bu7i$jkr$1@fred.mathworks.com> <g0c031$c1v$1@fred.mathworks.com> <g0c8fn$hmo$1@fred.mathworks.com> <g0cbqj$fj0$1@fred.mathworks.com> <g0cdf4$jnj$1@fred.mathworks.com>
Reply-To: "Malcolm Lidierth" <ku.ca.lck@htreidil.mloclam>
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 1210696442 20425 172.30.248.37 (13 May 2008 16:34:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 May 2008 16:34:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477
Xref: news.mathworks.com comp.soft-sys.matlab:468194


> Isn't there a better way for me to get a handle to this 
> java object?

You could create the java object directly using 
javacomponent. Yair's uicomponent and my own jcontrol help 
with that, both on ML Central. 


>Of course, I will have to accumulate all 
keypresses myself....

Noth that, if you use the CallbackFcn(hObject, EventData) 
form, the individual key information should be available in 
EventData