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

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored.//  ww w .  j  a v a  2  s  .  co m
 */
public static void main(final String[] args) {
    final CompassFormatDemo demo = new CompassFormatDemo("Compass Format Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);
}

From source file:j2se.jfreechart.barchart.BarChartDemo8.java

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

    final BarChartDemo8 demo = new BarChartDemo8("Bar Chart Demo 8");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

From source file:NewChart.java

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

From source file:Perfil_Deportivo.TimeSeriesChartDemo1.java

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

    TimeSeriesChartDemo1 demo = new TimeSeriesChartDemo1("Time Series  lineas Chart Demo 1 by andres2288");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*w w w. ja va2 s  .  co m*/
 */
public static void main(final String[] args) {

    final TimePeriodValuesDemo demo = new TimePeriodValuesDemo("Time Period Values Demo 1");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

public static void main(String args[]) {
    GanttDemo3 ganttdemo3 = new GanttDemo3("Gantt Chart Demo 3");
    ganttdemo3.pack();/*from   ww w .  ja  v a 2 s  .co  m*/
    RefineryUtilities.centerFrameOnScreen(ganttdemo3);
    ganttdemo3.setVisible(true);
}

From source file:siris.applications.basicexample.TimeSeriesChartDemo1.java

/**
 * Starting point for the demonstration application.
 *
 * @param args  ignored./*  w w w  . j  a v  a2s  . co  m*/
 */
public static void main(String[] args) throws InterruptedException {

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

    s1.add(new Month(3, 2001), 167.3);
    Thread.sleep(300);
    s1.add(new Month(4, 2001), 153.8);
    Thread.sleep(300);
    s1.add(new Month(5, 2001), 167.6);
    Thread.sleep(300);
    s1.add(new Month(6, 2001), 158.8);
    Thread.sleep(300);
    s1.add(new Month(7, 2001), 148.3);
    Thread.sleep(300);
    s1.add(new Month(8, 2001), 153.9);
    Thread.sleep(300);
    s1.add(new Month(9, 2001), 142.7);
    Thread.sleep(300);
    s1.add(new Month(10, 2001), 123.2);
    Thread.sleep(300);
    s1.add(new Month(11, 2001), 131.8);
    Thread.sleep(300);
    s1.add(new Month(12, 2001), 139.6);
    Thread.sleep(300);
    s1.add(new Month(1, 2002), 142.9);
    s1.add(new Month(2, 2002), 138.7);
    s1.add(new Month(3, 2002), 137.3);
    s1.add(new Month(4, 2002), 143.9);
    s1.add(new Month(5, 2002), 139.8);
    s1.add(new Month(6, 2002), 137.0);
    s1.add(new Month(7, 2002), 132.8);

}

From source file:com.experiments.DynamicDataDemo.java

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

    final DynamicDataDemo demo = new DynamicDataDemo("Dynamic Data Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}

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

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

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

}

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

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

    final MultiplePieChartDemo4 demo = new MultiplePieChartDemo4("Multiple Pie Chart Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

}