Example usage for java.awt Frame show

List of usage examples for java.awt Frame show

Introduction

In this page you can find the example usage for java.awt Frame show.

Prototype

@Deprecated
public void show() 

Source Link

Document

Makes the Window visible.

Usage

From source file:FileChooserDemo.java

public static void main(String[] args) {
    Frame f = new FileChooserDemo();
    f.show();
}

From source file:FontDialog.java

public static void main(String[] args) {
    Frame f = new FontDialog();
    f.show();
}

From source file:ConvolveIt.java

public static void main(String args[]) {
    Frame f = new ConvolveIt();
    f.setTitle("ConvolveIt");
    f.setSize(300, 250);/*from w w  w .j ava2  s.  co  m*/
    f.show();
}

From source file:GraphicsInfo.java

public static void main(String args[]) {
    Frame f = new GraphicsInfo();
    f.setTitle("GraphicsInfo");
    f.setSize(300, 250);/* w  ww  .ja v  a  2  s  .co m*/
    f.show();
}

From source file:HelloWorld.java

public static void main(String[] args) {
    Frame frame = new Frame();
    frame.setSize(640, 480);/* w  w  w .j  a  v  a  2s . co m*/
    frame.setLayout(new BorderLayout());

    Canvas3D canvas = new Canvas3D(null);
    frame.add("Center", canvas);

    SimpleUniverse univ = new SimpleUniverse(canvas);
    univ.getViewingPlatform().setNominalViewingTransform();

    BranchGroup scene = createSceneGraph();
    scene.compile();
    univ.addBranchGraph(scene);

    frame.show();
}

From source file:FileViewer.java

/**
 * The FileViewer can be used by other classes, or it can be used standalone
 * with this main() method./*from  ww  w  .  j a  v  a  2 s .  c  o m*/
 */
static public void main(String[] args) throws IOException {
    // Create a FileViewer object
    Frame f = new FileViewer((args.length == 1) ? args[0] : null);
    // Arrange to exit when the FileViewer window closes
    f.addWindowListener(new WindowAdapter() {
        public void windowClosed(WindowEvent e) {
            System.exit(0);
        }
    });
    // And pop the window up
    f.show();
}

From source file:ShapeMover.java

public static void main(String s[]) {
    Frame f = new Frame("ShapeMover");
    f.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
            System.exit(0);//from  w ww  .  j  a  v a  2 s  . co  m
        }
    });
    Applet applet = new ShapeMover();
    f.add("Center", applet);
    applet.init();
    f.pack();
    f.setSize(new Dimension(550, 250));
    f.show();
}

From source file:WebCrawler.java

public static void main(String argv[]) {
    Frame f = new Frame("WebFrame");
    WebCrawler applet = new WebCrawler();
    f.add("Center", applet);

    /*    Behind a firewall set your proxy and port here!
    *///  ww w  .  j a  va2  s  . c o  m
    Properties props = new Properties(System.getProperties());
    props.put("http.proxySet", "true");
    props.put("http.proxyHost", "webcache-cup");
    props.put("http.proxyPort", "8080");

    Properties newprops = new Properties(props);
    System.setProperties(newprops);
    /**/

    applet.init();
    applet.start();
    f.pack();
    f.show();
}