public class AlarmEvent extends java.util.EventObject { protected long timeLeft; public AlarmEvent(Object source, long timeStamp) { super(source); this.timeLeft = timeStamp; } public int getSeconds() { return (int) (timeLeft/1000); } } // End of Class AlarmEvent