forked from Labore/PR2-L
1
0
Fork 0

corrected initialization bug in FraktalDemo

main
Gerd Marmitt 2024-06-26 09:59:55 +02:00
parent e5e1d8c124
commit 7c781659cf
2 changed files with 29 additions and 5 deletions

21
.vscode/launch.json vendored
View File

@ -4,6 +4,27 @@
// Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387 // Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{
"type": "java",
"name": "FraktalDemoThread",
"request": "launch",
"mainClass": "FraktalDemoThread",
"projectName": "PR2-L_ada963eb"
},
{
"type": "java",
"name": "FraktalDemoRunnable",
"request": "launch",
"mainClass": "FraktalDemoRunnable",
"projectName": "PR2-L_ada963eb"
},
{
"type": "java",
"name": "FraktalDemo",
"request": "launch",
"mainClass": "FraktalDemo",
"projectName": "PR2-L_ada963eb"
},
{ {
"type": "java", "type": "java",
"name": "DemoSortMehfachLambda", "name": "DemoSortMehfachLambda",

View File

@ -100,11 +100,14 @@ public class FraktalFenster extends JFrame implements ActionListener {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
String cmd = e.getActionCommand(); String cmd = e.getActionCommand();
if(cmd.equals("Start") == true) if(cmd.equals("Start") == true) {
lorenzFarbig(); weiter = true;
lorenzFarbig();
if(cmd.equals("Stop") == true) }
weiter = false;
if(cmd.equals("Stop") == true) {
weiter = false;
}
} }
} }