Posted Wednesday, December 31, 1969 @ 23:59:59
I am not focusing any component after the new button click. If you want to listen for "ESC", just add a listener as below. KeyStroke esc = KeyStroke.getKeyStroke(KeyEvent.VK_ESC,0);
yourQuickTable.getTable().registerKeyboardAction(this,"esc",esc,JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
public void actionPerformed(ActionEvent e)
{
if (e.getActionCommand().compareTo("esc")==0)
{
//your action
}
}