I am new to
Java programming, but intrigued by the paradigm of the object-oriented concept.
I would like to get some input related to my concept before diving into the actual programming.
Is this possible:
I would like to use the Timer class to trigger random threads. The threads do nothing more than sleep for a random amount of time. The
thread then terminates.
I had thought about using a while loop, but I ran across the Timer class and it sounds like it could save me a lot of extra coding.
I would be build around this class defintion:
public class CLASSNAME extends JFrame implements Runnable, ActionListener
{
}
This line would use the Runnable interface for threads and use the ActionListener interface for event handling for my gui.
Am I off to a good start?
Thanks
BTW, any input on the implementing the Timer class would be appreciated.