Re: Swing/Fireworks test does not work
- From: cowwoc <cowwoc@bbs.darktech.org>
- To: users@trident.kenai.com
- Subject: Re: Swing/Fireworks test does not work
- Date: Sat, 06 Feb 2010 17:42:54 -0500
|
I finally got around to looking at this. It was caused by the following
code sniplet: new Thread() { @Override public void run() { while (true) { if ((mainPanel.getWidth() > 0) && (mainPanel.getHeight() > 0)) { addExplosions(5); } } } }.start(); Initally the condition is false, leading this thread to starve other threads. In my case, this gets into an endless loop. Inserting a sleep statement or any other sort of delay per iteration solves the problem for me but obviously this needs to be cleaned up in a more elegant way. I suggest you run FindBugs on the codebase. I suspect it'll find other problems. Gili On 19/12/2009 6:49 PM, Kirill Grouchnikov wrote:
|
|
Re: Swing/Fireworks test does not work |
cowwoc | 02/06/2010 |
| Kirill Grouchnikov | 02/09/2010 | |
| Kirill Grouchnikov | 02/09/2010 |






