List of usage examples for javax.swing JFrame getLocationOnScreen
public Point getLocationOnScreen()
From source file:org.openscience.jmol.app.Jmol.java
protected void setupNewFrame(String state) { JFrame newFrame = new JFrame(); JFrame f = this.frame; Jmol j = new Jmol(null, newFrame, Jmol.this, startupWidth, startupHeight, "", (state == null ? null : f.getLocationOnScreen())); newFrame.show();/*ww w.jav a 2s. c o m*/ if (state != null) { dispose(f); j.viewer.evalStringQuiet(state); } }