summaryrefslogtreecommitdiff
path: root/javax/swing/RepaintManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/RepaintManager.java')
-rw-r--r--javax/swing/RepaintManager.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/javax/swing/RepaintManager.java b/javax/swing/RepaintManager.java
index 698dbe8e8..54243aea8 100644
--- a/javax/swing/RepaintManager.java
+++ b/javax/swing/RepaintManager.java
@@ -80,23 +80,27 @@ public class RepaintManager
* swing paint thread, which revalidates all invalid components and
* repaints any damage in the swing scene.</p>
*/
-
protected class RepaintWorker
implements Runnable
{
+
boolean live;
+
public RepaintWorker()
{
live = false;
}
+
public synchronized void setLive(boolean b)
{
live = b;
}
+
public synchronized boolean isLive()
{
return live;
}
+
public void run()
{
RepaintManager rm = RepaintManager.globalManager;
@@ -104,9 +108,9 @@ public class RepaintManager
rm.validateInvalidComponents();
rm.paintDirtyRegions();
}
+
}
-
/**
* A table storing the dirty regions of components. The keys of this
* table are components, the values are rectangles. Each component maps