|
|
@ -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));
|
|
|
|