}
private void updateGraph(){
//updates the Graph
DistributionDensity dist = sop.getDist();
graphHolder.removeAll();
int type = graphType.getSelectedIndex();
if (type != DistributionDensity.TYPE_NONE && dist != null) {
dist.setType(type);
graph = new DistributionDensityGraph(dist);
graph.setToolTipText("Displays desired graph. Right click to 'Save As' and double click to enlarge.");
graph.setMinimumSize(new Dimension(200, 150));
graph.setPreferredSize(new Dimension(300, 250));
graphHolder.add(graph);