Re: Simple script annimation problem usig swing
Thomas wrote:
Hi I 'm writing a simple java applet..
GUId projects are more complicated than the equivalent
wiothout a GUI. Appltes are a lot more complicated to develop
and deploy (successfully) than applications.
That is why I say. You are wrong, there is no such thing
as a 'simple java applet'.
.. similar to famous game life, I' m
trying to run it throught browser html script, but the animation does not
work.
Once I wrestled that code into an SSCCE*, I ran it
(in a JOptionPane, rather than a browser) to see a single
row of static squares, and no output besides a bunch
of stuff (numbers) dumped to the System.out.
I suspect the code is blocking the EDT, but as the other
responder alluded, I was not keen to dive back in to the
380+ lines of code to discover where it was.
General tips.
- Put GUIs aside for a while
- Avoid applets for a long, *long* time.
- When posting code, post an SSCCE, rather than 380+ lines
of code spread across a number of public classes (by demoting
them to 'default access' I am currently running them from a single
'Main.java').
* <http://www.physci.org/codes/sscce.html>
/*********************************************/
the html script :
Note also that HTML is a 'mark-up' language, not a scripting
language.
--
Andrew Thompson
http://www.physci.org/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200712/1