diff options
| author | krolxon <krolyxon@tutanota.com> | 2024-02-18 19:58:29 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2024-02-18 19:58:29 +0530 |
| commit | 0c861475100b3e1b1707570e8fd9c0e380b53856 (patch) | |
| tree | d406455b5e0a45f176ef14fa3a67f8a4847d3465 /src | |
| parent | 71eeb0f51a9526e8250d4b36f348e453c18404eb (diff) | |
change caret color and division symbol
Diffstat (limited to 'src')
| -rw-r--r-- | src/GFrame.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/GFrame.java b/src/GFrame.java index b28dd2b..bff00ed 100644 --- a/src/GFrame.java +++ b/src/GFrame.java @@ -76,6 +76,7 @@ public class GFrame extends JFrame { tf.setBounds(40, 50, 240, 40); tf.setFont((new Font("Times New Roman", Font.PLAIN, 20))); tf.setBorder(new RoundBtn(5)); + tf.setCaretColor(Color.decode("#e5e5e5")); // History DefaultListModel<String> histList = new DefaultListModel<>(); @@ -95,7 +96,7 @@ public class GFrame extends JFrame { JButton bAdd = newButton("+", 250, 300, 100, 40); JButton bSub = newButton("-", 250, 250, 100, 40); JButton bMul = newButton("x", 250, 200, 100, 40); - JButton bDiv = newButton("%", 250, 150, 100, 40); + JButton bDiv = newButton("÷", 250, 150, 100, 40); JButton bCut = newButton("", 180, 300, 60, 40); bCut.setFont(new Font("JetBrainsMono Nerd Font", Font.PLAIN, 20)); JButton bRightPar = newButton(")", 110, 100, 60, 40); @@ -140,11 +141,11 @@ public class GFrame extends JFrame { this.setLayout(null); this.setVisible(true); - JLabel label = new JLabel("Enter Expression: "); - label.setFont((new Font("Times New Roman", Font.PLAIN, 20))); - label.setBounds(40, 20, 150, 40); - label.setForeground(Color.decode("#e5e5e5")); - this.add(label); + // JLabel label = new JLabel("Enter Expression: "); + // label.setFont((new Font("Times New Roman", Font.PLAIN, 20))); + // label.setBounds(40, 20, 150, 40); + // label.setForeground(Color.decode("#e5e5e5")); + // this.add(label); // ActionsListeners bEval.addActionListener(new ActionListener() { |
