From: Kevin Lamonte Date: Thu, 10 May 2018 23:37:34 +0000 (-0400) Subject: typos X-Git-Tag: fanfix-3.0.1^2~204 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=107bba162165a2e6fc88913065f52c14d04b3883;p=fanfix.git typos --- diff --git a/src/jexer/TInputBox.java b/src/jexer/TInputBox.java index 02a468f..487664a 100644 --- a/src/jexer/TInputBox.java +++ b/src/jexer/TInputBox.java @@ -116,11 +116,11 @@ public class TInputBox extends TMessageBox { } // ------------------------------------------------------------------------ - // TMessageBox ------------------------------------------------------------ + // TInputBox -------------------------------------------------------------- // ------------------------------------------------------------------------ // ------------------------------------------------------------------------ - // TInputBox -------------------------------------------------------------- + // TMessageBox ------------------------------------------------------------ // ------------------------------------------------------------------------ /** diff --git a/src/jexer/TMessageBox.java b/src/jexer/TMessageBox.java index 4c45379..6104d9f 100644 --- a/src/jexer/TMessageBox.java +++ b/src/jexer/TMessageBox.java @@ -131,15 +131,6 @@ public class TMessageBox extends TWindow { */ private Result result = Result.OK; - /** - * Get the result. - * - * @return the result: OK, CANCEL, YES, or NO. - */ - public final Result getResult() { - return result; - } - // ------------------------------------------------------------------------ // Constructors ----------------------------------------------------------- // ------------------------------------------------------------------------ @@ -418,4 +409,17 @@ public class TMessageBox extends TWindow { super.onKeypress(keypress); } + // ------------------------------------------------------------------------ + // TMessageBox ------------------------------------------------------------ + // ------------------------------------------------------------------------ + + /** + * Get the result. + * + * @return the result: OK, CANCEL, YES, or NO. + */ + public final Result getResult() { + return result; + } + } diff --git a/src/jexer/TTerminalWindow.java b/src/jexer/TTerminalWindow.java index 93d0fa1..74f71ed 100644 --- a/src/jexer/TTerminalWindow.java +++ b/src/jexer/TTerminalWindow.java @@ -300,6 +300,19 @@ public class TTerminalWindow extends TScrollableWindow } + /** + * Handle window close. + */ + @Override + public void onClose() { + emulator.close(); + if (shell != null) { + terminateShellChildProcess(); + shell.destroy(); + shell = null; + } + } + /** * Handle window/screen resize events. * @@ -355,19 +368,6 @@ public class TTerminalWindow extends TScrollableWindow } // synchronized (emulator) } - /** - * Handle window close. - */ - @Override - public void onClose() { - emulator.close(); - if (shell != null) { - terminateShellChildProcess(); - shell.destroy(); - shell = null; - } - } - /** * Handle keystrokes. *