Removed…
Your Applet wouldn’t load on my system. All I got was a grayish-blue blank screen. My OS is Windows 7 (64 bit) and my Java is up to date. I would recommend that you try breaking your applet down to its simplest parts. Once you have that working, add back in your other stuff until it breaks. That will tell you where the problem is.
That shouldn’t cause any problems while its running, but likely means your code is not very maintainable. You should look into component based entities, which is a popular design pattern to eliminate the need for deep object hierarchies.
Removed…
sorry, no exceptions are thrown, this is the console output (took like 10 min to get the console up to capture it)
Java Plug-in 1.6.0_23
Using JRE version 1.6.0_23-b05 Java HotSpot(TM) Client VM
User home directory = C:\Users\cwnl-mlundstr
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
AsiakasOhjelma_AWT v2.0
PeliKirjasto_AWT v3.0
Loaded resource : http://www.jumalautapelit.eu/resurssit/UpDate.txt
Loaded resource : http://www.jumalautapelit.eu/resurssit/Data_Lautapelipoika.txt
Loaded resource : http://www.jumalautapelit.eu/resurssit/Data_Logot.txt
FrameRate : 5
FrameRate : 35
FrameRate : 37
FrameRate : 36
FrameRate : 32
FrameRate : 33
FrameRate : 27
FrameRate : 32
FrameRate : 33
FrameRate : 32
FrameRate : 28
FrameRate : 4
FrameRate : 3
FrameRate : 4
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 4
FrameRate : 3
FrameRate : 3
FrameRate : 4
FrameRate : 3
FrameRate : 3
FrameRate : 4
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
FrameRate : 3
Removed…
I won’t be of much help. Works for me on Safari, Mac. Nice demos btw!
Well it is reproducable for me so if you want me to test something just let me know I don’t get any screen updates at all just like your other cases)
Mike
Could you put some debugging output in your code so that we can send you some useful console output? This is why you should have some form of logging in any non-trivial program.
Removed…
Removed…
Even the first one doesn’t work… (all white and the java console crashes). If you send me the code I can test it step by step.
Mike
Removed…
Removed…
test 4 didn’t work (the one without graphics2d) but the pong game did
Mike
Removed…
The Pong one runs for me but not the new test. I get (Mac Safari):
Java Plug-in 1.5.0_28
Using JRE version 1.5.0_28-b04-382-9M3326 Java HotSpot(TM) Client VM
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:173)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:145)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:659)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:786)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2383)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:715)
at sun.applet.AppletPanel.run(AppletPanel.java:369)
at java.lang.Thread.run(Thread.java:655)
Andreas
Removed…
That’s better. Runs in Firefox and Safari on Mac 10.5.8. (Cannot get Java to run properly in Chrome, so did not try that one).
Andreas
Removed…
Works in Google Chrome 11 on Windows 7 x64