* Login   * Register


Last visit was:
It is currently Tue Feb 20, 2018 10:49 pm
View unanswered posts
View active topics





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Button trong Java ME
PostPosted: Sun May 31, 2009 2:45 pm 
Offline

Joined: Thu Feb 05, 2009 11:45 am
Posts: 11
---------
Cú pháp button trong Java ME:
public class Demo extends MIDlet implements CommandListener
{
protected Display ds;
protected Command cmdOK;
protected Form frmForm;
public Demo
{
ds=Display.getDisplay(this);
cmdOk=new Command("OK",Command.SCREEN,1);
frmForm.addCommand(cmdOK);
frmMain.setCommandListener(this);
}
public void startApp()
{
ds.setCurrent(frmForm);
}
public void destroyApp(boolean dk
{

}
public void pauseApp()
{

}
}


Report this post
Top
 Profile E-mail  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Free Forum · php-BB© · Internationalization Project · Report abuse · Terms Of Use/Privacy Policy
© Forums-Free.com 2009