From 589c6ce94839d9b4c6144a24cabad8031596c83b Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Tue, 30 Jul 2019 21:09:17 -0500 Subject: [PATCH] #45 fix example usage --- src/jexer/TFileOpenBox.java | 2 +- src/jexer/TInputBox.java | 2 +- src/jexer/TMessageBox.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jexer/TFileOpenBox.java b/src/jexer/TFileOpenBox.java index eaa38ce..a2cc0cf 100644 --- a/src/jexer/TFileOpenBox.java +++ b/src/jexer/TFileOpenBox.java @@ -47,7 +47,7 @@ import static jexer.TKeypress.*; * *
  * {@code
- *     filename = application.fileOpenBox("/path/to/file.ext",
+ *     filename = fileOpenBox("/path/to/file.ext",
  *         TFileOpenBox.Type.OPEN);
  *     if (filename != null) {
  *         ... the user selected a file, go open it ...
diff --git a/src/jexer/TInputBox.java b/src/jexer/TInputBox.java
index 813af88..d60d0b5 100644
--- a/src/jexer/TInputBox.java
+++ b/src/jexer/TInputBox.java
@@ -34,7 +34,7 @@ package jexer;
  *
  * 
  * {@code
- *     box = application.inputBox(title, caption);
+ *     box = inputBox(title, caption);
  *     if (box.getText().equals("yes")) {
  *         ... the user entered "yes", do stuff ...
  *     }
diff --git a/src/jexer/TMessageBox.java b/src/jexer/TMessageBox.java
index 1eff8a7..c93ad83 100644
--- a/src/jexer/TMessageBox.java
+++ b/src/jexer/TMessageBox.java
@@ -41,7 +41,7 @@ import static jexer.TKeypress.*;
  *
  * 
  * {@code
- *     box = application.messageBox(title, caption,
+ *     box = messageBox(title, caption,
  *         TMessageBox.Type.OK | TMessageBox.Type.CANCEL);
  *
  *     if (box.getResult() == TMessageBox.OK) {
-- 
2.27.0