int srow = mTable.getSelectedRow();
int scol = mTable.getSelectedColumn();
int column = scol == -1 ? mColumn : scol;
column = column == -1 ? mCalc.columns() : column;
column++;
Command command = new AddColumnCommand(mCalc, column);
getUndoInterface().execute(command);
if (srow != -1 && scol != -1) {
mTable.changeSelection(srow, scol + 1, false, false);
}
}