Guest_imported
New member
- Jan 1, 1970
- 0
<br> I intend to write a program in Java which simulates a burglar alarm<br> system. This is a quick description of what I require:<br> <br> After entering the correct code in an input box this starts a timer. I will<br> have various pictures (gif's) displayed in the GUI (ie. various detectors<br> represented as doors, windows.) which are clickable. Clicking of these<br> pictures will either open/close these detectors. Depending on whether the<br> time has elapsed this will determine whether the bell will start ringing.<br> (The simulation of the bell could be a pop-up box alerting the user that the bell<br> is on or just a text displayed in the GUI as a label). Entering of the correct<br> code in the input box will stop the bell from ringing but if no code is<br> entered then I need some sort of timer that will keep count for upto 5 minutes and<br> if 5 minutes has elapsed then the bell should stop ringing automatically (ie. An<br> appropriate message should be displayed). Just want to know whether there<br> is a timer object in Java that will keep count of the time for me , what<br> classes will a need to consider. I have some basic knowledge of Swing.<br> Any guidelines on how to begin is strongly appreciated.<br> <br> Many thanks for any help in advance.<br> <br>¦