i dont know the answer for your q. But I have a q for you. How can I include an image in my java program using j2me and then display that on a palm. Do i get these images some where which are compatible with palm OS or how do i go with these? Also i wanna know how do i associate a Command class with my image, lets say if I have a "home" image which when I click should run a command and take me to the home screen. I really appreciate your feedback on this.
Take a look at J2ME API and use a List.
The List class is a Screen containing list of choices.
Most of the behavior is common with class
ChoiceGroup and the common API
is defined in interface Choice.
When a List is present on the display the user can interact with it
indefinitely (for instance, traversing from element to element
scrolling). These traversing and scrolling operations do not cause
application-visible events. The system notifies
the application when some
Command is fired.
The notification of the application is done with
So if you add an element to this List using
you'll see that image on the list. Now all you have to do is to code your CommandListener to handle commands.
Hope it helps,
Thanks for the response. But, my question was what if I do not want to include my image in a List but just want to display it at the bottom of the screen as one of the commands. Like if you want add a command to a form u do
Command helpCommand = new Command("Help", Command.HELP, 1);
Now here i want to add an image instead of a label "Help" to the command cuz palm can only accomodate max 3 commands at the bottom of the screen and I want to display more than that. Is there any other way I could do this.