Krolyxon
Commit 0c86147

Branches

Refs →

jcal0c86147

change caret color and division symbol

Author
krolxon
Date
2024-02-18 19:58 +0530
Parent
71eeb0f
Commit
0c861475100b3e1b1707570e8fd9c0e380b53856

+7 −6

1 file changed

  1. M src/GFrame.java +7 −6
M src/GFrame.java View
@@ -76,6 +76,7 @@ public class GFrame extends JFrame {
7676 tf.setBounds(40, 50, 240, 40);
7777 tf.setFont((new Font("Times New Roman", Font.PLAIN, 20)));
7878 tf.setBorder(new RoundBtn(5));
79+ tf.setCaretColor(Color.decode("#e5e5e5"));
7980
8081 // History
8182 DefaultListModel<String> histList = new DefaultListModel<>();
@@ -95,7 +96,7 @@ public class GFrame extends JFrame {
9596 JButton bAdd = newButton("+", 250, 300, 100, 40);
9697 JButton bSub = newButton("-", 250, 250, 100, 40);
9798 JButton bMul = newButton("x", 250, 200, 100, 40);
98− JButton bDiv = newButton("%", 250, 150, 100, 40);
99+ JButton bDiv = newButton("÷", 250, 150, 100, 40);
99100 JButton bCut = newButton("", 180, 300, 60, 40);
100101 bCut.setFont(new Font("JetBrainsMono Nerd Font", Font.PLAIN, 20));
101102 JButton bRightPar = newButton(")", 110, 100, 60, 40);
@@ -140,11 +141,11 @@ public class GFrame extends JFrame {
140141 this.setLayout(null);
141142 this.setVisible(true);
142143
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);
148149
149150 // ActionsListeners
150151 bEval.addActionListener(new ActionListener() {