private void queryForGraph(int selectedBook) {
		//Create a new graph.
		generateGraphView(selectedBook);
		
		//Clear any prior contents and then add the graph to the panel.
		forceDirectedNetwork = new JPanel();
		forceDirectedNetwork.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		forceDirectedNetwork.setBounds(0, 0, 1584-300, 762);
		forceDirectedNetwork.setLayout(null);
		if(currentForceDirectedGraph != null){
			forceDirectedNetwork.remove(currentForceDirectedGraph);
		}
		currentForceDirectedGraph = g.getDisplayGraph();
		if(chckbxVisualization.isSelected()){
			contentPane.add(forceDirectedNetwork);
		}
		else {
			contentPane.add(graphTextPane);
		}
		updateGraphInterface();
	}