Example usage for org.jfree.chart.ui RefineryUtilities centerFrameOnScreen

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

Introduction

In this page you can find the example usage for org.jfree.chart.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.selection.SelectionDemo8.java

/**
 * Starting point for the demonstration application.
 * //w  ww.ja  v a2  s .c  om
 * @param args  ignored.
 */
public static void main(String[] args) {
    SelectionDemo8 demo = new SelectionDemo8("JFreeChart: SelectionDemo8");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}