Example usage for org.jfree.chart ChartFrame setTitle

List of usage examples for org.jfree.chart ChartFrame setTitle

Introduction

In this page you can find the example usage for org.jfree.chart ChartFrame setTitle.

Prototype

public void setTitle(String title) 

Source Link

Document

Sets the title for this frame to the specified string.

Usage

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;

}