public void selectRow(int rowIndex) { selectionModel.setValueIsAdjusting(true); changeSelection(rowIndex, getColumnCount() - 1, false, false); if (Common.isMac()) changeSelection(rowIndex, 0, false, true); else changeSelection(rowIndex, 0, true, true); selectionModel.setValueIsAdjusting(false); }
public void selectColumn(int colIndex) { selectionModel.setValueIsAdjusting(true); changeSelection(getRowCount() - 1, colIndex, false, false); if (Common.isMac()) changeSelection(0, colIndex, false, true); else changeSelection(0, colIndex, true, true); selectionModel.setValueIsAdjusting(false); this.requestFocus(); }