Previously, correct item was not inserted if the table had been sorted by clicking on the column headers.
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@974
180e2498-e6e9-4542-8430-
84ac67f01cd8
private void selectOperator(){
int row = table.getSelectedRow();
- String str = tableModel.getOperatorAt(row);
+ String str = table.getValueAt(row, 0).toString();
parentBuilder.pasteIntoExpression(str);
OperatorSelector.this.dispose();
}
private void selectVariable(){
int row = table.getSelectedRow();
- String str = tableModel.getSymbolAt(row);
+ String str = table.getValueAt(row, 1).toString();
parentBuilder.pasteIntoExpression(str);
VariableSelector.this.dispose();
}