question: public void listBattle ( final List < String > steps ) { if ( ! SwingUtilities . isEventDispatchThread ( ) ) { throw new IllegalStateException ( "Not in dispatch thread" ) ; } synchronized ( m_mutex ) { m_listModel . removeAllElements ( ) ; final Iterator < String > iter = steps . iterator ( ) ; while ( iter . hasNext ( ) ) { m_listModel . addElement ( iter . next ( ) ) ; } m_listSelectionModel . hiddenSetSelectionInterval ( 0 ) ; if ( ! steps . contains ( m_targetStep ) ) { m_targetStep = null ; } } validate ( ) ; }
target:  Set the steps given, setting the selected step to the first step.