Browse Source

Don't use the default request processor

Toni Helenius 3 years ago
parent
commit
1aab34f017
1 changed files with 3 additions and 1 deletions
  1. 3 1
      jme3-core/src/com/jme3/gde/core/util/notify/NotifyUtil.java

+ 3 - 1
jme3-core/src/com/jme3/gde/core/util/notify/NotifyUtil.java

@@ -46,6 +46,8 @@ import org.openide.util.RequestProcessor;
  * @author qbeukes.blogspot.com, used by metalklesk
  * @author qbeukes.blogspot.com, used by metalklesk
  */
  */
 public class NotifyUtil {
 public class NotifyUtil {
+    
+    private static final RequestProcessor requestProcessor = new RequestProcessor("Notification processor", 1);
 
 
     private NotifyUtil() {
     private NotifyUtil() {
     }
     }
@@ -62,7 +64,7 @@ public class NotifyUtil {
         }
         }
         final Notification n = NotificationDisplayer.getDefault().notify(title, type.getIcon(), message, actionListener);
         final Notification n = NotificationDisplayer.getDefault().notify(title, type.getIcon(), message, actionListener);
         if (timeout > 0) {
         if (timeout > 0) {
-            RequestProcessor.getDefault().post(new Runnable() {
+            requestProcessor.post(new Runnable() {
                 @Override
                 @Override
                 public void run() {
                 public void run() {
                     n.clear();
                     n.clear();