X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTExceptionDialog.java;h=f526a6470a2db15634fdeaeb1d09d22c8ca16589;hb=HEAD;hp=0e06756952bf5195961f333ee8f69238256edd1e;hpb=e23ea53820244957b17a7000c6d3e1ff586f1ef0;p=fanfix.git diff --git a/src/jexer/TExceptionDialog.java b/src/jexer/TExceptionDialog.java index 0e06756..f526a64 100644 --- a/src/jexer/TExceptionDialog.java +++ b/src/jexer/TExceptionDialog.java @@ -47,7 +47,7 @@ public class TExceptionDialog extends TWindow { /** * Translated strings. */ - private static ResourceBundle i18n = ResourceBundle.getBundle(TExceptionDialog.class.getName()); + private static final ResourceBundle i18n = ResourceBundle.getBundle(TExceptionDialog.class.getName()); // ------------------------------------------------------------------------ // Constants -------------------------------------------------------------- @@ -82,7 +82,7 @@ public class TExceptionDialog extends TWindow { final Throwable exception) { super(application, i18n.getString("windowTitle"), - 1, 1, 70, 20, CENTERED | MODAL); + 1, 1, 78, 22, CENTERED | MODAL); this.exception = exception; @@ -100,14 +100,15 @@ public class TExceptionDialog extends TWindow { 2, 6, "ttext", false); ArrayList stackTraceStrings = new ArrayList(); + stackTraceStrings.add(exception.getMessage()); StackTraceElement [] stack = exception.getStackTrace(); for (int i = 0; i < stack.length; i++) { stackTraceStrings.add(stack[i].toString()); } - stackTrace = addList(stackTraceStrings, 2, 7, getWidth() - 6, 8); + stackTrace = addList(stackTraceStrings, 2, 7, getWidth() - 6, 10); // Buttons - addButton(i18n.getString("saveButton"), 19, getHeight() - 4, + addButton(i18n.getString("saveButton"), 21, getHeight() - 4, new TAction() { public void DO() { saveToFile(); @@ -115,7 +116,7 @@ public class TExceptionDialog extends TWindow { }); TButton closeButton = addButton(i18n.getString("closeButton"), - 35, getHeight() - 4, + 37, getHeight() - 4, new TAction() { public void DO() { // Don't do anything, just close the window.