diff --git a/src/main/kotlin/org/bm00/DataAccessor/windows/LoginWindow.kt b/src/main/kotlin/org/bm00/DataAccessor/windows/LoginWindow.kt index eed4536..421c086 100644 --- a/src/main/kotlin/org/bm00/DataAccessor/windows/LoginWindow.kt +++ b/src/main/kotlin/org/bm00/DataAccessor/windows/LoginWindow.kt @@ -2,6 +2,7 @@ package org.bm00.DataAccessor.windows import jexer.TAction import jexer.TApplication +import jexer.TPasswordField import jexer.TWindow import jexer.layout.StretchLayoutManager @@ -36,11 +37,11 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) : //Password addLabel("Password", CENTERED + 9, CENTERED + 1) //TODO: Once enter is pressed, getText and save as var, then activate login process. - addPasswordField(CENTERED + 5, CENTERED + 3, 16, false, "", + var passField = addPasswordField(CENTERED + 5, CENTERED + 3, 16, false, "", // enterAction - function to call when enter key is pressed object : TAction() { override fun DO() { - TODO("Not yet implemented") + TODO("get all the text entered and save as variables") } }, // updateAction - function to call when the text is updated @@ -58,7 +59,7 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) : // enterAction - function to call when enter key is pressed object : TAction() { override fun DO() { - TODO("Not yet implemented") + TODO("get all the text entered and save as variables") } }, // updateAction - function to call when the text is updated