validate PDB selections on mouse release event
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 29 May 2015 08:53:50 +0000 (09:53 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 29 May 2015 08:53:50 +0000 (09:53 +0100)
src/jalview/gui/StructureChooser.java
src/jalview/jbgui/GStructureChooser.java

index 015cd8e..2f24c61 100644 (file)
@@ -418,8 +418,7 @@ public class StructureChooser extends GStructureChooser
                   + totalTime + ")");
           if (errors.size() > 0)
           {
-            StringBuilder errorMsg = new StringBuilder(
-                    "Operation unsucessful due to the following: \n");
+            StringBuilder errorMsg = new StringBuilder();
             for (String error : errors)
             {
               errorMsg.append(error).append("\n");
index 235c499..d0f2328 100644 (file)
@@ -188,6 +188,11 @@ public abstract class GStructureChooser extends JPanel implements
       {
         updateCurrentView();
       }
+
+      public void mouseReleased(MouseEvent e)
+      {
+        updateCurrentView();
+      }
     });
 
     btn_view.setFont(new java.awt.Font("Verdana", 0, 12));