List of usage examples for org.jfree.chart.ui RefineryUtilities centerFrameOnScreen
public static void centerFrameOnScreen(final Window frame)
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); }