summaryrefslogtreecommitdiff
path: root/BKUCommonGUI/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'BKUCommonGUI/src/main/java/at')
-rw-r--r--BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java12
1 files changed, 6 insertions, 6 deletions
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 a7eebbfd..e5cac7b7 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
@@ -1533,6 +1533,12 @@ public class BKUGUIImpl implements BKUGUIFacade {
if (b.getPreferredSize().width > bs) {
bs = b.getPreferredSize().width;
}
+ // need cancel button for message dialog,
+ // even if renderCancelButton == false
+ b.setText(getMessage(BUTTON_CANCEL));
+ if (b.getPreferredSize().width > bs) {
+ bs = b.getPreferredSize().width;
+ }
b.setText(getMessage(BUTTON_SIGN));
if (b.getPreferredSize().width > bs) {
bs = b.getPreferredSize().width;
@@ -1545,12 +1551,6 @@ public class BKUGUIImpl implements BKUGUIFacade {
if (b.getPreferredSize().width > bs) {
bs = b.getPreferredSize().width;
}
- if (renderCancelButton) {
- b.setText(getMessage(BUTTON_CANCEL));
- if (b.getPreferredSize().width > bs) {
- bs = b.getPreferredSize().width;
- }
- }
return bs;
}
}