public DefaultListModel<String> selectAllFriendsFromList(String partOfName) {
	String searchText = partOfName.toLowerCase();
	DefaultListModel<String> selectedFriendsList = new DefaultListModel<String>();
    for (Friend friend : friendsList) {
      if (friend.getName().toLowerCase().contains(searchText)){
    	  if (friend.isOnline()) {
    		  selectedFriendsList.addElement("<html><font color=green>&nbsp;&nbsp;&nbsp;" + BULLET + "&nbsp;" + friend.getName()
    	            + "</font></html>");
    	      }
    	      else {
    	    	  selectedFriendsList.addElement("<html><font color=gray>&nbsp;&nbsp;&nbsp;" + BULLET + "&nbsp;" + friend.getName()
    	            + "</font></html>");
    	      }
      }
    }
    return selectedFriendsList;
  }