From: tcofoegbu Date: Fri, 29 May 2015 08:53:50 +0000 (+0100) Subject: validate PDB selections on mouse release event X-Git-Tag: Release_2_10_0~652^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=744872398c812f4db4ad5315f5c489f0e7c150f1;p=jalview.git validate PDB selections on mouse release event --- diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index 015cd8e..2f24c61 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -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"); diff --git a/src/jalview/jbgui/GStructureChooser.java b/src/jalview/jbgui/GStructureChooser.java index 235c499..d0f2328 100644 --- a/src/jalview/jbgui/GStructureChooser.java +++ b/src/jalview/jbgui/GStructureChooser.java @@ -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));