Fixed loss of focus with ctrl + f

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5548 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-09-28 23:14:20 +00:00
committed by derek
parent bf356ff247
commit 274dbf0ef0
2 changed files with 66 additions and 25 deletions

View File

@ -91,6 +91,10 @@ public class JContactItemField extends JPanel {
}
public void dispose(){
popup.dispose();
}
public void setItems(List list) {
this.items = items;
}
@ -183,6 +187,18 @@ public class JContactItemField extends JPanel {
textField.setText(text);
}
public void focus(){
textField.requestFocus();
}
public JTextField getTextField(){
return textField;
}
public JWindow getPopup(){
return popup;
}
class PopupRenderer extends JLabel implements ListCellRenderer {
/**