Krolyxon
Commit d179508

Branches

Refs →

jcald179508

change bCut symbol

Author
krolxon
Date
2024-02-16 23:14 +0530
Parent
054e6f4
Commit
d179508e19553d02176e2d4473c0fd514b7bc78a

+10 −2

2 files changed

  1. M .gitignore +1 −1
  2. M GFrame.java +9 −1
M .gitignore View
@@ -1 +1 @@
1−./bin
1+bin/*
M GFrame.java View
@@ -1,3 +1,10 @@
1+/*
2+* TODO:
3+* Item positions are hard coded, make them dynamic
4+* so that window can be set to resizable.
5+*/
6+
7+
18 import java.util.Vector;
29 import javax.swing.*;
310 import java.awt.Color;
@@ -57,7 +64,8 @@ public class GFrame extends JFrame {
5764 JButton bSub = newButton("-", 250, 250, 100, 40);
5865 JButton bMul = newButton("X", 250, 200, 100, 40);
5966 JButton bDiv = newButton("%", 250, 150, 100, 40);
60− JButton bCut = newButton("<x", 180, 300, 60, 40);
67+ JButton bCut = newButton("", 180, 300, 60, 40);
68+ bCut.setFont(new Font("JetBrainsMono Nerd Font", Font.PLAIN, 20 ));
6169 JButton bRightPar = newButton(")", 110, 100, 60, 40);
6270 JButton bLeftPar = newButton("(", 40, 100, 60, 40);
6371 JButton bDoubleZero = newButton("00", 40, 300, 60, 40);