Link to home
Start Free TrialLog in
Avatar of romram
romram

asked on

Swing Timer is not working

I have a method that I added action listener to it.
from another function I invoke this function, and set the timer.
but it seams that the timer is not working. I inserted a print statement to be print inside the function with the cation listener but it does not!

is there any problem if I am not using the Swing Timer inside a Swing component?
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of romram
romram

ASKER

But then I will not have problems if I have multiple threads, where each one will execute a timer at the same time?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>where each one will execute a timer at the same time?

When you say 'execute a timer' what exactly do you mean?
Avatar of romram

ASKER

I mean that a timer will start to generate the data in a discrete manner.