|
|
@ -1016,6 +1016,11 @@ public class TasksFrame extends JFrame { |
|
|
|
j3.setVisible(true); |
|
|
|
j3.setBounds(10,80,30,20); |
|
|
|
|
|
|
|
JLabel j4 = new JLabel(); |
|
|
|
j4.setText("(a - b)" +c2 +" = "); |
|
|
|
j4.setVisible(true); |
|
|
|
j4.setBounds(10,40,150,20); |
|
|
|
|
|
|
|
JTextField f1 = new JTextField(); |
|
|
|
f1.setVisible(true); |
|
|
|
f1.setBounds(45,60,30,20); |
|
|
@ -1032,6 +1037,11 @@ public class TasksFrame extends JFrame { |
|
|
|
JLabel ausgabe = new JLabel(); |
|
|
|
ausgabe.setBounds(80,20,30,20); |
|
|
|
ausgabe.setVisible(false); |
|
|
|
|
|
|
|
JLabel ausgabe2 = new JLabel(); |
|
|
|
ausgabe2.setBounds(80,40,30,20); |
|
|
|
ausgabe2.setVisible(false); |
|
|
|
|
|
|
|
jButton.addActionListener(new ActionListener() { |
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
@ -1042,9 +1052,15 @@ public class TasksFrame extends JFrame { |
|
|
|
Integer res = bin1(val_a, val_b); |
|
|
|
ausgabe.setText(String.valueOf(res)); |
|
|
|
ausgabe.setVisible(true); |
|
|
|
|
|
|
|
Integer res2 = bin2(val_a, val_b); |
|
|
|
ausgabe2.setText(String.valueOf(res2)); |
|
|
|
ausgabe2.setVisible(true); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
jPanel.add(ausgabe2); |
|
|
|
jPanel.add(j4); |
|
|
|
jPanel.add(ausgabe); |
|
|
|
jPanel.add(jButton); |
|
|
|
jPanel.add(f1); |
|
|
|