Example usage for org.jfree.ui RefineryUtilities centerFrameOnScreen

List of usage examples for org.jfree.ui RefineryUtilities centerFrameOnScreen

Introduction

In this page you can find the example usage for org.jfree.ui RefineryUtilities centerFrameOnScreen.

Prototype

public static void centerFrameOnScreen(final Window frame) 

Source Link

Document

Positions the specified frame in the middle of the screen.

Usage

From source file:org.jfree.chart.demo.DrawStringDemo.java

public static void main(String args[]) {
    DrawStringDemo drawstringdemo = new DrawStringDemo("DrawString Demo");
    drawstringdemo.pack();//  ww  w  .  j  a  v  a2 s  .co m
    RefineryUtilities.centerFrameOnScreen(drawstringdemo);
    drawstringdemo.setVisible(true);
}

From source file:r2d2e.solution.moduloteste.teste.GraficoD2.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./* w  ww  .  jav  a2  s  .  co m*/
 */
public static void main(final String[] args) {

    final GraficoD2 demo = new GraficoD2("Grficos");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:org.jfree.chart.demo.DynamicDataDemo2.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.//from  ww  w. jav  a  2  s. com
 */
public static void main(final String[] args) {

    final DynamicDataDemo2 demo = new DynamicDataDemo2("Dynamic Data Demo 2");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:org.jfree.chart.demo.PlotOrientationDemo2.java

/**
 * The starting point for the demo./* ww w . j a va2  s  .c om*/
 * 
 * @param args  ignored.
 */
public static void main(String[] args) {
    PlotOrientationDemo2 demo = new PlotOrientationDemo2("Plot Orientation Demo 2");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:org.jfree.chart.demo.DynamicDataDemo3.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*from   ww  w .  j a  v a  2 s  .  c  o  m*/
 */
public static void main(final String[] args) {

    final DynamicDataDemo3 demo = new DynamicDataDemo3("Dynamic Data Demo 3");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:test.web.JfreeCharDemo1.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*  www.  j  ava2 s . c o  m*/
 */
public static void main(String[] args) {

    // ******************************************************************
    //  More than 150 demo applications are included with the JFreeChart
    //  Developer Guide...for more information, see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    JfreeCharDemo1 demo = new JfreeCharDemo1("JFreeChart: Pie Chart Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:PieChartDemo1.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*from ww  w. j a v a  2  s. c  o m*/
 */
public static void main(String[] args) {

    // ******************************************************************
    //  More than 150 demo applications are included with the JFreeChart
    //  Developer Guide...for more information, see:
    //
    //  >   http://www.object-refinery.com/jfreechart/guide.html
    //
    // ******************************************************************

    PieChartDemo1 demo = new PieChartDemo1("JFreeChart: Pie Chart Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:aplicacion.asterisk.manager.logic.TimeSeriesChartDemo1.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*from  w w  w  .  j  a v a2  s. com*/
 */
public static void main(String[] args) {

    TimeSeriesChartDemo1 demo = new TimeSeriesChartDemo1("Time Series Chart Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:org.hxzon.demo.jfreechart.PieDatasetDemo.java

public static void main(String[] args) {

    PieDatasetDemo demo = new PieDatasetDemo("Pie Dataset Chart Demo");
    demo.pack();/*ww w .  j av a2  s  .  c  o  m*/
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:org.jfree.chart.demo.AnnotationDemo1.java

public static void main(String args[]) {
    AnnotationDemo1 annotationdemo1 = new AnnotationDemo1("Annotation Demo 1");
    annotationdemo1.pack();//from  w w  w .  j av a 2s  .  c  o  m
    RefineryUtilities.centerFrameOnScreen(annotationdemo1);
    annotationdemo1.setVisible(true);
}