System.out.println("size = " + getSize()); blockView = new BlockDiagramView((int)( getSize().width * 2.0 / 3.0 ), getSize().height, blockModel);
int diagramWidth = contentSize.width - CallDetailsView.PREFERRED_WIDTH - DIAGRAM_WIDTH_FUDGE_FACTOR; int diagramHeight = contentSize.height;  Dimension diagramSize = new Dimension(diagramWidth, diagramHeight);  System.out.println("size = " + diagramSize); blockView = new BlockDiagramView(diagramSize.width, diagramSize.height, blockModel);
	private void setCallGraph(CallGraph cg)	{		if ( pnlContent != null )		{			getContentPane().remove(pnlContent);							blockView.cvsDispose();			blockModel.dispose();			blockModel = null;			blockView = null;			pnlContent = null;			System.gc();		}					blockModel = new BlockDiagramModel(cg);		blockModel.addListener(new PropertyChangeListener()			{				public void propertyChange(PropertyChangeEvent evt)				{					if ( BlockDiagramModel.RENDER_CALL_PROPERTY.equals(evt.getPropertyName()) )					{						enableControls();						callDetails.selectedCallChanged(blockModel.getRootRenderState().getRenderCall(),														blockModel.getSelectedCall());					}					else if ( BlockDiagramModel.SELECTED_CALL_PROPERTY.equals(evt.getPropertyName()) )					{						Call selectedCall = (Call)evt.getNewValue();						callDetails.selectedCallChanged(blockModel.getRootRenderState().getRenderCall(),														selectedCall);					}					else if ( BlockDiagramModel.NUM_LEVELS_PROPERTY.equals(evt.getPropertyName()) )					{						int levels = ((Integer)evt.getNewValue()).intValue();						if ( levels > depthSlider.getMaximum() )							depthSlider.setMaximum(depthSlider.getMaximum() + 5);						depthSlider.setValue(levels);					}				}			});		blockModel.setLevels(depthSlider.getValue());		System.out.println("size = " + getSize());		blockView = new BlockDiagramView((int)( getSize().width * 2.0 / 3.0 ), getSize().height, blockModel);		callDetails = new CallDetailsView()			{				public void callerSelected(String callerName)				{					selectSelectionCaller(callerName);				}				public void calleeSelected(String calleeName)				{					selectSelectionCallee(calleeName);				}			};		pnlContent = new ContentPanel(blockView, callDetails);		getContentPane().add(pnlContent, BorderLayout.CENTER);		pack();		blockView.requestFocus();		enableControls();	}