javadoc
[jalview.git] / src / jalview / appletgui / AnnotationLabels.java
index 1884a08..5ddaa5e 100755 (executable)
@@ -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;
     }