From: amwaterhouse Date: Wed, 9 Mar 2005 18:40:15 +0000 (+0000) Subject: clear selection once group defined X-Git-Tag: Release_2_0~607 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a12de8e31d4a86f61f23e4eb62ae62ff03462511;p=jalview.git clear selection once group defined --- diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 38c3250..c09093b 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -324,6 +324,10 @@ public class PopupMenu extends JPopupMenu if( superG !=null) superG.setSuperGroupProperties( sg ); + + //once group is defined, remove selection rubberband + ap.av.setRubberbandGroup(null); + ap.seqPanel.seqCanvas.paintFlag=true; ap.seqPanel.repaint(); } @@ -490,6 +494,7 @@ public class PopupMenu extends JPopupMenu // this method won't add a new group if it already exists ap.av.alignment.addGroup(sg); + return sg; }