From d20bfd8b45e0a83773a12a649aa7ba0aaf58e649 Mon Sep 17 00:00:00 2001 From: clemenso Date: Tue, 10 Mar 2009 10:37:45 +0000 Subject: bug: showMessageDialog(key, param, listener, null) does not display OK button git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@315 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BKUCommonGUI') diff --git a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java index d6c96627..6a1f2aad 100644 --- a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java +++ b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java @@ -970,7 +970,7 @@ public class BKUGUIImpl implements BKUGUIFacade { mainPanelLayout.setVerticalGroup(mainVertical .addComponent(msgLabel)); - if (okListener != null && okCommand != null) { + if (okListener != null) { JButton okButton = new JButton(); okButton.setFont(okButton.getFont().deriveFont(okButton.getFont().getStyle() & ~java.awt.Font.BOLD)); okButton.setText(getMessage(BUTTON_OK)); -- cgit v1.2.3