O'Reilly logo

LWUIT 1.1 for Java ME Developers by Biswajit Sarkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Style for the future

Earlier in this section, we saw how to use the various methods of Style to specify a component's appearance by setting attributes in the style instance associated with it. Under the new scheme of things, a component will have two styles associated with it and not just one style as at present—one style for the selected (focused) state and the other for the unselected state. For example, at present we use the setBgColor method for setting the background color for the unselected state and the setBgSelectionColor method to set the background color for the selected state. With the new version, there will not be a setBgSelectionColor method, and we will need to use the setBgColor method for the two distinct style instances.

The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required