This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JList Select on MouseEntered Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "JList Select on MouseEntered" Watch "JList Select on MouseEntered" New topic
Author

JList Select on MouseEntered

Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JList Select on MouseEntered
 
Similar Threads
Data Xchange from JDialog to JTable using JButton
Right-clicking a Button or JButton
ListCellRenderer!!!Help!!
Get selected value from a JList
Cell size in JList