mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
committed by
wolf.posdorfer
parent
6c3dcf6552
commit
5763ca9cb2
@ -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));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user