Author: Paul_R
Date: 2008-07-18 10:53:59 +0200 (Fri, 18 Jul 2008)
New Revision: 1338
Modified:
software_suite_v2/software/tools/tuxController/src/GUI/mainWindow.java
Log:
* Added the gadget icon on the title bar
Modified: software_suite_v2/software/tools/tuxController/src/GUI/mainWindow.java
===================================================================
--- software_suite_v2/software/tools/tuxController/src/GUI/mainWindow.java
2008-07-18 08:38:48 UTC (rev 1337)
+++ software_suite_v2/software/tools/tuxController/src/GUI/mainWindow.java
2008-07-18 08:53:59 UTC (rev 1338)
@@ -26,7 +26,6 @@
import GUI.control.controlTux;
import GUI.control.ledsThread;
import GUI.control.waitingLoop;
-
import java.util.*;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
@@ -108,7 +107,13 @@
private void createMainWindow() {
/* Main layout */
thisLayout = new GridBagLayout();
+ this.setIconImage(new javax.swing.ImageIcon(getClass().getResource(
+ "/GUI/images/gadget.png")).getImage());
+
this.setTitle(bundle.getString("windowTitle")); //$NON-NLS-1$
+
+
+
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
dimWin = new java.awt.Dimension(400, 590); // 396, 592
this.setPreferredSize(new java.awt.Dimension(400, 600)); // 756, 591
@@ -957,7 +962,7 @@
public javax.swing.ImageIcon iconLight;
public javax.swing.ImageIcon iconBattery;
public javax.swing.ImageIcon iconMicro;
-
+
/* Misc objects */
public java.awt.Dimension dimWin;
public java.awt.Dimension dimProg;
-------------------------------------------------------------------------
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