Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JList Deselection

 
Shirish Limaye
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to find out how to handle the event of any item being deselected from a JList component.

I can deselect a selected item from JList by holding down the Ctrl key and clicking on the selected item. But I couldn't find the event that gets fired.

Can anybody help???

Shirish
[ October 08, 2004: Message edited by: Shirish Limaye ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found some of this code on google then did some slight mods to make it work.



For your JList you would do something like:



hth
 
Shirish Limaye
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Gregg,

THNAKS

I got the solution. I guess I was searching in wrong direction.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!