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

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

    final XYBarChartDemo3 demo = new XYBarChartDemo3("XY Bar Chart Demo 3");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

/**
 * The starting point for the demo./* w w w.j a v a  2s  . co m*/
 * 
 * @param args  ignored.
 * 
 * @throws IOException  if there is a problem saving the file.
 */
public static void main(final String[] args) throws IOException {

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

}

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

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

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

}

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

public static void main(String args[]) {
    XYBarChartDemo5 xybarchartdemo5 = new XYBarChartDemo5("US Budget Deficit");
    xybarchartdemo5.pack();//  ww w  . ja  va  2s . c o  m
    RefineryUtilities.centerFrameOnScreen(xybarchartdemo5);
    xybarchartdemo5.setVisible(true);
}

From source file:demo.BarChartDemo11.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*from ww w .j  a  v  a 2 s  . com*/
 */
public static void main(String[] args) {
    BarChartDemo11 demo = new BarChartDemo11("JFreeChart: BarChartDemo11.java");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

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

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

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

}

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

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

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

}

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

public static void main(String args[]) {
    SlidingCategoryDatasetDemo1 slidingcategorydatasetdemo1 = new SlidingCategoryDatasetDemo1(
            "JFreeChart: SlidingCategoryDatasetDemo1.java");
    slidingcategorydatasetdemo1.pack();/*from  w  ww .j  a  va2s  .  co  m*/
    RefineryUtilities.centerFrameOnScreen(slidingcategorydatasetdemo1);
    slidingcategorydatasetdemo1.setVisible(true);
}

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

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

    final StackedBarChartDemo1 demo = new StackedBarChartDemo1("Stacked Bar Chart Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    StackedBarChart3DDemo5 stackedbarchart3ddemo5 = new StackedBarChart3DDemo5(
            "JFreeChart - Stacked Bar Chart 3D Demo 5");
    stackedbarchart3ddemo5.pack();/*from   w  ww.  j  av a 2  s.  c  o  m*/
    RefineryUtilities.centerFrameOnScreen(stackedbarchart3ddemo5);
    stackedbarchart3ddemo5.setVisible(true);
}