So far our theme file has specified attributes for the standard components supported by the library. It is possible to use theming for custom components too. To try this out, we shall use the
TimeTeller component that we had created in Chapter 8. The two interfaces and the two classes that together make up that component have been put into a package named book.newcomp to make the code better organized. A timeteller is added to the form by uncommenting the relevant statements shown in the MIDlet code snippet listed earlier in this chapter. However, note that we have not set any style for the timeteller instance.
Without any entry for
TimeTeller in the theme file, the screen looks similar to the following screenshot: