This application creates a combo box and uses a theme to set the style for the various elements that are displayed. When the application is compiled without setting a custom background painter, the combo box looks as shown in the following screenshot:
The MIDlet code has the following statement commented out in the MIDlet. When uncommented, this statement sets an instance of
ComboBgPainter as the background painter for the combo box.
The recompiled application produces the following display showing the new background color:
The class responsible for drawing ...