public DefaultListModel<String> selectOnlineFriendsFromList(String partOfName) {
	String searchText = partOfName.toLowerCase();
	DefaultListModel<String> selectedFriendsList = new DefaultListModel<String>();
    for (Friend friend : friendsList) {
      if (friend.getName().toLowerCase().contains(searchText) && friend.isOnline())
        selectedFriendsList.addElement(BULLET + friend.getName());
    }
    return selectedFriendsList;
  }