public void displayInfo(){
		String myPieces = "";
		String needPieces = "";
		for(int i=0; i < manager.myPieces.length; i++){
			if(manager.myPieces[i]){
				myPieces = myPieces + i + ", ";
			} else {
				needPieces = needPieces + i + ", ";
			}
		}
		myPiecesPanel.havePieces.setText(myPieces);
		neededPiecesPanel.needPieces.setText(needPieces);
		
		//if nothing is selected
		if(peersPanel.peerList.getSelectedIndex() == -1){
			peerInfoPanel.connected.setText("<html><b>Connected:</b> </html>");
			peerInfoPanel.areChoking.setText("<html><b>Choked:</b> </html>");
			peerInfoPanel.areInterested.setText("<html><b>We're Interested:</b> </html>");
			peerInfoPanel.isChoking.setText("<html><b>Is Choking:</b> </html>");
			peerInfoPanel.isInterested.setText("<html><b>They're Interested:</b> </html>");
			peerInfoPanel.theirPieces.setText("Pieces: ");
			return;
		}
		 //when peer is selected
		Peer selectedPeer = peerMap.get(peersPanel.peerList.getSelectedValue());
		
		if(selectedPeer.amConnected()){
			peerInfoPanel.connected.setText("<html><b>Connected:</b> <font color=\"green\"> Yes </font></html>");
		} else {
			peerInfoPanel.connected.setText("<html><b>Connected:</b> <font color=\"red\"> No </font></html>");
		}
		
		if(selectedPeer.amChoking()){
			peerInfoPanel.areChoking.setText("<html><b>Choked:</b> <font color=\"red\"> Choked </font></html>");
		} else {
			peerInfoPanel.areChoking.setText("<html><b>Choked:</b> <font color=\"green\"> Unchoked </font></html>");
		}
		
		if(selectedPeer.amInterested()){
			peerInfoPanel.areInterested.setText("<html><b>We're Interested:</b> <font color=\"green\"> Interested </font></html>");
		} else {
			peerInfoPanel.areInterested.setText("<html><b>We're Interested:</b> <font color=\"red\"> Uninterested </font></html>");
		}
		
		if(selectedPeer.isChoking()){
			peerInfoPanel.isChoking.setText("<html><b>Is Choking Us:</b> <font color=\"red\"> Being Choked </font></html>");
		} else {
			peerInfoPanel.isChoking.setText("<html><b>Is Choking Us:</b> <font color=\"green\"> Unchoked </font></html>");
		}
		
		if(selectedPeer.isInterested()){
			peerInfoPanel.isInterested.setText("<html><b>Is Interested:</b> <font color=\"green\"> Interested </font></html>");
		} else {
			peerInfoPanel.isInterested.setText("<html><b>Is Interested:</b> <font color=\"red\"> Uninterested </font></html>");
		}
		
		String pieces = "";
		for(int i=0; i < selectedPeer.availablePieces.size(); i++){
			pieces = pieces + selectedPeer.availablePieces.get(i) + ", ";
		}
		peerInfoPanel.theirPieces.setText("Pieces: " + pieces);
		
		peerInfoPanel.uploadSpeed.setText("<html><b>Upload Speed:</b> " + selectedPeer.getUploadSpeed() + "</html>");
		peerInfoPanel.downloadSpeed.setText("<html><b>Download Speed:</b> " + selectedPeer.getDownloadSpeed() + "</html>");
	}