protected void setAppropriateNodeSize() {
		int strWidth;
		FontMetrics fm = this.getFontMetrics(this.getFont());
		int nMaxStringWidth = DEFAULT_NODE_WIDTH;
		if (nMaxStringWidth == 0)
			for (int iNode = 0; iNode < m_BayesNet.getNrOfNodes(); iNode++) {
				strWidth = fm.stringWidth(m_BayesNet.getNodeName(iNode));
				if (strWidth > nMaxStringWidth)
					nMaxStringWidth = strWidth;
			}
		m_nNodeWidth = nMaxStringWidth + 4;
		m_nPaddedNodeWidth = m_nNodeWidth + PADDING;
		m_jTfNodeWidth.setText("" + m_nNodeWidth);

		m_nNodeHeight = 2 * fm.getHeight();
		m_jTfNodeHeight.setText("" + m_nNodeHeight);
	}