* fixed title for FormatDialog Window
This commit is contained in:
parent
dbb8a72555
commit
ec818a921d
|
@ -234,8 +234,13 @@ public class FormatDialog extends JDialog {
|
||||||
public void setState(Mode mode, MediaBindingBean bindings, boolean locked) {
|
public void setState(Mode mode, MediaBindingBean bindings, boolean locked) {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
|
|
||||||
this.setTitle(String.format(locked ? "%s Format - %s ⇔ %s" : "%s Format", mode, bindings.getInfoObject(), bindings.getMediaFile().getName()));
|
if (locked) {
|
||||||
title.setText(this.getTitle());
|
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);
|
status.setVisible(false);
|
||||||
|
|
||||||
switchEditModeAction.putValue(Action.NAME, String.format("Switch to %s Format", mode.next()));
|
switchEditModeAction.putValue(Action.NAME, String.format("Switch to %s Format", mode.next()));
|
||||||
|
|
Loading…
Reference in New Issue