graphDef.setSmallFont(new Font("Monospaced", Font.PLAIN, 11)); graphDef.setLargeFont(new Font("SansSerif", Font.BOLD, 14));