import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Game extends JPanel {
    public static final String NAME = "Titanium Gastropod v0.0";
    public static final int WINDOW_W = 800, WINDOW_H = 600;

    private BufferedImage mScreenBuffer;

    public Game() {
	mScreenBuffer = new BufferedImage(WINDOW_W, WINDOW_H, BufferedImage.TYPE_INT_ARGB);
	
	setFocusable(true);
	setPreferredSize(new Dimension(WINDOW_W, WINDOW_H));

	Thread updateThread = new Thread("Game update thread") {
		@Override
		public void run() {
		    while (true) {
			Graphics2D g = (Graphics2D) mScreenBuffer.getGraphics();
			g.setColor(Color.BLACK);
			g.fillRect(0, 0, WINDOW_W, WINDOW_H);

			// do game drawing here

			repaint();
			try {
			    Thread.sleep(30);
			} catch (InterruptedException e) {
			    e.printStackTrace();
			}
		    }
		}
	    };
	updateThread.start();
    }

    public void paint(Graphics g) {
	g.drawImage(mScreenBuffer, 0, 0, this);
    }
    
    public static void main(String args[]) {
	final JFrame frame = new JFrame(NAME);
	frame.getContentPane().add(new Game());
	frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	frame.pack();
	frame.setVisible(true);
    }
}

@@ -225,20 +225,17 @@
 Panel %7B%0A
-    
+%09
 public s
@@ -287,20 +287,17 @@
  v0.0%22;%0A
-    
+%09
 public s
@@ -345,20 +345,17 @@
 = 600;%0A%0A
-    
+%09
 private 
@@ -384,20 +384,17 @@
 uffer;%0A%0A
-    
+%09
 public G
@@ -401,16 +401,17 @@
 ame() %7B%0A
+%09
 %09mScreen
@@ -488,17 +488,19 @@
 ARGB);%0A%09
-%0A
+%09%0A%09
 %09setFocu
@@ -512,16 +512,17 @@
 (true);%0A
+%09
 %09setPref
@@ -568,16 +568,17 @@
 W_H));%0A%0A
+%09
 %09Thread 
@@ -627,16 +627,17 @@
 ead%22) %7B%0A
+%09
 %09%09@Overr
@@ -642,16 +642,17 @@
 rride%0A%09%09
+%09
 public v
@@ -665,20 +665,18 @@
 n() %7B%0A%09%09
-    
+%09%09
 while (t
@@ -685,16 +685,17 @@
 e) %7B%0A%09%09%09
+%09
 Graphics
@@ -746,16 +746,17 @@
 s();%0A%09%09%09
+%09
 g.setCol
@@ -772,16 +772,17 @@
 BLACK);%0A
+%09
 %09%09%09g.fil
@@ -818,16 +818,17 @@
 H);%0A%0A%09%09%09
+%09
 // do ga
@@ -847,16 +847,17 @@
 ere%0A%0A%09%09%09
+%09
 repaint(
@@ -859,16 +859,17 @@
 aint();%0A
+%09
 %09%09%09try %7B
@@ -872,20 +872,18 @@
 ry %7B%0A%09%09%09
-    
+%09%09
 Thread.s
@@ -892,16 +892,17 @@
 ep(30);%0A
+%09
 %09%09%09%7D cat
@@ -934,20 +934,18 @@
 e) %7B%0A%09%09%09
-    
+%09%09
 e.printS
@@ -964,30 +964,29 @@
 %0A%09%09%09
+%09
 %7D%0A%09%09
-    
+%09%09
 %7D%0A%09%09
+%09
 %7D%0A%09
-    
+%09%09
 %7D;%0A
+%09
 %09upd
@@ -1008,19 +1008,13 @@
 ();%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 publ
@@ -1041,16 +1041,17 @@
 cs g) %7B%0A
+%09
 %09g.drawI
@@ -1087,23 +1087,14 @@
 s);%0A
-    %7D%0A    %0A    
+%09%7D%0A%09%0A%09
 publ
@@ -1130,16 +1130,17 @@
 gs%5B%5D) %7B%0A
+%09
 %09final J
@@ -1167,24 +1167,25 @@
 rame(NAME);%0A
+%09
 %09frame.getCo
@@ -1213,16 +1213,17 @@
 ame());%0A
+%09
 %09frame.s
@@ -1269,16 +1269,17 @@
 CLOSE);%0A
+%09
 %09frame.p
@@ -1285,16 +1285,17 @@
 pack();%0A
+%09
 %09frame.s
@@ -1315,12 +1315,9 @@
 e);%0A
-    
+%09
 %7D%0A%7D%0A

Switch space indents to tabs