git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TFileOpenBox working
[fanfix.git]
/
src
/
jexer
/
TField.java
diff --git
a/src/jexer/TField.java
b/src/jexer/TField.java
index 8055a3893563c7c248e10294de546820c6b4b9a3..9a3d16b5832e12514973c2a1bed795d9ef86ebff 100644
(file)
--- a/
src/jexer/TField.java
+++ b/
src/jexer/TField.java
@@
-55,6
+55,17
@@
public class TField extends TWidget {
return text;
}
return text;
}
+ /**
+ * Set field text.
+ *
+ * @param text the new field text
+ */
+ public final void setText(String text) {
+ this.text = text;
+ position = 0;
+ windowStart = 0;
+ }
+
/**
* If true, only allow enough characters that will fit in the width. If
* false, allow the field to scroll to the right.
/**
* If true, only allow enough characters that will fit in the width. If
* false, allow the field to scroll to the right.