Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2005

Tip: Looking for answers? Try searching our database.

Intercepting Jlist selections

Thread view: 
Richie - 10 Mar 2005 16:05 GMT
I'm trying to intercept mouse clicks on jlist items so that if the mouse is
clicked is some empty part of the list, the selection is cleared.

I've tried using a MouseAdapter to catch the mouse clicks but this is
called after the list gets the mouse event.

Any ideas on how I might do this?
Andrey Kuznetsov - 10 Mar 2005 18:51 GMT
> I'm trying to intercept mouse clicks on jlist items so that if the mouse
> is
[quoted text clipped - 4 lines]
>
> Any ideas on how I might do this?

yes, since this falls under UI responsibility you have to write your own
ListUI (or better extend existing one)

Signature

Andrey Kuznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities

Richard Adler - 10 Mar 2005 21:03 GMT
Okay, I'll find some documentation on it.

Thanks


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.