Any label can be configured as a Ticker.
- Ticker
Image ico = Image.createImage("/img/arrow.png"); Label lblTicker = new Label("Hello! This is a Ticker!"); lblTicker.setIcon(ico); Form frm=new Form(); frm.addComponent(lblTicker); frm.show(); //finally lblTicker.startTicker(100, true);
- Calendar
Display.init(this); Calendar c=new Calendar(); btn=new Button("Select Date"); Label lblDate=new Label(); Form frm=new Form(); frm.addComponent(lblDate); frm.addComponent(c); frm.show();
0 comments:
Post a Comment