返回顶部

收藏

J2ME: 使用 TextFields 和 Alerts

更多

http://www.codeproject.com/KB/java/j2me-textfields-alerts.aspx

user-registration-screenshot2.jpg

imgs/asCode/13231203_dIkm.jpg

[Java]代码

public UserRegistration() {
    //...
    emailTxt = new TextField("Email:", "", 100, TextField.EMAILADDR);
    passwordTxt = new TextField("Password:", "", 16, TextField.PASSWORD);
    nameTxt = new TextField("Name:", "", 50, TextField.ANY);
    mobileTxt = new TextField("Mobile:", "", 15, TextField.PHONENUMBER);
    urlTxt = new TextField("Website:", "", 100, TextField.URL);
} 

标签:TextField,Alert,J2ME

收藏

0人收藏

支持

0

反对

0

发表评论