/** */
/**
* 设置在JTable中按回车键水平移动
* @param table JTable对象
* */
public static void setFocusMoveHorizontal(JTable table) ... {
table.getInputMap(JTable.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).
put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0 ), " selectNextColumnCell " );
}
* 设置在JTable中按回车键水平移动
* @param table JTable对象
* */
public static void setFocusMoveHorizontal(JTable table) ... {
table.getInputMap(JTable.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).
put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0 ), " selectNextColumnCell " );
}