We know that an attribute can be set for a specific widget by using a
setter method of the
Style class. Let's take a concrete example. In our demo MIDlet, we have manually set background colors for the two labels of the timeteller. We have also defined a different set of background colors for labels in general through the theme. We need to understand which setting takes precedence when conflicting attributes are set in this way.
The API documentation tells us that there are two types of methods for setting attributes. For setting background colors, the methods are
int bgColor) and
int bgColor, boolean override). If the first method is used to manually set the background color of a widget, then ...