* fixed title for FormatDialog Window

This commit is contained in:
Reinhard Pointner 2013-12-19 06:20:30 +00:00
parent dbb8a72555
commit ec818a921d
1 changed files with 7 additions and 2 deletions

View File

@ -234,8 +234,13 @@ public class FormatDialog extends JDialog {
public void setState(Mode mode, MediaBindingBean bindings, boolean locked) {
this.mode = mode;
this.setTitle(String.format(locked ? "%s Format - %s ⇔ %s" : "%s Format", mode, bindings.getInfoObject(), bindings.getMediaFile().getName()));
title.setText(this.getTitle());
if (locked) {
this.setTitle(String.format("%s Format", mode));
title.setText(String.format("%s Format - %s ⇔ %s", mode, bindings.getInfoObject(), bindings.getMediaFile().getName()));
} else {
this.setTitle(String.format("%s Format", mode));
title.setText(String.format("%s Format", mode));
}
status.setVisible(false);
switchEditModeAction.putValue(Action.NAME, String.format("Switch to %s Format", mode.next()));