Skip to content

Commit

Permalink
Hand cursor for the recents list making sure it's clear the item is t…
Browse files Browse the repository at this point in the history
…o be executed on single click
  • Loading branch information
shafirov committed Nov 28, 2012
1 parent 4e16f74 commit dcb5000
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ public void mouseMoved(MouseEvent e) {
Point point = e.getPoint();
int index = myList.locationToIndex(point);
myList.setSelectedIndex(index);

if (myList.getCellBounds(index, index).contains(point)) {
myList.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
}
else {
myList.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}
}
else {
myIsEngaged = true;
Expand Down

0 comments on commit dcb5000

Please sign in to comment.