jcal0c86147
change caret color and division symbol
+7 −6
1 file changed
- M src/GFrame.java +7 −6
| @@ -76,6 +76,7 @@ public class GFrame extends JFrame { | |||
| 76 | 76 | tf.setBounds(40, 50, 240, 40); | |
| 77 | 77 | tf.setFont((new Font("Times New Roman", Font.PLAIN, 20))); | |
| 78 | 78 | tf.setBorder(new RoundBtn(5)); | |
| 79 | + | tf.setCaretColor(Color.decode("#e5e5e5")); | |
| 79 | 80 | ||
| 80 | 81 | // History | |
| 81 | 82 | DefaultListModel<String> histList = new DefaultListModel<>(); | |
| @@ -95,7 +96,7 @@ public class GFrame extends JFrame { | |||
| 95 | 96 | JButton bAdd = newButton("+", 250, 300, 100, 40); | |
| 96 | 97 | JButton bSub = newButton("-", 250, 250, 100, 40); | |
| 97 | 98 | JButton bMul = newButton("x", 250, 200, 100, 40); | |
| 98 | − | JButton bDiv = newButton("%", 250, 150, 100, 40); | |
| 99 | + | JButton bDiv = newButton("÷", 250, 150, 100, 40); | |
| 99 | 100 | JButton bCut = newButton("", 180, 300, 60, 40); | |
| 100 | 101 | bCut.setFont(new Font("JetBrainsMono Nerd Font", Font.PLAIN, 20)); | |
| 101 | 102 | JButton bRightPar = newButton(")", 110, 100, 60, 40); | |
| @@ -140,11 +141,11 @@ public class GFrame extends JFrame { | |||
| 140 | 141 | this.setLayout(null); | |
| 141 | 142 | this.setVisible(true); | |
| 142 | 143 | ||
| 143 | − | JLabel label = new JLabel("Enter Expression: "); | |
| 144 | − | label.setFont((new Font("Times New Roman", Font.PLAIN, 20))); | |
| 145 | − | label.setBounds(40, 20, 150, 40); | |
| 146 | − | label.setForeground(Color.decode("#e5e5e5")); | |
| 147 | − | this.add(label); | |
| 144 | + | // JLabel label = new JLabel("Enter Expression: "); | |
| 145 | + | // label.setFont((new Font("Times New Roman", Font.PLAIN, 20))); | |
| 146 | + | // label.setBounds(40, 20, 150, 40); | |
| 147 | + | // label.setForeground(Color.decode("#e5e5e5")); | |
| 148 | + | // this.add(label); | |
| 148 | 149 | ||
| 149 | 150 | // ActionsListeners | |
| 150 | 151 | bEval.addActionListener(new ActionListener() { | |