aboutsummaryrefslogtreecommitdiff
path: root/src/share/classes/javax
diff options
context:
space:
mode:
authoralexsch <none@none>2014-12-03 17:21:04 +0300
committeralexsch <none@none>2014-12-03 17:21:04 +0300
commit3185ff52444eb332c604e13a869a007912329744 (patch)
treeae381d1ae6d53e24d70a3c4a3c562b90173c3a7a /src/share/classes/javax
parent8e94825804a69af5e37d9052b00fe03c305728ca (diff)
8066142: Edit the value in the text field and then press the tab key, the number don't increase
Reviewed-by: serb, azvegint
Diffstat (limited to 'src/share/classes/javax')
-rw-r--r--src/share/classes/javax/swing/JComboBox.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/classes/javax/swing/JComboBox.java b/src/share/classes/javax/swing/JComboBox.java
index 6e71c43cb..0862f437a 100644
--- a/src/share/classes/javax/swing/JComboBox.java
+++ b/src/share/classes/javax/swing/JComboBox.java
@@ -1308,8 +1308,8 @@ implements ItemSelectable,ListDataListener,ActionListener, Accessible {
*/
public void actionPerformed(ActionEvent e) {
ComboBoxEditor editor = getEditor();
- if ((editor != null) && (e != null)
- && (editor.getEditorComponent() == e.getSource())) {
+ if ((editor != null) && (e != null) && (editor == e.getSource()
+ || editor.getEditorComponent() == e.getSource())) {
setPopupVisible(false);
getModel().setSelectedItem(editor.getItem());
String oldCommand = getActionCommand();