最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
我的J2ME编程联系(2)――DateField
时间:2022-07-02 17:43:04 编辑:袖梨 来源:一聚教程网
/*
* dateFieldlet.java
*
* Created on 2005年4月15日, 上午11:32
*/
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
*
* @author Administrator
* @version
*/
public class dateFieldlet extends MIDlet implements CommandListener{
private Form aForm;
private Display aDisplay;
private DateField aDateField;
private Command exitCommand;
private Command okCommand;
private Alert anAlert;
public dateFieldlet(){
anAlert=new Alert("Today",null,null,AlertType.INFO);
anAlert.setTimeout(3000);
exitCommand=new Command("EXIT",Command.EXIT,1);
okCommand=new Command("OK",Command.EXIT,1);
aForm=new Form("DateFieldTest");
aDateField=new DateField("Today’s date:",DateField.DATE_TIME);
aForm.append(aDateField);
aForm.addCommand(exitCommand);
aForm.addCommand(okCommand);
相关文章
- 三国诛将录新手怎么玩 05-05
- 阴阳师食梦貘分布最多位置分享 05-05
- 原神融化反应怎么增伤 05-05
- 光遇训龙怎么螺旋飞 05-05
- 永劫无间技能怎么点 05-05
- 影之刃3里武林断罪怎么刷 05-05