C:\Java\Game>java MoonBaseAlpha
Exception in thread "main" java.lang.NullPointerExceptio
at java.applet.Applet.getCodeBase(Unknown Source
at MoonBaseAlpha.init(MoonBaseAlpha.java:213)
at MoonBaseAlpha.main(MoonBaseAlpha.java:1390)
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Can I leave the existing applet code alone and let the new main class handle all the differences?
Do I need to use packages at all? could I place this class in with my existing applet class and just make one of them private? Not sure how this would work when calling from a browser and as an application.
can I find out about the garbage collection through the appletviewer program?
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
MainFrame.java:244: warning: sun.applet.AppletAudioClip is Sun
nd may be removed in a future release
return new sun.applet.AppletAudioClip( url );
public void update(Graphics g) {
paint(g);
}
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
line 252 has a typo and needs to say ImageProducer line 67 should indicate that the users class goes there
compiling the class produces a warning
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
I was thinking about producing a separate class for the game, using a modified version of your class for the application and yet another for the applet
C:\Java\Game>java MoonBaseAlpha
Exception in thread "main" java.lang.NullPointerExceptio
at java.applet.Applet.getCodeBase(Unknown Source
at MoonBaseAlpha.init(MoonBaseAlpha.java:213)
at MoonBaseAlpha.main(MoonBaseAlpha.java:1390)
Consider Paul's rocket mass heater. |