summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/demos/jrefract/JRefract.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/demos/jrefract/JRefract.java b/src/demos/jrefract/JRefract.java
index b7a32d9..d0686a6 100755
--- a/src/demos/jrefract/JRefract.java
+++ b/src/demos/jrefract/JRefract.java
@@ -175,8 +175,12 @@ public class JRefract {
VertexProgWarp demo = new VertexProgWarp();
demo.setDemoListener(demoListener);
demo.setTitleSetter(new VertexProgWarp.TitleSetter() {
- public void setTitle(String title) {
- inner.setTitle(title);
+ public void setTitle(final String title) {
+ SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ inner.setTitle(title);
+ }
+ });
}
});
canvas.addGLEventListener(demo);