Couple more thread names
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 26 Oct 2017 13:59:22 +0000 (14:59 +0100)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 26 Oct 2017 13:59:22 +0000 (14:59 +0100)
src/jalview/gui/PopupMenu.java
src/jalview/gui/RedundancyPanel.java
src/jalview/gui/SplashScreen.java

index 850a09a..18dd8da 100644 (file)
@@ -885,7 +885,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener
             showLink(url);
           }
 
-        }).start();
+        }, "ShowURLMenuThread").start();
       }
     });
 
@@ -931,7 +931,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener
             }
           }
 
-        }).start();
+        }, "ShowGroupURLMenuThread").start();
       }
     });
 
index c4390c0..95862e7 100755 (executable)
@@ -96,7 +96,7 @@ public class RedundancyPanel extends GSliderPanel implements Runnable
     slider.setMaximum(100);
     slider.setValue(100);
 
-    Thread worker = new Thread(this);
+    Thread worker = new Thread(this, "CreateRedundancyPanelThread");
     worker.start();
 
     frame = new JInternalFrame();
index 22b697e..e46c5e7 100755 (executable)
@@ -80,12 +80,13 @@ public class SplashScreen extends JPanel
   {
     this.interactiveDialog = interactive;
     // show a splashscreen that will disapper
-    Thread t = new Thread(this);
+    Thread t = new Thread(this, "ShowSplashScreenThread");
     t.start();
   }
 
   MouseAdapter closer = new MouseAdapter()
   {
+    @Override
     public void mousePressed(MouseEvent evt)
     {
       try
@@ -196,6 +197,7 @@ public class SplashScreen extends JPanel
   /**
    * Create splash screen, display it and clear it off again.
    */
+  @Override
   public void run()
   {
     initSplashScreenWindow();
@@ -267,6 +269,7 @@ public class SplashScreen extends JPanel
       return new Dimension(image.getWidth(this) + 8, image.getHeight(this));
     }
 
+    @Override
     public void paintComponent(Graphics g)
     {
       g.setColor(Color.white);