posted 20 years ago
I hope this is descriptive enough:
I have a JList in a JScrollPane and the list of items in the JList is not enough to fill the whole viewable area. (I have like 3 items, but there's enough space for, say, 10 items.)
Pretend the first item in the list is already selected. When I mouse-click the empty space below the last item in the list, the last item in the list becomes selected. I don't want this to happen.
I want mouse clicks on the empty space below the last item to be ignored. How can I accomplish this?
Thanks in advance
--Leo