Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes Timer(), event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Timer(), event" Watch "Timer(), event" New topic

Timer(), event

Thana Bujakorn

Joined: Dec 18, 2002
Posts: 12
I need to do an animation with series of pictures. The only way I know is to use the Timer Object, but its constructor required an event to trigger the animation in the panel. The problem is that, the animation will be driven by a method from another class, not the GUI and therefore, has no event. How do I create anevent in this case? Or any other suggestions!? Please help! Thanks
I agree. Here's the link:
subject: Timer(), event
It's not a secret anymore!