Losing first character in JTable panel based cell editor
问题 I have a cell editor that contains a little button and then a textfield that can be used to edit the value inline I use setSurrendersFocusOnKeystroke(true) and a focus listener in order to allow a user to start editing immediately from the keyboard, but the trouble is the fisrt key pressed seems to get consumed rather being added to the text field, how can I prevent this ? Full self contained example below import javax.swing.*; import java.awt.*; import java.awt.event.FocusEvent; import java