Author: jerome
Date: 2009-01-07 10:21:31 +0100 (Wed, 07 Jan 2009)
New Revision: 3391
Modified:
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/tools/NotificationsStackWatcher.java
Log:
Fixed: #53 ?\226?\128?\148 Stack monitor / Stack watcher.
Modified:
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/tools/NotificationsStackWatcher.java
===================================================================
---
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/tools/NotificationsStackWatcher.java
2009-01-07 09:14:51 UTC (rev 3390)
+++
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/tools/NotificationsStackWatcher.java
2009-01-07 09:21:31 UTC (rev 3391)
@@ -26,6 +26,7 @@
import java.awt.Color;
import java.awt.Font;
import java.util.Calendar;
+import java.util.Date;
import java.util.GregorianCalendar;
import javax.swing.JFrame;
@@ -52,7 +53,7 @@
private Calendar calendar = new GregorianCalendar();
public NotificationsStackWatcher(){
- super("Stack watcher");
+ super("Stack monitor");
this.setResizable(false);
this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
@@ -111,6 +112,7 @@
* @param text
*/
public void gadgetPrint(String text){
+ calendar.setTime(new Date());
int h = calendar.get(Calendar.HOUR_OF_DAY);
int m = calendar.get(Calendar.MINUTE);
this.jTextAreaGadgets.append(" [" + h +":" + m + "] "+ text +
"\n");
@@ -122,6 +124,7 @@
* @param text
*/
public void attitunePrint(String text){
+ calendar.setTime(new Date());
int h = calendar.get(Calendar.HOUR_OF_DAY);
int m = calendar.get(Calendar.MINUTE);
this.jTextAreaAttitunes.append(" [" + h +":" + m + "] "+ text
+ "\n");
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn