From 107bba162165a2e6fc88913065f52c14d04b3883 Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Thu, 10 May 2018 19:37:34 -0400 Subject: [PATCH] typos --- src/jexer/TInputBox.java | 4 ++-- src/jexer/TMessageBox.java | 22 +++++++++++++--------- src/jexer/TTerminalWindow.java | 26 +++++++++++++------------- 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/src/jexer/TInputBox.java b/src/jexer/TInputBox.java index 02a468f7..487664ab 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 4c453790..6104d9f9 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 93d0fa15..74f71edc 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. * -- 2.27.0