Article View: borland.public.jbuilder.java.swing
Article #11478Re: JList disable not working
From: Gavster McRavster
Date: Tue, 25 May 1999 00:00
Date: Tue, 25 May 1999 00:00
31 lines
1327 bytes
1327 bytes
i'm very new to swing rohit,
but give this a punt
SwingUtilities.invokeLater(new Runnable() {
public void run() {
jlist.setEnabled(false);
}
});
ie the operation may need to be queued properly in the swing worker thread
if the jlist is doing something else when you call the disable
gav
Rohit Bhardwaj <rbhardwaj@kronos.com> wrote in message
news:7hv88h$fc13@forums.borland.com...
> We require to disable Jlist which is in a ScrollPanel to be disabled. I
used
>
> jlist.setEnabled(false);
>
> But its not working !
>
> Pl reply asap.
>
> Thanks,
> Rohit Bhardwaj
>
>
Technical Details
Message-ID:
<927628268.26608.0.nnrp-10.c1c3e175@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7hv88h$fc13@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,425963a5e08680e8 X-Google-Attributes: gid111d45,public From: "Gavster McRavster" <bill@ms.com> Subject: Re: JList disable not working Date: 1999/05/25 Message-ID: <927628268.26608.0.nnrp-10.c1c3e175@news.demon.co.uk> X-Deja-AN: 481846845 X-NNTP-Posting-Host: gavinc.eng.demon.net:193.195.225.117 References: <7hv88h$fc13@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 927628268 nnrp-10:26608 NO-IDENT gavinc.eng.demon.net:193.195.225.117 X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing