X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fjvcard%2Ftui%2FMainWindow.java;fp=src%2Fbe%2Fnikiroo%2Fjvcard%2Ftui%2FMainWindow.java;h=617d8a521eb692e17f103f56ddb9bf9f6ba0ab4f;hp=39560a4c7a57d7ea766f47df05cb9a81abaed1ce;hb=d5260eeb873fcf2ef9855dedcd9e2a3a3a990582;hpb=f06c81000632cfb5f525ca458f719338f55f9f66 diff --git a/src/be/nikiroo/jvcard/tui/MainWindow.java b/src/be/nikiroo/jvcard/tui/MainWindow.java index 39560a4..617d8a5 100644 --- a/src/be/nikiroo/jvcard/tui/MainWindow.java +++ b/src/be/nikiroo/jvcard/tui/MainWindow.java @@ -460,19 +460,16 @@ public class MainWindow extends BasicWindow { UiColors.themeLabel(ColorOption.TITLE_VARIABLE, lblTitle); } - Label lblCount = null; - if (countStr != null) { - lblCount = new Label(countStr); - UiColors.themeLabel(ColorOption.TITLE_COUNT, lblCount); - } + Label lblCount = new Label(countStr); + UiColors.themeLabel(ColorOption.TITLE_COUNT, lblCount); titlePanel.removeAllComponents(); titlePanel.addComponent(lblPrefix, BorderLayout.Location.LEFT); - if (lblTitle != null) + if (lblTitle != null) { titlePanel.addComponent(lblTitle, BorderLayout.Location.CENTER); - if (lblCount != null) - titlePanel.addComponent(lblCount, BorderLayout.Location.RIGHT); + } + titlePanel.addComponent(lblCount, BorderLayout.Location.RIGHT); } }