Image in button - j2me
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 Item that looks like a button by extending the CustomItem class . This is a working MIDlet with a good MyButton class: import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.CustomItem