Compare commits

...

2 Commits

Author SHA1 Message Date
Artem Didytschuk 04d0a80dce Merge branch 'master' of https://git.ngb.schule/artem.didytschuk/Tic-Tac-Toe 2020-09-03 11:07:20 +02:00
Artem Didytschuk f7c03c44a4 TicTacToe SpielStarten()
Spielerreihenfolge teilweise und schleife
2020-09-03 11:07:09 +02:00
4 changed files with 1902 additions and 63 deletions

View File

@ -71,37 +71,70 @@ Opening project: H:\Git\Tic-Tac-Toe\Tic-Tac-Toe
Connected to debug VM via dt_shmem transport...
java.io.FileNotFoundException while reading import cache: H:Dokumente\bluej\import-cache.xml (Das System kann die angegebene Datei nicht finden)
Communication with debug VM fully established.
====
====
BlueJ run started: Thu Sep 03 09:53:25 CEST 2020
BlueJ version 4.2.2
Java version 11.0.2
JavaFX version 11.0.2+1
Virtual machine: OpenJDK 64-Bit Server VM 11.0.2+9 (Oracle Corporation)
Running on: Windows 7 6.1 (amd64)
Java Home: C:\Program Files\BlueJ\jdk
----
getExtensionsClass: jarFile=._CleanProjectExtension.jar Exception=zip END header not found
java.util.zip.ZipException: zip END header not found
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1529)
at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1430)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1437)
at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1268)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1231)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:726)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:843)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:246)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:176)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:346)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:317)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:283)
at bluej.extmgr.ExtensionWrapper.getExtensionClass(ExtensionWrapper.java:128)
at bluej.extmgr.ExtensionWrapper.<init>(ExtensionWrapper.java:94)
at bluej.extmgr.ExtensionsManager.loadDirectoryExtensions(ExtensionsManager.java:155)
at bluej.extmgr.ExtensionsManager.loadExtensions(ExtensionsManager.java:105)
at bluej.extmgr.ExtensionsManager.getInstance(ExtensionsManager.java:66)
at bluej.Main.lambda$new$2(Main.java:152)
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at java.base/java.util.Arrays.sort(Arrays.java:1441)
at bluej.editor.moe.MoeEditor.createContentAssist(MoeEditor.java:3283)
at bluej.editor.moe.MoeActions.lambda$contentAssistAction$41(MoeActions.java:1675)
at bluej.editor.moe.MoeActions$1.actionPerformed(MoeActions.java:1172)
at bluej.editor.moe.MoeActions.lambda$updateKeymap$2(MoeActions.java:185)
at org.fxmisc.wellbehaved.event.InputMap.lambda$consume$2(InputMap.java:256)
at java.base/java.util.Optional.map(Optional.java:265)
at org.fxmisc.wellbehaved.event.PatternActionMap.lambda$forEachEventType$1(InputMap.java:414)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:23)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandlerMap.lambda$null$0(InputHandlerMap.java:22)
at org.fxmisc.wellbehaved.event.InputHandler.handle(InputHandler.java:50)
at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$KeyHandler.process(Scene.java:4058)
at javafx.scene.Scene$KeyHandler.access$1500(Scene.java:4004)
at javafx.scene.Scene.processKeyEvent(Scene.java:2121)
at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:2595)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:217)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:149)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleKeyEvent$1(GlassViewEventHandler.java:248)
at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:390)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:247)
at com.sun.glass.ui.View.handleKeyEvent(View.java:547)
at com.sun.glass.ui.View.notifyKey(View.java:971)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
@ -112,26 +145,16 @@ java.util.zip.ZipException: zip END header not found
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
getExtensionsClass: jarFile=._GUI_Extension.jar Exception=zip END header not found
java.util.zip.ZipException: zip END header not found
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1529)
at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1430)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1437)
at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1268)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1231)
at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:726)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:843)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:246)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:176)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:346)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:317)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:283)
at bluej.extmgr.ExtensionWrapper.getExtensionClass(ExtensionWrapper.java:128)
at bluej.extmgr.ExtensionWrapper.<init>(ExtensionWrapper.java:94)
at bluej.extmgr.ExtensionsManager.loadDirectoryExtensions(ExtensionsManager.java:155)
at bluej.extmgr.ExtensionsManager.loadExtensions(ExtensionsManager.java:105)
at bluej.extmgr.ExtensionsManager.getInstance(ExtensionsManager.java:66)
at bluej.Main.lambda$new$2(Main.java:152)
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
@ -142,9 +165,195 @@ java.util.zip.ZipException: zip END header not found
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
Opening project: H:\Git\Tic-Tac-Toe\Tic-Tac-Toe
1599119607198: Listening for JDWP connection on address: javadebug
1599122864463: Listening for JDWP connection on address: javadebug
Connected to debug VM via dt_shmem transport...
java.io.FileNotFoundException while reading import cache: H:Dokumente\bluej\import-cache.xml (Das System kann die angegebene Datei nicht finden)
Communication with debug VM fully established.
Simple GUI Extension terminates
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
1599122974514: Listening for JDWP connection on address: javadebug
Connected to debug VM via dt_shmem transport...
Communication with debug VM fully established.
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
1599123023363: Listening for JDWP connection on address: javadebug
Connected to debug VM via dt_shmem transport...
Communication with debug VM fully established.
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
1599123035503: Listening for JDWP connection on address: javadebug
Connected to debug VM via dt_shmem transport...
Communication with debug VM fully established.
ExtensionWrapper.safePostGenGetMenuItem: Class=org.bluej.UMLextension.UMLExtension Exception=component must be showing on the screen to determine its location
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
at org.bluej.UMLextension.MenuBuilder.notifyPostClassMenu(MenuBuilder.java:48)
at bluej.extmgr.ClassExtensionMenu.postMenuItem(ClassExtensionMenu.java:66)
at bluej.extensions.BlueJ.postMenuItem(BlueJ.java:964)
at bluej.extensions.ExtensionBridge.postMenuItem(ExtensionBridge.java:142)
at bluej.extmgr.ExtensionWrapper.safePostMenuItem(ExtensionWrapper.java:673)
at bluej.extmgr.FXMenuManager.lambda$menuWillBecomeVisible$5(FXMenuManager.java:196)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4$1.run(EventQueue.java:727)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -1,9 +1,13 @@
import java.util.Random;
public class TicTacToe {
int [][] spielfeld;
boolean running;
Random rand = new Random();
Spieler spieler1;
Spieler spieler2;
public TicTacToe() {
spielfeld = new int[3][3];
running = false;
@ -12,15 +16,28 @@ public class TicTacToe {
public void spielErstellen(String sp1name,String sp2name){
Spieler spieler1 = new Spieler(sp1name);
Spieler spieler2 = new Spieler(sp2name);
for(int i =0;i< spielfeld.length;i++){
for(int j=0;j<spielfeld[i].length;j++){
spielfeld[i][j]=0;
}
}
}
private void druckeSpielfeld(){
}
public void spielStarten(){
boolean gewonnen=false;
int kord[];
for(int i =0;i< spielfeld.length;i++){
for(int j=0;j<spielfeld[i].length;j++){
spielfeld[i][j]=0;
}
}
if(rand.nextInt(2)==0){
while(gewonnen==false){
druckeSpielfeld();
kord=spieler1.spielzug();
spielfeld[kord[0]][kord[1]]=1;
}
}
}
}