Hi, I have a midlet. In that I created object that extends
Canvas.In that canvas I added one command,when I click that
command the control is not coming to CommandAction() method
of that canvas. Can u suggest me any solution for this?
Answers were Sorted based on User's Feedback
Answer / sacihn
implements CommandListener and then
setCommandListener(this);
then control will go to commandAction()
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / oren
Implement CommandListener and set "this" to be a command
listener
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / neel
By the way, If this kind of problem may come if u have not
performed this steps..
1. implement your canvas from CommandListener interface..
2. Add command to canvas addCommand(cmdExit)
3. Resister your command bu using setCommandListener(this);
4. then implement the commandAction(Command c, Displayable
d) method, and provide full implementation for the required
command action..
Thnx..
| Is This Answer Correct ? | 4 Yes | 0 No |
What is PNG ?
Explain CDC ?
What is MIDlet ?
3 Answers Canvas, Indus Logic, Wipro,
What is Foundation Profile ?
What is i-mode
I have a problem wtih a program. The program logic is like this.......... from a class which extends midlet class i create object of a class(say canobj(word)) which extends canvas class by passing a string. the next statement is display.setCurrent(canobj); Everything is fine but the paint(Graphics g) method is not executed. What may the problem. please suggest me the answer.
How to create a mobile phone language or font like Arabic, Chines, Hindu or other(non English )
Explain about Tomcat ?
what is the difference between jad and manifest file?
create a midp application,where user can enter player name and points.the program saves the information to the record using RMS at MIDP device.program should also print out the top 10 player list to the end user.
Explain i-appli ?
Write a Java program to deactivate a cell phone when authentication failed