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

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

    final SurveyResultsDemo3 demo = new SurveyResultsDemo3("Survey Results Demo 3");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:ChartUsingJava.CombinedCategoryPlotDemo1.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.// w w  w .j  a  va2s. c o m
 */
public static void main(String[] args) {
    String title = "Combined Category Plot Demo 1";
    CombinedCategoryPlotDemo1 demo = new CombinedCategoryPlotDemo1(title);
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

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

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

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

}

From source file:cn.edu.thss.iise.bpmdemo.statistics.actions.ModelReusePanel.java

/**
 * Starting point for the demonstration application.
 *
 * @param args//from  w  ww  .ja v a 2s. c  o m
 *            ignored.
 * @throws IOException
 */
public static void main(final String[] args) throws IOException {
    Log.getInstance().addTarget(new PrintStreamLogTarget());
    final ModelReusePanel demo = new ModelReusePanel("Pie Chart Demo 4",
            "C:\\Users\\chenhz\\Documents\\Thss SVN\\THSS JBPM\\log(new)BPMN\\BPMN2.0\\\\fragment.sta");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:Project.test.JFreeChartDemo.java

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

    JFreeChartDemo demo = new JFreeChartDemo("Time Series Chart Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:required.ChartPlotter.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*from www  . j av  a2s  .com*/
 * @throws IOException 
 * @throws ClassNotFoundException 
 * @throws FileNotFoundException 
 */
public static void main(final String[] args) throws FileNotFoundException, ClassNotFoundException, IOException {

    final ChartPlotter demo = new ChartPlotter("ZipF's Law over CACM data");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:com.seniorproject.augmentedreality.test.AreaChartDemo.java

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

    Log.getInstance().addTarget(new PrintStreamLogTarget());
    final AreaChartDemo demo = new AreaChartDemo("Area Chart Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    CombinedTimeSeriesDemo1 combinedtimeseriesdemo1 = new CombinedTimeSeriesDemo1(
            "JFreeChart: Combined Time Series Demo");
    combinedtimeseriesdemo1.pack();//from   w w w.  j a v a 2  s.  c  o m
    RefineryUtilities.centerFrameOnScreen(combinedtimeseriesdemo1);
    combinedtimeseriesdemo1.setVisible(true);
}

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

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

    OverlaidCategoryChartDemo demo = new OverlaidCategoryChartDemo("Overlaid Category Chart Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    XYDrawableAnnotationDemo1 xydrawableannotationdemo1 = new XYDrawableAnnotationDemo1(
            "JFreeChart: XYDrawableAnnotationDemo1.java");
    xydrawableannotationdemo1.pack();/*  w w w .j a  v  a  2  s  .  c  om*/
    RefineryUtilities.centerFrameOnScreen(xydrawableannotationdemo1);
    xydrawableannotationdemo1.setVisible(true);
}