Example usage for javax.swing JFrame setVisible

List of usage examples for javax.swing JFrame setVisible

Introduction

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

Prototype

public void setVisible(boolean b) 

Source Link

Document

Shows or hides this Window depending on the value of parameter b .

Usage

From source file:Main.java

public static void main(String[] args) {
    JFrame frame = new Main();
    frame.setVisible(true);
}

From source file:union.java

public static void main(String[] args) {
    JFrame f = new union();
    f.setVisible(true);
}

From source file:Main.java

public static void main(String[] args) {

    JFrame frame = new JFrame();

    frame.setVisible(true);

    String message = JOptionPane.showInputDialog(frame, "Would this be enough?.", "My dialog asks....",
            JOptionPane.INFORMATION_MESSAGE);

    System.out.println("Got " + message);

    frame.dispose();/*from w w w .jav a2s .  c om*/
}

From source file:Main.java

public static void main(String[] arguments) {
    JFrame frame = new Main();
    frame.setVisible(true);
}

From source file:intersection.java

public static void main(String[] args) {
    JFrame f = new intersection();
    f.setVisible(true);
}

From source file:cz.moz.java.contactmanager.Application.java

public static void main(String args[]) {
    ApplicationContext appContX = new ClassPathXmlApplicationContext("spring/applicationContext.xml");
    JFrame appFrame = appContX.getBean(AppFrame.class);
    appFrame.setVisible(true);
}

From source file:Main.java

public static void main(String[] args) {
    // Create a frame
    JFrame frame = new JFrame("Swing");
    // Display the frame
    frame.setVisible(true);
}

From source file:Main.java

public static void main(String[] args) {
    JFrame f = new Main();
    f.setSize(300, 200);// w  w w  .  ja  v a2  s  .  c o  m
    f.setVisible(true);
}

From source file:DrawStringDemo.java

public static void main(String[] args) {
    JFrame frame = new DrawStringDemo();

    frame.pack();/*  ww  w .  ja  v a 2 s  .  c  o m*/
    frame.setVisible(true);
}

From source file:MyKeyListener.java

public static void main(String[] argv) throws Exception {
    JTextField component = new JTextField();
    component.addKeyListener(new MyKeyListener());

    JFrame f = new JFrame();
    f.setSize(300, 300);/*from w ww. ja  v a  2s .co  m*/
    f.setVisible(true);
}