src/TestUnit/Example/Tree/JOutlookBar.java
@SuppressWarnings("rawtypes")
	public void actionPerformed(ActionEvent e) {
		int currentBar = 0;
		for (Iterator i = this.bars.keySet().iterator(); i.hasNext();) {
			String barName = (String) i.next();
			BarInfo barInfo = (BarInfo) this.bars.get(barName);
			if (barInfo.getButton() == e.getSource()) {
				// Found the selected button
				this.visibleBar = currentBar;
				render();
				return;
			}
			currentBar++;
		}
	}
/**
	 * Invoked when one of our bars is selected
	 */
Invoked when one of our bars is selected
Invoked when one of our bars is selected
@SuppressWarnings("rawtypes")
	public void actionPerformed(ActionEvent e) {
		int currentBar = 0;
		for (Iterator i = this.bars.keySet().iterator(); i.hasNext();) {
			String barName = (String) i.next();
			BarInfo barInfo = (BarInfo) this.bars.get(barName);
			if (barInfo.getButton() == e.getSource()) {
				this.visibleBar = currentBar;
				render();
				return;
			}
			currentBar++;
		}
	}
@ SuppressWarnings ( "rawtypes" ) public void actionPerformed ( ActionEvent e ) { int currentBar = 0 ; for ( Iterator i = this . bars . keySet ( ) . iterator ( ) ; i . hasNext ( ) ; ) { String barName = ( String ) i . next ( ) ; BarInfo barInfo = ( BarInfo ) this . bars . get ( barName ) ; if ( barInfo . getButton ( ) == e . getSource ( ) ) { this . visibleBar = currentBar ; render ( ) ; return ; } currentBar ++ ; } }
Invoked when one of our bars is selected
Invoked when one of our bars is selected
// Found the selected button