Search code examples
javajava-mecomboboxlwuitlwuit-resource-editor

LWUIT ComboBox popup theming problem


I want to customize the look of the ComboBox pop-up list in LWUIT. Nonetheless when I tried to change the ComboBox, ComboBoxFocus, ComboBoxItem, ComboBoxList, ComboBoxPopup components in LWUIT Theme Creator, nothing happened. The popup preview in Theme Creator still shows the pop-up in black text on white background. Am I missing something? How to change the theme of this pop-up? I am using LWUIT 1.4


Solution

  • Use the following styles in LWUIT resource edit,

    • Unselected#ComboBoxItem#Color for unfocused list Item.
    • Unselected#ComboBoxPopup#Color for unfocused list Item.
    • Selected#ComboBoxItem#Color for focused list Item.

    Note: uncheck derive checkbox and change the fore color or background color. Because its use default style When the derive checkbox is selected.