// Notify assistive technologies that the combo box lost focus
protected FocusListener createFocusListener() {
        return new BasicComboBoxUI.FocusHandler() {
            public void focusLost(final FocusEvent e) {
                hasFocus = false;
                if (!e.isTemporary()) {
                    setPopupVisible(comboBox, false);
                }
                comboBox.repaint();
                // Notify assistive technologies that the combo box lost focus
                final AccessibleContext ac = ((Accessible)comboBox).getAccessibleContext();
                if (ac != null) {
                    ac.firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY, AccessibleState.FOCUSED, null);
                }
            }
        };
    }
}
comboBox.repaint();
// Notify assistive technologies that the combo box lost focus
final AccessibleContext ac = ((Accessible)comboBox).getAccessibleContext();
if (ac != null) {
protected FocusListener createFocusListener() {
return new BasicComboBoxUI.FocusHandler() {
public void focusLost(final FocusEvent e) {
hasFocus = false;
if (!e.isTemporary()) {
setPopupVisible(comboBox, false);
}
comboBox.repaint();
// Notify assistive technologies that the combo box lost focus
final AccessibleContext ac = ((Accessible)comboBox).getAccessibleContext();
if (ac != null) {
ac.firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY, AccessibleState.FOCUSED, null);
}
}
};
}
protected FocusListener createFocusListener() {
return new BasicComboBoxUI.FocusHandler() {
public void focusLost(final FocusEvent e) {
hasFocus = false;
if (!e.isTemporary()) {
setPopupVisible(comboBox, false);
}
comboBox.repaint();
// Notify assistive technologies that the combo box lost focus
final AccessibleContext ac = ((Accessible)comboBox).getAccessibleContext();
if (ac != null) {
ac.firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY, AccessibleState.FOCUSED, null);
}
}
};
}