geneNamesDrawer.updateSize();
Graphics g = geneNamesDrawer.getGraphics(); if(g!=null) { geneNamesDrawer.updateSize(g); g.dispose(); }
	public void updateSize() {		pinkOGramWidth = getXPixPerUnitAsInt() * nx;		pinkOGramHeight = getYPixPerUnitAsInt() * ny;		int totalWidth = pinkOGramWidth;		if(sampleTree != null) {			sampleTree.setLeafNodeSpacing(0, Math.abs(getYPixPerUnitAsInt()));			sampleTree.setPreferredSize(new Dimension(pinkOGramWidth, 200));		}		if(geneTree != null) {			int tWidth = 200;			geneTree.setLeafNodeSpacing(0, getXPixPerUnitAsInt());			geneTree.setPreferredSize(new Dimension(tWidth, pinkOGramHeight));			geneTree.setMaximumSize(new Dimension(tWidth, pinkOGramHeight));			geneTree.setMinimumSize(new Dimension(tWidth, pinkOGramHeight));			geneTree.setSize(new Dimension(tWidth, pinkOGramHeight));		}		setPreferredSize(new Dimension(pinkOGramWidth, pinkOGramHeight));		setMaximumSize(new Dimension(pinkOGramWidth, pinkOGramHeight));		setMinimumSize(new Dimension(pinkOGramWidth, pinkOGramHeight));		setSize(pinkOGramWidth, pinkOGramHeight);		geneNamesDrawer.updateSize();		totalWidth += geneNamesDrawer.getWidth();		int leftGutter = 0;		if(geneTree != null) {			leftGutter = geneTree.getPreferredSize().width;			totalWidth += leftGutter;		}		topPanel.setBorder(new javax.swing.border.EmptyBorder(0, leftGutter, 0, 0));		int height = header.updateSize(getXPixPerUnitAsInt() * nx);		header.setPreferredSize(new Dimension(totalWidth, height + 4));		header.setSize(new Dimension(totalWidth, height + 4));		if(sampleNamesDrawer != null) {			sampleNamesDrawer.updateSize(totalWidth);		}		topPanel.revalidate();		pink_geneTree_sampleTreePanel.repaint();		sampleNamesDrawer.revalidate();		sampleNamesDrawer.doLayout();		(((SrollablePanel)				pink_geneTree_sampleTreePanel)).setHeight(pinkOGramHeight);		pink_geneTree_sampleTreePanel.revalidate();		headerPanel.repaint();		scrollPane.revalidate();		scrollPane.getViewport().doLayout();		scrollPane.doLayout();		scrollPane.repaint();	}