Hi! I'm gonna start up my J2ME samples sharing. I'm just want to keep you updated with me .
Now , we can move to starting aspect of J2ME .the Installation procedure is Interpreted as well here . You can just follow up the guideline provided and setup your J2ME with netbeans environment.well ,I'm gonna start up my this blog with the samples.
package textboxwithcommands;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.TextBox;
import javax.microedition.midlet.*;
/**
* @author sathishkumarg
*/
public class Midlet extends MIDlet implements CommandListener {
TextBox textBox;
Command command1,command2,command3,command4,command5,command6,command7;
Display display;
public Midlet()
{
display=Display.getDisplay(this);
command1=new Command("Rakesh", Command.SCREEN, 1);
command2=new Command("Parthiban",Command.SCREEN,2);
command3=new Command("KKM",Command.SCREEN,2);
command4=new Command("Suresh", Command.SCREEN, 2);
command5=new Command("Chokkalingam", Command.SCREEN, 2);
command6=new Command("Kanimozhi", Command.SCREEN,2);
command7=new Command("Murali", Command.SCREEN, 2);
}
public void startApp()
{
textBox=new TextBox("Hello App", "This's Rakesh", 100, 0);
textBox.addCommand(command1);
textBox.addCommand(command2);
textBox.addCommand(command3);
textBox.addCommand(command3);
textBox.addCommand(command4);
textBox.addCommand(command5);
textBox.addCommand(command6);
textBox.addCommand(command7);
textBox.setCommandListener(this);
display.setCurrent(textBox);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command c, Displayable d) {
notifyDestroyed();
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
}
Now , we can move to starting aspect of J2ME .the Installation procedure is Interpreted as well here . You can just follow up the guideline provided and setup your J2ME with netbeans environment.well ,I'm gonna start up my this blog with the samples.
package textboxwithcommands;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.TextBox;
import javax.microedition.midlet.*;
/**
* @author sathishkumarg
*/
public class Midlet extends MIDlet implements CommandListener {
TextBox textBox;
Command command1,command2,command3,command4,command5,command6,command7;
Display display;
public Midlet()
{
display=Display.getDisplay(this);
command1=new Command("Rakesh", Command.SCREEN, 1);
command2=new Command("Parthiban",Command.SCREEN,2);
command3=new Command("KKM",Command.SCREEN,2);
command4=new Command("Suresh", Command.SCREEN, 2);
command5=new Command("Chokkalingam", Command.SCREEN, 2);
command6=new Command("Kanimozhi", Command.SCREEN,2);
command7=new Command("Murali", Command.SCREEN, 2);
}
public void startApp()
{
textBox=new TextBox("Hello App", "This's Rakesh", 100, 0);
textBox.addCommand(command1);
textBox.addCommand(command2);
textBox.addCommand(command3);
textBox.addCommand(command3);
textBox.addCommand(command4);
textBox.addCommand(command5);
textBox.addCommand(command6);
textBox.addCommand(command7);
textBox.setCommandListener(this);
display.setCurrent(textBox);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command c, Displayable d) {
notifyDestroyed();
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
}
No comments:
Post a Comment