Return the focus to JComboBox inside a JTable after showOptionDialog
问题 I'm having problems with a JComboBox used as a CellEditor for a JTable . I want after editing the JComboBox and pressing tab to show an OptionsDialog and, if a specific option is selected, the focus to remain on the JComboBox . The problem is that the focus moves to the next cell because of tab and I cannot return it to the JComboBox Below is one of my test cases: import java.awt.KeyboardFocusManager; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing