wood burning stoves
The moose likes Swing / AWT / SWT and the fly likes JList Select on MouseEntered Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JList Select on MouseEntered" Watch "JList Select on MouseEntered" New topic
Author

JList Select on MouseEntered

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302
    
    6

I have a MouseListener Registered on my JList for detecting Double Clicks and Right Clicks.
I was wondering if there was a way so that in the mouseEntered() method, I can detect which cell in the JList I am in and have that item selected automatically. Just like if I single click on the cell, but just with a mouseEntered().
Thanks


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JList Select on MouseEntered
 
It's not a secret anymore!