X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FSliderPanel.java;h=f98139b75d952d767e1837ae8b1bde50ece70cf2;hb=37cf4fec843890d780d400a50439cc16cbc1c98a;hp=e6ec82235ff9653e9ac58bb67c75b89a517a268c;hpb=f4766a7bbcfae845fc95923b01fa14ff83d589ff;p=jalview.git diff --git a/src/jalview/gui/SliderPanel.java b/src/jalview/gui/SliderPanel.java index e6ec822..f98139b 100755 --- a/src/jalview/gui/SliderPanel.java +++ b/src/jalview/gui/SliderPanel.java @@ -26,6 +26,7 @@ import jalview.jbgui.GSliderPanel; import jalview.renderer.ResidueShaderI; import jalview.util.MessageManager; +import java.awt.event.ActionEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.beans.PropertyVetoException; @@ -127,7 +128,7 @@ public class SliderPanel extends GSliderPanel @Override public void mouseReleased(MouseEvent evt) { - ap.paintAlignment(true); + ap.paintAlignment(true, true); } }); @@ -396,7 +397,6 @@ public class SliderPanel extends GSliderPanel public void setAllGroupsCheckEnabled(boolean b) { allGroupsCheck.setEnabled(b); - allGroupsCheck.setSelected(ap.av.getColourAppliesToAllGroups()); } /** @@ -497,4 +497,13 @@ public class SliderPanel extends GSliderPanel } return title; } + + @Override + protected void allGroupsCheck_actionPerformed(ActionEvent e) + { + if (allGroupsCheck.isSelected()) + { + valueChanged(slider.getValue()); + } + } }