|
|
@ -13,7 +13,7 @@ public class SimpleCalculator {
|
|
|
|
private double memory; // Memory for M+, M-, MR, and MC functionality
|
|
|
|
private double memory; // Memory for M+, M-, MR, and MC functionality
|
|
|
|
|
|
|
|
|
|
|
|
public SimpleCalculator() {
|
|
|
|
public SimpleCalculator() {
|
|
|
|
frame = new JFrame("简单计算器");
|
|
|
|
frame = new JFrame("简单计算器pjj");
|
|
|
|
inputField = new JTextField();
|
|
|
|
inputField = new JTextField();
|
|
|
|
inputField.setEditable(false);
|
|
|
|
inputField.setEditable(false);
|
|
|
|
inputField.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
|
inputField.setHorizontalAlignment(SwingConstants.RIGHT);
|
|
|
|