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 ) ; }
Update the image to the current state .