|
@ -143,7 +143,7 @@ public class TasksFrame extends JFrame { |
|
|
y.setVisible(true); |
|
|
y.setVisible(true); |
|
|
|
|
|
|
|
|
JTextField result = new JTextField(); |
|
|
JTextField result = new JTextField(); |
|
|
result.setBounds(100,50,30,20); |
|
|
|
|
|
|
|
|
result.setBounds(100,50,40,20); |
|
|
result.setVisible(true); |
|
|
result.setVisible(true); |
|
|
|
|
|
|
|
|
JButton difference = new JButton("Difference"); |
|
|
JButton difference = new JButton("Difference"); |
|
@ -180,12 +180,22 @@ public class TasksFrame extends JFrame { |
|
|
a.setBounds(10, 50, 30, 20); |
|
|
a.setBounds(10, 50, 30, 20); |
|
|
a.setVisible(true); |
|
|
a.setVisible(true); |
|
|
|
|
|
|
|
|
|
|
|
JLabel sum = new JLabel(); |
|
|
|
|
|
sum.setBounds(40, 50, 10, 20); |
|
|
|
|
|
sum.setVisible(true); |
|
|
|
|
|
sum.setText("+"); |
|
|
|
|
|
|
|
|
JTextField b = new JTextField(); |
|
|
JTextField b = new JTextField(); |
|
|
b.setBounds(50, 50, 30, 20); |
|
|
b.setBounds(50, 50, 30, 20); |
|
|
b.setVisible(true); |
|
|
b.setVisible(true); |
|
|
|
|
|
|
|
|
|
|
|
JLabel equal = new JLabel(); |
|
|
|
|
|
equal.setBounds(90, 50, 30, 20); |
|
|
|
|
|
equal.setVisible(true); |
|
|
|
|
|
equal.setText("="); |
|
|
|
|
|
|
|
|
JTextField result = new JTextField(); |
|
|
JTextField result = new JTextField(); |
|
|
result.setBounds(100, 50, 30, 20); |
|
|
|
|
|
|
|
|
result.setBounds(100, 50, 40, 20); |
|
|
result.setVisible(true); |
|
|
result.setVisible(true); |
|
|
|
|
|
|
|
|
JButton add = new JButton("add"); |
|
|
JButton add = new JButton("add"); |
|
@ -205,8 +215,10 @@ public class TasksFrame extends JFrame { |
|
|
|
|
|
|
|
|
jPanel.add(a); |
|
|
jPanel.add(a); |
|
|
jPanel.add(b); |
|
|
jPanel.add(b); |
|
|
|
|
|
jPanel.add(equal); |
|
|
jPanel.add(result); |
|
|
jPanel.add(result); |
|
|
jPanel.add(add); |
|
|
jPanel.add(add); |
|
|
|
|
|
jPanel.add(sum); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|