This is a NetBeans App done using swing.Timer
SYNTAX:
--------------------------------------------------------------------------------------------------------------
Timer t = new Timer(1000, new ActionListener() {
public void actionPerformed(ActionEvent e) {
//Statements to be executed
} } ) ;
t.start();
--------------------------------------------------------------------------------------------------------------