Example usage for javax.swing JFrame JFrame

List of usage examples for javax.swing JFrame JFrame

Introduction

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

Prototype

public JFrame() throws HeadlessException 

Source Link

Document

Constructs a new frame that is initially invisible.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    JFrame frame = new JFrame();
    frame.setFocusableWindowState(false);
}

From source file:Main.java

public static void main(String[] argv) throws Exception {
    JFrame frame = new JFrame();

    frame.setFocusable(false);//w  w w .j a  v a2s .co m

}

From source file:Main.java

public static void main(String[] args) {
    JFrame aWindow = new JFrame();
    aWindow.setBounds(200, 200, 200, 200);
    aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    aWindow.setCursor(Cursor.getPredefinedCursor(Cursor.SW_RESIZE_CURSOR));
    aWindow.setVisible(true);/*from  w ww . jav  a  2 s .  c o m*/
}

From source file:Main.java

public static void main(String[] args) {
    JFrame aWindow = new JFrame();
    aWindow.setBounds(200, 200, 200, 200);
    aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    aWindow.setCursor(Cursor.getPredefinedCursor(Cursor.NW_RESIZE_CURSOR));
    aWindow.setVisible(true);//from www.j av  a  2s.c  o m
}

From source file:Main.java

public static void main(String[] args) {
    JFrame aWindow = new JFrame();
    aWindow.setBounds(200, 200, 200, 200);
    aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    aWindow.setCursor(Cursor.getPredefinedCursor(Cursor.W_RESIZE_CURSOR));
    aWindow.setVisible(true);/*from   w  w  w .  ja v  a 2 s.c o  m*/
}

From source file:Main.java

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

    JDialog dialog = new JDialog(frame, "Dialog");
    dialog.pack();/*from   www.  ja  v a2s. co m*/
    dialog.setVisible(true);
}

From source file:Main.java

public static void main(String[] args) {
    JFrame aWindow = new JFrame();
    aWindow.setBounds(200, 200, 200, 200);
    aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    aWindow.setCursor(Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR));
    aWindow.setVisible(true);//from   w w  w .j a v  a 2  s.c om
}

From source file:Main.java

public static void main(String[] args) {
    JFrame aWindow = new JFrame();
    aWindow.setBounds(200, 200, 200, 200);
    aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    aWindow.setCursor(new Cursor(Cursor.CROSSHAIR_CURSOR));
    aWindow.setVisible(true);/*from  ww  w  . j a v a  2  s  .co m*/
}

From source file:Main.java

public static void main(String[] args) {
    JFrame aWindow = new JFrame();
    aWindow.setBounds(200, 200, 200, 200);
    aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    aWindow.setCursor(Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));
    aWindow.setVisible(true);/*from   w  ww . java 2  s  . c  o m*/
}

From source file:Main.java

public static void main(String[] args) {
    JFrame aWindow = new JFrame();
    aWindow.setBounds(200, 200, 200, 200);
    aWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    aWindow.setCursor(Cursor.getPredefinedCursor(Cursor.NE_RESIZE_CURSOR));
    aWindow.setVisible(true);/* w w  w  .  j a  v a  2  s  . co m*/
}