[tuxdroid-svn] r1338 - software_suite_v2/software/tools/tuxController/src/GUI
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2008-07-18 08:53:50
|
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; |