From 744872398c812f4db4ad5315f5c489f0e7c150f1 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Fri, 29 May 2015 09:53:50 +0100 Subject: [PATCH] validate PDB selections on mouse release event --- src/jalview/gui/StructureChooser.java | 3 +-- src/jalview/jbgui/GStructureChooser.java | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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)); -- 1.7.10.2