Example of javax.swing.Timer