Example usage for java.awt.event FocusEvent toString

List of usage examples for java.awt.event FocusEvent toString

Introduction

In this page you can find the example usage for java.awt.event FocusEvent toString.

Prototype

public String toString() 

Source Link

Document

Returns a String representation of this object.

Usage

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*/
}