Commit 6b52caf8 authored by Christophe Demarey's avatar Christophe Demarey
Browse files

Fix a bug with the div operation.

parent 0910f912
......@@ -204,8 +204,8 @@ public class CalculatorPanel extends AbstractSelectionPanel<CalcService> {
);
jButtonDiv.addActionListener( new ActionListener() {
public void actionPerformed(ActionEvent e) {
double result = selected.div( Integer.parseInt(jTextField7.getText()),
Integer.parseInt(jTextField8.getText()) );
double result = selected.div( Integer.parseInt(jTextField8.getText()),
Integer.parseInt(jTextField7.getText()) );
jLabelDivResult.setText(Double.toString(result));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment