[Logo]
Forums Register Login
JList deselection problem
Hi,
I m working on JList what I want that I m describing you ..
I am able to select a perticular element or group of elments in the JList
but I am not able to understand that how I generate a deselection event.
How I have that information that a selected element has now been deselected.
Thanks In advance..
Regards -
Vikas
not sure I'm reading this correct
to deselect:- list.clearSelection();
to find out of a de-selection - in valueChanged() check for list.getSelectedIndex() == -1
something like this
Always! Wait. Never. Shut up. Look at this tiny ad.
ScroogeXHTML 8.0 - RTF to HTML5 and XHTML converter
https://coderanch.com/t/704747/ScroogeXHTML-RTF-HTML-XHTML-converter


This thread has been viewed 1006 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 16, 2019 05:38:22.