List of usage examples for org.jfree.chart ChartFrame setTitle
public void setTitle(String title)
From source file:Negocio.Produccion.Planificacion.GanttManager.java
public static ChartFrame getFrameGantt(String titulo, PlanProduccion plan, JDialog parent) { ChartFrame af = new ChartFrame(parent); final IntervalCategoryDataset dataset = createDataset(plan); final JFreeChart chart = createChart(dataset); // add the chart to a panel... final ChartPanel chartPanel = new ChartPanel(chart); af.setTitle(titulo); af.setContentPane(chartPanel);//from w ww . jav a2 s. c o m af.pack(); RefineryUtilities.centerFrameOnScreen(af); return af; }