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:com.raghav.plot.XYSeriesDemo.java

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

    final XYSeriesDemo demo = new XYSeriesDemo("XY Series Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

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

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

public static void main(String args[]) {
    XYLineAndShapeRendererDemo1 xylineandshaperendererdemo1 = new XYLineAndShapeRendererDemo1(
            "XYLineAndShapeRenderer Demo");
    xylineandshaperendererdemo1.pack();/*from  w  w  w . j  a va2s .  c om*/
    RefineryUtilities.centerFrameOnScreen(xylineandshaperendererdemo1);
    xylineandshaperendererdemo1.setVisible(true);
}

From source file:org.jfree.demo.TextBlockDemo.java

/**
 * The starting point for the demo./*from  w  w  w. ja  v a2s.c  om*/
 *
 * @param args  ignored.
 */
public static void main(final String[] args) {

    final TextBlockDemo demo = new TextBlockDemo("TextBlock Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    MouseListenerDemo4 mouselistenerdemo4 = new MouseListenerDemo4("Mouse Listener Demo 4");
    mouselistenerdemo4.pack();/*from  w ww. jav a2s  .  c om*/
    RefineryUtilities.centerFrameOnScreen(mouselistenerdemo4);
    mouselistenerdemo4.setVisible(true);
}

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

public static void main(String args[]) {
    PieChartDemo8 piechartdemo8 = new PieChartDemo8("Pie Chart Demo 8");
    piechartdemo8.pack();/* w ww.  j  av a  2 s.  c  o m*/
    RefineryUtilities.centerFrameOnScreen(piechartdemo8);
    piechartdemo8.setVisible(true);
}

From source file:ttma.client.GUI.StatFinance.java

public static void main(String[] args) {
    StatFinance chart = new StatFinance("Incomes & expenses", "TTMA Incomes & expenses", "Month", "year");
    chart.pack();/*w w  w .  j a  va  2s  .c o m*/
    RefineryUtilities.centerFrameOnScreen(chart);
    chart.setVisible(true);
}

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

public static void main(String args[]) {
    StackedXYAreaRendererDemo1 stackedxyarearendererdemo1 = new StackedXYAreaRendererDemo1(
            "StackedXYAreaRendererDemo1");
    stackedxyarearendererdemo1.pack();//from   w  ww  .  j a v a 2s .  c  o m
    RefineryUtilities.centerFrameOnScreen(stackedxyarearendererdemo1);
    stackedxyarearendererdemo1.setVisible(true);
}

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

public static void main(String args[]) {
    XYStepRendererDemo2 xysteprendererdemo2 = new XYStepRendererDemo2("XYStepRenderer Demo 2");
    xysteprendererdemo2.pack();/*from   ww  w  . j a  v a2  s.  com*/
    RefineryUtilities.centerFrameOnScreen(xysteprendererdemo2);
    xysteprendererdemo2.setVisible(true);
}

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

public static void main(String args[]) {
    XYPointerAnnotationDemo1 xypointerannotationdemo1 = new XYPointerAnnotationDemo1(
            "XYPointerAnnotationDemo1");
    xypointerannotationdemo1.pack();/*from w w w . j a v  a2  s  .  c  o  m*/
    RefineryUtilities.centerFrameOnScreen(xypointerannotationdemo1);
    xypointerannotationdemo1.setVisible(true);
}