<Swing Dev> [9] Review Request: JDK-8032878: Editable combos in table do not behave as expected
    Alexey Ivanov 
    alexey.ivanov at oracle.com
       
    Fri Mar 14 11:23:41 UTC 2014
    
    
  
Hello,
Could you please review the fix for jdk9:
   bug: https://bugs.openjdk.java.net/browse/JDK-8032878
   webrev: http://cr.openjdk.java.net/~dmarkov/8032878/jdk9/webrev.00/
Problem description:
If editable JComboBox is used as cell editor in JTable, its value does 
not change when user types keys.
If JTable.setSurrendersFocusOnKeystroke(true) is in effect, then 
JComboBox (usually) loses the first key press before it gets the input 
focus.
Fix:
If JComboBox is table cell editor and is editable, it will forward 
TextActions to its editor component. The action binding is obtained from 
InputMap of the editor component with WHEN_FOCUSED condition, as if the 
editor had focus.
Thanks,
Alexey.
    
    
More information about the swing-dev
mailing list