If calling the run method works as you want it to, change the actionPerformed method to start a new Thread that calls the run method.
The problem with calling the run method directly in the...
Type: Posts; User: Norm
If calling the run method works as you want it to, change the actionPerformed method to start a new Thread that calls the run method.
The problem with calling the run method directly in the...
The formatted code is easier to read.
The first thing I see is that your code in the actionPerformed takes a long time to execute. Any code you execute in an listener should be do its job quickly...
Your code is still unformatted. There are no indentions at each {} pair.
Your posted code is still all start in the left most column. It should look something like this:
static void...
Please edit your post and wrap the code in code tags.
See: BB Code List - Java Programming Forums - The Java Community
Unformatted code is hard to read and understand.