typos
authorKevin Lamonte <kevin.lamonte@gmail.com>
Thu, 10 May 2018 23:37:34 +0000 (19:37 -0400)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Thu, 10 May 2018 23:37:34 +0000 (19:37 -0400)
src/jexer/TInputBox.java
src/jexer/TMessageBox.java
src/jexer/TTerminalWindow.java

index 02a468f7dd958bb13bd746efce307ef10fcd52da..487664ab01af2dac599282f3a9fedb46e03ee330 100644 (file)
@@ -116,11 +116,11 @@ public class TInputBox extends TMessageBox {
     }
 
     // ------------------------------------------------------------------------
-    // TMessageBox ------------------------------------------------------------
+    // TInputBox --------------------------------------------------------------
     // ------------------------------------------------------------------------
 
     // ------------------------------------------------------------------------
-    // TInputBox --------------------------------------------------------------
+    // TMessageBox ------------------------------------------------------------
     // ------------------------------------------------------------------------
 
     /**
index 4c453790fbeff1f941b284e49903fe4bd2e59a2e..6104d9f9783525d640fa74641f0e6d8f9efa6b27 100644 (file)
@@ -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;
+    }
+
 }
index 93d0fa1575a5a6e550ef78b26db87d7f22a081d7..74f71edc7c0af8b9387dddca88a246d275810a9a 100644 (file)
@@ -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.
      *