I am trying to build a simple menu-based GUI with J2ME. The menu entries are currently objects of classes derived from the class Button. Is there any way I can:
-
Replace the text in the button and have an image show instead, sort of an icon?
-
Make the text and image appear side by side on the same menu bar.
If my question is not clear, please let me know and I will edit it.
You can create your own
Itemthat looks like a button by extending theCustomItemclass.This is a working MIDlet with a good
MyButtonclass: