Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Customizing the look and feel of Command menu items using Java ME

From Wiki
Jump to: navigation, search
Article Metadata
Created: User:Technical writer 2 (05 Oct 2006)
Last edited: lpvalente (11 Aug 2014)


This article demonstrates how to customize the look and feel of Command menu items.}}


There is no way to customize commands using standard LCDUI components.

You can, however, customize your application's GUI with a third-party package; one of the most notable is J2ME Polish, which you can find at
It implements the MVC framework, allowing you to separate your business logic code from the application UI. This means that you can use J2ME Polish components, create new ones based on existing components, and use skins so your application can have different look and feel without making you change the source code. Note, however, that Nokia Technical Support System cannot give support for the tool since it is a third-party framework.

If the standard LCDUI components or the third-party UI packages do not provide an acceptable solution for you, you can create the whole user interface from scratch using the Canvas class. In this case you need to take care of rendering all the UI components on the screen and implementing their behaviour yourself. You also need emulate the user selecting a command by checking the softkey presses instead of using the CommandListener approach.

This page was last modified on 11 August 2014, at 19:02.
102 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.