Search in sources :

Example 1 with TextComponentPassword

use of com.codename1.ui.TextComponentPassword in project CodenameOne by codenameone.

the class TestTextComponentPassword2976 method start.

public void start() {
    if (current != null) {
        current.show();
        return;
    }
    TextModeLayout tl = new TextModeLayout(2, 1);
    Form f = new Form("Pixel Perfect", tl);
    TextComponent user = new TextComponent();
    TextComponentPassword pass = new TextComponentPassword();
    f.addAll(user, pass);
    f.show();
}
Also used : TextComponent(com.codename1.ui.TextComponent) TextComponentPassword(com.codename1.ui.TextComponentPassword) Form(com.codename1.ui.Form) TextModeLayout(com.codename1.ui.layouts.TextModeLayout)

Aggregations

Form (com.codename1.ui.Form)1 TextComponent (com.codename1.ui.TextComponent)1 TextComponentPassword (com.codename1.ui.TextComponentPassword)1 TextModeLayout (com.codename1.ui.layouts.TextModeLayout)1