The MultipleStateIconLabel is used for storing a set of icons inside
the same IconLabel. One or another of the icons can be displayed whenever
required, depending on the status of the system environment. The icons are
related to a specific status code, and the application or any operation can
request the MultipleStateIconLabel activate to display the icon related to
a specific status code. This is particularly useful for displaying the statuses
of communications and devices.
To activate or show a specific icon, the
application or an operation can use code like the following example:
((MultipleStateIconLabel)((Desktop)Desktop.getDesktop()).getComponentByName(
"TRAFFIC_LIGHT")).setState("ON");