Object[] oArr = LeaderLineStyle.VALUES.toArray( ); for ( int i = 0; i < oArr.length; i++ ) { cmbLeaderLine.add( ( (LeaderLineStyle) oArr[i] ).getName( ) ); if ( ( (LeaderLineStyle) oArr[i] ).equals( series.getLeaderLineStyle( ) ) ) { cmbLeaderLine.select( i ); } } if ( cmbLeaderLine.getSelectionIndex( ) == -1 ) { cmbLeaderLine.select( 0 ); }
NameSet ns = LiteralHelper.leaderLineStyleSet; cmbLeaderLine.setItems( ns.getDisplayNames( ) ); cmbLeaderLine.select( ns.getSafeNameIndex( series.getLeaderLineStyle( ) .getName( ) ) );
	private void populateLists( )	{		Object[] oArr = LeaderLineStyle.VALUES.toArray( );		for ( int i = 0; i < oArr.length; i++ )		{			cmbLeaderLine.add( ( (LeaderLineStyle) oArr[i] ).getName( ) );			if ( ( (LeaderLineStyle) oArr[i] ).equals( series.getLeaderLineStyle( ) ) )			{				cmbLeaderLine.select( i );			}		}		if ( cmbLeaderLine.getSelectionIndex( ) == -1 )		{			cmbLeaderLine.select( 0 );		}	}