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.CompassFormatDemo1.java

public static void main(String args[]) {
    CompassFormatDemo1 compassformatdemo1 = new CompassFormatDemo1("Compass Format Demo");
    compassformatdemo1.pack();/* w  w w .  j  ava  2s.  c  o m*/
    RefineryUtilities.centerFrameOnScreen(compassformatdemo1);
    compassformatdemo1.setVisible(true);
}

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

public static void main(String args[]) {
    WaterfallChartDemo1 waterfallchartdemo1 = new WaterfallChartDemo1("Waterfall Chart Demo");
    waterfallchartdemo1.pack();//from  w w  w.jav a 2s . co  m
    RefineryUtilities.centerFrameOnScreen(waterfallchartdemo1);
    waterfallchartdemo1.setVisible(true);
}

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

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

    final LineChartDemo4 demo = new LineChartDemo4("Line Chart Demo 4");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

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

    final ScatterPlotDemo demo = new ScatterPlotDemo("Scatter Plot Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

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

    final ScatterPlotDemo4 demo = new ScatterPlotDemo4("Scatter Plot Demo 4");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

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

    final CompassDemo2 demo = new CompassDemo2("Compass Demo 2");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.// www  .  j  a  v a2s . c om
 */
public static void main(String[] args) {

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

}

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

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

    final TimeSeriesDemo10 demo = new TimeSeriesDemo10("Time Series Demo 10");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

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

    final WindChartDemo demo = new WindChartDemo("Wind Chart Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    MultipleAxisDemo4 multipleaxisdemo4 = new MultipleAxisDemo4("JFreeChart: MultipleAxisDemo4.java");
    multipleaxisdemo4.pack();/*from  ww w  . j  ava  2s  . c o m*/
    RefineryUtilities.centerFrameOnScreen(multipleaxisdemo4);
    multipleaxisdemo4.setVisible(true);
}