public static void showChartFrame(ApplicationFrame chartFrame) { chartFrame.pack(); RefineryUtilities.positionFrameRandomly(chartFrame); chartFrame.setVisible(true); }
demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); RefineryUtilities.positionFrameRandomly(demo); RefineryUtilities.positionFrameOnScreen(demo, 1, 0); if (visible) {
/** * Shows / updates the displayed graph. */ public void showMe() { boolean shown; synchronized(this) { shown = isShown; if (!isShown) { isShown = true; } } if(!shown) { this.pack(); RefineryUtilities.centerFrameOnScreen(this); RefineryUtilities.positionFrameRandomly(this); RefineryUtilities.positionFrameOnScreen(this, 1, 0); this.setVisible(true); } }