From d1ff2f41d5abb1dd2366e3b8b049a1c04e742c66 Mon Sep 17 00:00:00 2001 From: fdai7460 Date: Wed, 1 Feb 2023 12:16:07 +0100 Subject: [PATCH] refactor: difference and equal sign --- src/main/java/src/TasksFrame.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/src/TasksFrame.java b/src/main/java/src/TasksFrame.java index 3262ee1..f98d8d4 100644 --- a/src/main/java/src/TasksFrame.java +++ b/src/main/java/src/TasksFrame.java @@ -138,10 +138,20 @@ public class TasksFrame extends JFrame { x.setBounds(10,50,30,20); x.setVisible(true); + JLabel diff = new JLabel(); + diff.setBounds(40, 50, 10, 20); + diff.setVisible(true); + diff.setText("-"); + JTextField y = new JTextField(); y.setBounds(50,50,30,20); y.setVisible(true); + JLabel equal = new JLabel(); + equal.setBounds(90, 50, 30, 20); + equal.setVisible(true); + equal.setText("="); + JTextField result = new JTextField(); result.setBounds(100,50,40,20); result.setVisible(true); @@ -166,6 +176,8 @@ public class TasksFrame extends JFrame { jPanel.add(y); jPanel.add(result); jPanel.add(difference); + jPanel.add(diff); + jPanel.add(equal); }