日期:2014-05-20 浏览次数:20923 次
int row = model.getRowCount() - 1;
int col = 0;
if (table.editCellAt(row, col)) {
Component editor = table.getEditorComponent();
editor.requestFocusInWindow();
Component c = editor.getComponentAt(0, 0);
if (c != null && c instanceof JTextComponent) {
((JTextComponent) c).selectAll();
}
}