龚心怡修改结果2

master
陈佳媛 2 months ago
parent 0227cd79e0
commit 9cf2dc00ef

@ -27,7 +27,6 @@ public class Calculator extends JFrame implements ActionListener {
"1", "2", "3", "-", "1", "2", "3", "-",
"C", "0", "=", "+" "C", "0", "=", "+"
}; };
for (String text : buttons) { for (String text : buttons) {
JButton button = new JButton(text); JButton button = new JButton(text);
button.setFont(new Font("Arial", Font.PLAIN, 24)); button.setFont(new Font("Arial", Font.PLAIN, 24));

Loading…
Cancel
Save