import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;

public class HelloEventsSwingTimer {
	public final static int ONE_SECOND = 1000;
	static int fCount = 0;
	static Timer fTimer = null;
	public static void main(String...args) {
		System.out.println("Hello Events Swing Timer!");
		
		fTimer = new Timer(ONE_SECOND, new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				System.out.printf("Tick %s\n", fCount);
				fCount++;
				if (fCount > 5) {
					fTimer.stop();
					System.out.println("I'm stopped");
				}
			}

		});
		
		fTimer.start();
	}
}

@@ -130,17 +130,20 @@
 Timer %7B%0A
-%09
+    
 public f
@@ -177,17 +177,20 @@
 = 1000;%0A
-%09
+    
 static i
@@ -204,17 +204,20 @@
 nt = 0;%0A
-%09
+    
 static T
@@ -236,17 +236,21 @@
 = null;%0A
-%09
+%0A    
 public s
@@ -278,16 +278,17 @@
 g...
+ 
 args) %7B%0A
 %09%09Sy
@@ -283,18 +283,24 @@
 args) %7B%0A
-%09%09
+        
 System.o
@@ -340,21 +340,25 @@
 mer!%22);%0A
-%09%09%0A%09%09
+%0A        
 fTimer =
@@ -408,24 +408,42 @@
  %7B%0A%0A
-%09%09%09@Override%0A%09%09%09
+            @Override%0A            
 publ
@@ -483,20 +483,32 @@
 nt e) %7B%0A
-%09%09%09%09
+                
 System.o
@@ -543,127 +543,212 @@
 t);%0A
-%09%09%09%09fCount++;%0A%09%09%09%09if (fCount %3E 5) %7B%0A%09%09%09%09%09fTimer.stop();%0A%09%09%09%09%09System.out.println(%22I'm stopped%22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%7D);%0A%09%09%0A%09%09
+                fCount++;%0A                if (fCount %3E 5) %7B%0A                    fTimer.stop();%0A                    System.out.println(%22I'm stopped%22);%0A                %7D%0A            %7D%0A%0A        %7D);%0A%0A        
 fTim
@@ -763,9 +763,12 @@
 ();%0A
-%09
+    
 %7D%0A%7D%0A

Update HelloEventsSwingTimer.java