JAL-3585 Focus lost when closing menu -- SwingJS-siste.zip only
[jalview.git] / src / jalview / gui / JalviewAppender.java
index 1d7064b..df19f7c 100644 (file)
@@ -32,18 +32,18 @@ import org.apache.log4j.spi.LoggingEvent;
  */
 public class JalviewAppender extends WriterAppender
 {
-
-  static private JTextArea jTextArea = null;
+  JTextArea jTextArea = null;
 
   /** Set the target JTextArea for the logging information to appear. */
-  static public void setTextArea(JTextArea jTextArea)
+  public void setTextArea(JTextArea jTextArea)
   {
-    JalviewAppender.jTextArea = jTextArea;
+    this.jTextArea = jTextArea;
   }
 
   /**
    * Format and then append the loggingEvent to the stored JTextArea.
    */
+  @Override
   public void append(LoggingEvent loggingEvent)
   {
     final String message = this.layout.format(loggingEvent);
@@ -51,6 +51,7 @@ public class JalviewAppender extends WriterAppender
     // Append formatted message to textarea using the Swing Thread.
     SwingUtilities.invokeLater(new Runnable()
     {
+      @Override
       public void run()
       {
         if (jTextArea != null)