Skip to main content

Java applet AWT-EventQueue-1 Exception



I wrote a simple implementation of the Game of life with java applets. Here's is the source code for the Applet and the Model.





When I click the button to get the next iteration these Exceptions get thrown.







Z:\GameOfLife>appletviewer driver.html

Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException:

65

at GameOfLifeApplet.mouseClicked(GameOfLifeApplet.java:63)

at java.awt.Component.processMouseEvent(Component.java:6219)

at java.awt.Component.processEvent(Component.java:5981)

at java.awt.Container.processEvent(Container.java:2041)

at java.awt.Component.dispatchEventImpl(Component.java:4583)

at java.awt.Container.dispatchEventImpl(Container.java:2099)

at java.awt.Component.dispatchEvent(Component.java:4413)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre

ad.java:269)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.

java:184)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre

ad.java:174)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)



at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)



at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)




Comments

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?