void (MouseEvent e) { if (myIsEngaged && !UIUtil.isSelectionButtonDown(e)) { final Point point = e.getPoint(); final int index = list.locationToIndex(point); list.setSelectedIndex(index); } else { myIsEngaged = true; } }