Java JFrame Create createFrame()

Here you can find the source of createFrame()

Description

create Frame

License

Open Source License

Declaration

static JFrame createFrame() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.swing.*;

public class Main {
    static JFrame createFrame() {
        JFrame frame = new JFrame();
        frame.setSize(400, 400);/*from   w w w .j  ava  2  s .c o  m*/
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.setTitle("Example");
        return frame;
    }
}

Related

  1. createAndShowDemoFrame(final String demoTitle, final Container demoContainer)
  2. createApplicationFrame(String title)
  3. createDemoFrame(String title)
  4. createFrame(Container content)
  5. createFrame(String str, int height, int width)
  6. createFrame(String title)
  7. createFrame(String title, JPanel panel)