开发者

How to create text box in blackberry application

开发者 https://www.devze.com 2022-12-20 05:04 出处:网络
I have started to make blackberry application. And facing a hard time.开发者_StackOverflow I want to create a log-in form, for that I need 2 text boxes, 2 labels (of user name and password) and one Su

I have started to make blackberry application. And facing a hard time.开发者_StackOverflow I want to create a log-in form, for that I need 2 text boxes, 2 labels (of user name and password) and one Submit Button.


Add this simple login field on screen.

Field loginField(){
        VerticalFieldManager vfm = new VerticalFieldManager();
        vfm.add(new BasicEditField("UserName:", ""));
        vfm.add(new SeparatorField());
        vfm.add(new PasswordEditField("Password:", ""));
        vfm.add(new SeparatorField());
        vfm.add(new ButtonField("submit"));
        return vfm;
    }
0

精彩评论

暂无评论...
验证码 换一张
取 消