code: public void updateImage()
      {
          if (m_iCurrentState == ON)
              this.setIcon(m_iconOn);
          else if (m_iCurrentState == OFF)
              this.setIcon(m_iconOff);
          else
              this.setIcon(m_iconNull);
      }
docs: Update the image to the current state.