public void refresh() {
		// Refresh peer list and property tables.
		peerList.refresh();
		peerPropTable.refresh();
		envTable.refresh();

		// Enable disable buttons.
		btnClearAll.setEnabled(!peerList.isEmpty() && !bSimRunning);
		btnDeletePeer.setEnabled((getCurrentPeerAgent() != null) && !bSimRunning);
		btnSetAsRecv.setEnabled((getCurrentPeerAgent() != null) && !bSimRunning);
		btnClear.setEnabled((results != null) && !bSimRunning);
		btnCopy.setEnabled((results != null) && !bSimRunning);

		// Refresh statistics.
		statDisplay.refresh(results);

		frame.repaint();
	}