-
Bug
-
Resolution: Incomplete
-
P4
-
None
-
6
-
generic
-
generic
The selection works differently when JComboBox got set as DefaultCellEditor on a JTable.
The JComboBox allows you to select the different items by pressing the first letter of an item. When you press the same letter, the items which starts with that letter get selected repeatedly. This is working perfectly when the JComboBox is not in JTable.
When you press the same letter again and again, the items which are starting with that letter will get selected repeatedly. This is not happening when you set the JComboBox as the DefaultCellEditor on a JTable.
To reproduce this problem, run this attached sample
Click on the Combo box next to the label "Months", When you press the key "j" you can see the selection changes from January, then June and goes on. This is the normal behavior.
1. Now start editing the column named "Month" on the first row of the JTable.
2. You can see the JComboBox with all the months as items
3. Press the letter "j", now the month "January" only will get selected for the first press and for next press same get selected, you can see that on the console output. For the subsequent key press, there is no change in the selection.
The JComboBox allows you to select the different items by pressing the first letter of an item. When you press the same letter, the items which starts with that letter get selected repeatedly. This is working perfectly when the JComboBox is not in JTable.
When you press the same letter again and again, the items which are starting with that letter will get selected repeatedly. This is not happening when you set the JComboBox as the DefaultCellEditor on a JTable.
To reproduce this problem, run this attached sample
Click on the Combo box next to the label "Months", When you press the key "j" you can see the selection changes from January, then June and goes on. This is the normal behavior.
1. Now start editing the column named "Month" on the first row of the JTable.
2. You can see the JComboBox with all the months as items
3. Press the letter "j", now the month "January" only will get selected for the first press and for next press same get selected, you can see that on the console output. For the subsequent key press, there is no change in the selection.