make Windows look like X11, why does this work
[fanfix.git] / src / jexer / TPasswordField.java
index 8fd29d0d8fde69e15cb35cd1361f0fcb1d7c0b01..d68a21c45bbac5a4804aca46fea7d217d2f24946 100644 (file)
@@ -97,7 +97,7 @@ public final class TPasswordField extends TField {
         CellAttributes fieldColor;
 
         boolean showStars = false;
-        if (getAbsoluteActive()) {
+        if (isAbsoluteActive()) {
             fieldColor = getTheme().getColor("tfield.active");
         } else {
             fieldColor = getTheme().getColor("tfield.inactive");
@@ -114,7 +114,7 @@ public final class TPasswordField extends TField {
             getScreen().hLineXY(0, 0, getWidth() - 2, '*',
                 fieldColor);
         } else {
-            getScreen().putStrXY(0, 0, text.substring(windowStart, end),
+            getScreen().putStringXY(0, 0, text.substring(windowStart, end),
                 fieldColor);
         }