List of usage examples for java.awt.event FocusEvent toString
public String toString()
From source file:edu.harvard.mcz.imagecapture.ui.FilteringAgentJComboBox.java
public void focusLost(FocusEvent e) { // when focus is lost on the text field (editor box part of the combo box), // set the value of the text field to the selected item on the list, if any. log.debug(e.toString()); if (super.getModel().getSelectedItem() != null) { log.debug(super.getModel().getSelectedItem().toString()); //JTextField textfield = (JTextField) this.getEditor().getEditorComponent(); //textfield.setText(super.getModel().getSelectedItem().toString()); this.getEditor().setItem(super.getModel().getSelectedItem().toString()); }/*from www. ja va 2s. com*/ }