|
|
@ -64,15 +64,13 @@ public class TasksFrame extends JFrame { |
|
|
|
|
|
|
|
setupSum(); |
|
|
|
|
|
|
|
setupDiff(); |
|
|
|
|
|
|
|
setupSumCalc(0, 10); |
|
|
|
|
|
|
|
setup5ModList(1, 20); |
|
|
|
|
|
|
|
setupLeibnizR(1000); |
|
|
|
|
|
|
|
setupDiff(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -175,7 +173,7 @@ public class TasksFrame extends JFrame { |
|
|
|
return a-b; |
|
|
|
} |
|
|
|
|
|
|
|
private void setupSum() { |
|
|
|
public void setupSum() { |
|
|
|
JPanel jPanel = setupPanel("Summe"); |
|
|
|
|
|
|
|
JTextField a = new JTextField(); |
|
|
@ -200,7 +198,8 @@ public class TasksFrame extends JFrame { |
|
|
|
String textb = b.getText(); |
|
|
|
Integer val_a = Integer.valueOf(texta); |
|
|
|
Integer val_b = Integer.valueOf(textb); |
|
|
|
result.setText(String.valueOf(val_a+val_b)); |
|
|
|
int res = calcSumm(val_a, val_b); |
|
|
|
result.setText(String.valueOf(res)); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
@ -212,6 +211,10 @@ public class TasksFrame extends JFrame { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public int calcSumm(int a, int b) { |
|
|
|
return a+b; |
|
|
|
} |
|
|
|
|
|
|
|
private void setupHelloWorld() { |
|
|
|
|
|
|
|
JPanel jPanel = setupPanel("Hello World"); |
|
|
|