Handling and Raising events
I have a Synchronizer class. I want it to raise an event every X seconds if
conditions Y & Z are True. Here's what I have already:
public class Synchronizer implements ActionListener
timer Synchr; //swing timer
public Synchronizer(int interval)
timer Synchr = new timer(interval, this);
When the Y & Z set to true, the class will allow timer events to pass.
public void actionPerformed(ActionEvent e)
if (Y && Z)
I want to raise my own events.
public void raiseEvent()
// What goes here?
// other methods here... [including some to call raiseEvent()]
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL