From af17fa8088b5652b2dd246aa19ed1075410df100 Mon Sep 17 00:00:00 2001 From: Sasitha Layan Yasathilaka <37419098+SasithaLY@users.noreply.github.com> Date: Thu, 1 Oct 2020 21:58:34 +0530 Subject: [PATCH 1/4] Added Readme file --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1be1f2f --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +Simple Calculator + +This project is a simple calculator desktop application implemented using java. + +>>> Features + +* Addition +* Subtraction +* Multiplication +* Division From 26fefb43afd3ced19c8f5df81315ae6efd0f568e Mon Sep 17 00:00:00 2001 From: Sasitha Layan Yasathilaka Date: Tue, 5 Oct 2021 11:03:05 +0530 Subject: [PATCH 2/4] Updated Features --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1be1f2f..5891b95 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,5 @@ This project is a simple calculator desktop application implemented using java. * Subtraction * Multiplication * Division + +GUI is updated with better UI/UX From 08337e68c1cfe016d16d72816f8bc09bcc9c2315 Mon Sep 17 00:00:00 2001 From: Sasitha Layan Yasathilaka Date: Sat, 8 Oct 2022 13:11:15 +0530 Subject: [PATCH 3/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5891b95..d9b6d1c 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,5 @@ This project is a simple calculator desktop application implemented using java. * Division GUI is updated with better UI/UX + +This is developed to learn implemnting GUI Applications From 0996f354c4305f9ac8d7f4c031c188e3253164df Mon Sep 17 00:00:00 2001 From: sasithaly Date: Sun, 29 Oct 2023 16:17:43 +0530 Subject: [PATCH 4/4] Added comments and refactor code --- Calculator/src/Calculator.java | 4 +++- README.md | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Calculator/src/Calculator.java b/Calculator/src/Calculator.java index 61578ff..926f51b 100644 --- a/Calculator/src/Calculator.java +++ b/Calculator/src/Calculator.java @@ -12,7 +12,9 @@ import javax.swing.JTextField; import javax.swing.SwingUtilities; - +/* + * Main Calculator UI class + */ public class Calculator { private static final float BTN_FONT_SIZE = 20f; private static final String[][] BTN_LABELS = { diff --git a/README.md b/README.md index d9b6d1c..a01e8b0 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,5 @@ This project is a simple calculator desktop application implemented using java. GUI is updated with better UI/UX This is developed to learn implemnting GUI Applications + +Update: added comments and refactor the code. \ No newline at end of file