X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTPasswordField.java;h=6b00f4a6653d3ba5bef763b1b66b10ba6c56d265;hb=74bbd9bc0e25466aa5984efeef033f887caf58fb;hp=ea88dfa45f96761e868fa65236895fb8f22dde98;hpb=a69ed767c9c07cf35cf1c5f7821fc009cfe79cd2;p=fanfix.git diff --git a/src/jexer/TPasswordField.java b/src/jexer/TPasswordField.java index ea88dfa..6b00f4a 100644 --- a/src/jexer/TPasswordField.java +++ b/src/jexer/TPasswordField.java @@ -32,7 +32,8 @@ import jexer.bits.CellAttributes; import jexer.bits.GraphicsChars; /** - * TField implements an editable text field. + * TPasswordField implements an editable text field that displays + * stars/asterisks when it is not active. */ public class TPasswordField extends TField { @@ -115,7 +116,7 @@ public class TPasswordField extends TField { end = text.length(); } - hLineXY(0, 0, getWidth(), GraphicsChars.HATCH, fieldColor); + hLineXY(0, 0, getWidth(), backgroundChar, fieldColor); if (showStars) { hLineXY(0, 0, getWidth() - 2, '*', fieldColor); } else {