X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FAnnotationLabels.java;h=5ddaa5e20849e5fb14df7adff77fc78a6a7d803e;hb=990fd5f012601024aaeeb09e2901791d242636c4;hp=1884a08633aa7c2dae4cf0e7448bc48f81b7a181;hpb=6951479b7dc56bd022ce2c370b7f88b5571004fd;p=jalview.git diff --git a/src/jalview/appletgui/AnnotationLabels.java b/src/jalview/appletgui/AnnotationLabels.java index 1884a08..5ddaa5e 100755 --- a/src/jalview/appletgui/AnnotationLabels.java +++ b/src/jalview/appletgui/AnnotationLabels.java @@ -157,19 +157,31 @@ public class AnnotationLabels boolean editLabelDescription(AlignmentAnnotation annotation) { + Checkbox padGaps = new Checkbox("Fill Empty Gaps With \"" + +ap.av.getGapCharacter()+"\"", + annotation.padGaps); + EditNameDialog dialog = new EditNameDialog( annotation.label, annotation.description, - " Annotation Label", + " Annotation Label", "Annotation Description", ap.alignFrame, "Edit Annotation Name / Description", - 500, 100); + 500, 180, false); + + Panel empty = new Panel(new FlowLayout()); + empty.add(padGaps); + dialog.add(empty); + dialog.pack(); + + dialog.setVisible(true); if (dialog.accept) { annotation.label = dialog.getName(); annotation.description = dialog.getDescription(); + annotation.setPadGaps(padGaps.getState(), av.getGapCharacter()); repaint(); return true; }