Author: jerome
Date: 2008-08-15 15:23:17 +0200 (Fri, 15 Aug 2008)
New Revision: 1502
Added:
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ChatterTuxServer.java
Modified:
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ChatterTux.java
Log:
Modified:
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ChatterTux.java
===================================================================
---
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ChatterTux.java
2008-08-15 12:15:52 UTC (rev 1501)
+++
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ChatterTux.java
2008-08-15 13:23:17 UTC (rev 1502)
@@ -130,14 +130,17 @@
this.ok.setSize(new Dimension(80,24));
this.ok.setLocation(new Point(24, 115));
this.ok.addMouseListener(new
java.awt.event.MouseAdapter(){
- public void
mouseClicked(java.awt.event.MouseEvent event){
+ public void
mousePressed(java.awt.event.MouseEvent event){
if(group.getSelection().equals(configure.getModel())){
//Start configuration
}else
if(group.getSelection().equals(startServer.getModel())){
//Start chatter Tux
+ ChatterTuxServer.start();
+ System.exit(0);
}
else{ //Stop chatter tux.
-
+ ChatterTuxServer.stop();
+ System.exit(0);
}
}
});
Added:
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ChatterTuxServer.java
===================================================================
---
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ChatterTuxServer.java
(rev 0)
+++
software_suite_v2/software/tools/chatterTux/trunk/Chatter_tux/src/ChatterTuxServer.java
2008-08-15 13:23:17 UTC (rev 1502)
@@ -0,0 +1,51 @@
+/* This file is part of "TuxDroid Chatter Tux tool".
+ * Copyright 2008, kysoh
+ * Author : Conan Jerome
+ * eMail : [EMAIL PROTECTED]
+ * Site : http://www.kysoh.com/
+ *
+ * "TuxDroid Chatter Tux tool" 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.1 of
+ * the License, or (at your option) any later version.
+ *
+ * "TuxDroid Chatter Tux tool" 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 "TuxDroid Control Center"; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+import java.io.IOException;
+
+public class ChatterTuxServer {
+
+ public static String start = new
String("c:\\tuxdroid\\bin\\chattertux_start.bat");
+ public static String stop = new
String("c:\\tuxdroid\\bin\\chattertux_stop.bat");
+
+ public static void start(){
+ try {
+ Runtime.getRuntime().exec(ChatterTuxServer.start);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
+ public static void stop(){
+ try {
+ Runtime.getRuntime().exec(ChatterTuxServer.stop);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
+ public static void reset(){
+ ChatterTuxServer.start();
+ ChatterTuxServer.start();
+ }
+
+}
\ No newline at end of file
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn