You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by hi...@apache.org on 2001/05/18 16:53:25 UTC
cvs commit: xml-batik/sources/org/apache/batik/apps/svgbrowser StatusBar.java
hillion 01/05/18 07:53:25
Modified: sources/org/apache/batik/apps/svgbrowser StatusBar.java
Log:
fixed windows-specific issue with the status bar.
Revision Changes Path
1.3 +8 -2 xml-batik/sources/org/apache/batik/apps/svgbrowser/StatusBar.java
Index: StatusBar.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/svgbrowser/StatusBar.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- StatusBar.java 2001/03/18 16:29:22 1.2
+++ StatusBar.java 2001/05/18 14:53:22 1.3
@@ -38,7 +38,7 @@
* This class represents a viewer status bar.
*
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
- * @version $Id: StatusBar.java,v 1.2 2001/03/18 16:29:22 hillion Exp $
+ * @version $Id: StatusBar.java,v 1.3 2001/05/18 14:53:22 hillion Exp $
*/
public class StatusBar extends JPanel {
@@ -88,6 +88,11 @@
protected String mainMessage;
/**
+ * The temporary message
+ */
+ protected String temporaryMessage;
+
+ /**
* The current display thread.
*/
protected Thread displayThread;
@@ -192,9 +197,9 @@
if (displayThread != null) {
displayThread.interrupt();
}
+ temporaryMessage = s;
displayThread = new DisplayThread();
displayThread.start();
- message.setText(s);
}
/**
@@ -220,6 +225,7 @@
}
public void run() {
+ message.setText(temporaryMessage);
try {
Thread.sleep(5000);
} catch(InterruptedException e) {
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org