public void addIcon ( Object icon , int iIndex ) { if ( m_rgIcons == null ) { m_rgIcons = new ImageIcon [ MAX_ICONS ] ; m_timer = new javax . swing . Timer ( 500 , this ) ; // Remind me to change graphics every 1/2 second m_timer . start ( ) ; } if ( iIndex < MAX_ICONS ) if ( icon instanceof ImageIcon ) // Always m_rgIcons [ iIndex ] = ( ImageIcon ) icon ; }
Add this icon to the list of icons alternating for this label .