svn commit: r957436 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java

[email protected]
Newsgroups gmane.comp.apache.logging
Message-ID <[email protected]>
Author: sdeboy
Date: Thu Jun 24 06:48:19 2010
New Revision: 957436

URL: http://svn.apache.org/viewvc?rev=957436&view=rev
Log:
Enqueue the display of the 'no receivers' dialog to ensure the parent is visible

Modified:
    logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java?rev=957436&r1=957435&r2=957436&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java (original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogUI.java Thu Jun 24 06:48:19 2010
@@ -1036,7 +1036,11 @@ public class LogUI extends JFrame implem
     if (
       noReceiversDefined
         && applicationPreferenceModel.isShowNoReceiverWarning()) {
-      showNoReceiversWarningPanel();
+      EventQueue.invokeLater(new Runnable() {
+          public void run() {
+              showNoReceiversWarningPanel();
+          }
+      });
     }
 
     Container container = tutorialFrame.getContentPane();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.