Example usage for javax.swing JFrame show

List of usage examples for javax.swing JFrame show

Introduction

In this page you can find the example usage for javax.swing JFrame show.

Prototype

@Deprecated
public void show() 

Source Link

Document

Makes the Window visible.

Usage

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();
    if (state != null) {
        dispose(f);//from   w  w  w.jav  a 2 s .c om
        j.viewer.evalStringQuiet(state);
    }
}

From source file:org.ut.biolab.medsavant.client.view.notify.NotificationsPanel.java

public static void main(String[] argv) {
    JFrame f = new JFrame();
    NotificationsPanel p = new NotificationsPanel();
    for (int i = 0; i < 4; i++) {
        Notification n = new Notification();
        n.setName("Hello World " + i);
        p.addNotification(n);//from w w w . java  2s.co m
    }
    f.add(p);
    f.show();
}