front_processing/extern/TUIO_JAVA/src/TuioApplet.java
changeset 9 0f44b7360c8d
parent 0 6fefd4afe506
child 10 925b7ee746e3
--- a/front_processing/extern/TUIO_JAVA/src/TuioApplet.java	Thu Mar 22 16:00:17 2012 +0100
+++ b/front_processing/extern/TUIO_JAVA/src/TuioApplet.java	Thu Mar 22 18:15:53 2012 +0100
@@ -1,22 +1,22 @@
-/*
-	 TUIO Java Demo - part of the reacTIVision project
-	 http://reactivision.sourceforge.net/
-	 
-	 Copyright (c) 2005-2009 Martin Kaltenbrunner <mkalten@iua.upf.edu>
-	 
-	 This program is free software; you can redistribute it and/or modify
-	 it under the terms of the GNU General Public License as published by
-	 the Free Software Foundation; either version 2 of the License, or
-	 (at your option) any later version.
-	 
-	 This program is distributed in the hope that it will be useful,
-	 but WITHOUT ANY WARRANTY; without even the implied warranty of
-	 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-	 GNU General Public License for more details.
-	 
-	 You should have received a copy of the GNU General Public License
-	 along with this program; if not, write to the Free Software
-	 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+/*
+     TUIO Java Demo - part of the reacTIVision project
+     http://reactivision.sourceforge.net/
+     
+     Copyright (c) 2005-2009 Martin Kaltenbrunner <mkalten@iua.upf.edu>
+     
+     This program is free software; you can redistribute it and/or modify
+     it under the terms of the GNU General Public License as published by
+     the Free Software Foundation; either version 2 of the License, or
+     (at your option) any later version.
+     
+     This program is distributed in the hope that it will be useful,
+     but WITHOUT ANY WARRANTY; without even the implied warranty of
+     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+     GNU General Public License for more details.
+     
+     You should have received a copy of the GNU General Public License
+     along with this program; if not, write to the Free Software
+     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */
 
 import java.applet.*;
@@ -27,41 +27,41 @@
 import TUIO.*;
 
 public class TuioApplet extends JApplet {
-	
-	TuioDemoComponent demo;
-	TuioClient client;
-	int port = 3333;
-	
-	public void init() {
-		try {
-			port = Integer.parseInt(getParameter("port"));
-		} catch (Exception e) {}
-		
-		Dimension size = this.getSize();
-		
-		TuioDemoComponent demo = new TuioDemoComponent();
-		demo.setSize(size.width,size.height);
-	
-		client = new TuioClient();
-		client.addTuioListener(demo);
-		
-		add(demo);
-		repaint();
-	}
+    
+    TuioDemoComponent demo;
+    TuioClient client;
+    int port = 3333;
+    
+    public void init() {
+        try {
+            port = Integer.parseInt(getParameter("port"));
+        } catch (Exception e) {}
+        
+        Dimension size = this.getSize();
+        
+        TuioDemoComponent demo = new TuioDemoComponent();
+        demo.setSize(size.width,size.height);
+    
+        client = new TuioClient();
+        client.addTuioListener(demo);
+        
+        add(demo);
+        repaint();
+    }
 
-	public void start() {
-		if (!client.isConnected()) client.connect();
-	}
+    public void start() {
+        if (!client.isConnected()) client.connect();
+    }
 
-	public void stop() {
-		if (client.isConnected()) client.disconnect();
-	}
+    public void stop() {
+        if (client.isConnected()) client.disconnect();
+    }
 
-	public void destroy() {
-		if (client.isConnected()) client.disconnect();
-		client = null;
-	}
+    public void destroy() {
+        if (client.isConnected()) client.disconnect();
+        client = null;
+    }
 
-	public void paint( Graphics g ) {
-	}
+    public void paint( Graphics g ) {
+    }
 }