From: Kevin Lamonte Date: Wed, 31 Jul 2019 02:09:17 +0000 (-0500) Subject: #45 fix example usage X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=589c6ce94839d9b4c6144a24cabad8031596c83b;hp=382bc294dd88b71639fdd6c73216d2519635a080;p=fanfix.git #45 fix example usage --- 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) {