問題に関する提案は次のとおりです。
スレッド "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: org.liky.game.frame.FiveChessFrame.checkCount で長さ 20 の範囲外のインデックス -1 (FiveChessFrame.java:280) org.liky.game.frame.FiveChessFrame.checkwin(FiveChessFrame.java:183) org.liky.game.frame.FiveChessFrame.mousePressed(FiveChessFrame.java:141) java.desktop/ java.awt.Component.processMouseEvent(Component.java:6611) java.desktop/java.awt.Component.processEvent(Component.java:6379) java.desktop/java.awt.Container.processEvent(Container.java: 2263) java.desktop/java.awt.Window.processEvent(Window.java:2046) で java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990) で java.desktop/java.awt.Container .dispatchEventImpl(Container.java:2321) java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769) java.desktop/java.awt.Component.dispatchEvent(Component.java:4822) java. Desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) java.desktop/java.awt.EventQueue$4.run( EventQueue.java:715) java.base/java.security.AccessController.doPrivileged(AccessController.java:391) java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) java.base /java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) java.desktop/java.awt.EventQueue$5.run (EventQueue.java:743) java.base/java.security.AccessController.doPrivileged(AccessController.java:391) java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) java. Desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. java:124) java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) java.desktop/java.awt .EventDispatchThread.pumpEvents(EventDispatchThread.java:101) java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
配列は範囲外です。条件をチェックして、配列内のデータにアクセスしているかどうかを確認してください