Skip to main content

Posts

Showing posts with the label applet

What can"t I do with a Java Applet?

Consider a Java applet running in browser such as Google Chrome. What am I unable to do in the applet? Can I use Robots? Can I use ff-mpeg or Xuggle? Can I run any of the Java EE API's? There is something in Java that cannot be done inside an HTML applet - but what is it?

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.E