Permalink
Browse files

call setTitle in the EDT

  • Loading branch information...
codeanticode committed Aug 31, 2015
1 parent 238da13 commit a384cbf0890a49dbf6e0fdd80e048de80e5d78d2
Showing with 7 additions and 2 deletions.
  1. +7 −2 core/src/processing/opengl/PSurfaceJOGL.java
@@ -377,8 +377,13 @@ public void run() {
@Override
- public void setTitle(String title) {
- window.setTitle(title);
+ public void setTitle(final String title) {
+ display.getEDTUtil().invoke(false, new Runnable() {
+ @Override
+ public void run() {
+ window.setTitle(title);
+ }
+ });
}

0 comments on commit a384cbf

Please sign in to comment.