Search code examples
java-memenucommandlwuit

Change command menu background in LWUIT


Can we change Command's background color of the menu in LWUIT ?

and how can I set an icon to the "Menu" generated Command ?

thanks


Solution

  • I will try to explain better than the other post. You can change the style of the Menu using and UIID. There are two ways to do that.

    Easy way. Use the LWUIT Resource editor and create in the Unselected tab, and UIID called Menu. In this UIID you should configure the background color as you wish. You can change more things (like text color, size of the font, etc)

    Hard way, by code. Create a Style object and set it to the Menu.