SPARK-1235

CTRL-F gets popupmenu support

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12168 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Wolf Posdorfer
2011-03-23 16:41:15 +00:00
committed by wolf.posdorfer
parent 6c3dcf6552
commit 5763ca9cb2
4 changed files with 54 additions and 7 deletions

View File

@ -303,6 +303,16 @@ public class JContactItemField extends JPanel {
public boolean canClose() {
return !textField.hasFocus();
}
/**
* sets the selected Index using the Point of a given {@link MouseEvent}
* @param mouseevent - {@link MouseEvent} to get The {@link Point} from
*/
public void setSelectetIndex(MouseEvent mouseevent)
{
Point p = mouseevent.getPoint();
list.setSelectedIndex(list.locationToIndex(p));
}
}