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;
}