Java JFrame Create createFrame(String str, int height, int width)

Here you can find the source of createFrame(String str, int height, int width)

Description

create Frame

License

Open Source License

Declaration

public static JFrame createFrame(String str, int height, int width) 

Method Source Code

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

import javax.swing.JFrame;

public class Main {
    public static JFrame createFrame(String str, int height, int width) {
        JFrame frame = new JFrame();
        frame.setSize(width, height);//from   w  ww .  ja  v  a  2 s.co  m
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setTitle(str);
        return frame;
    }
}

Related

  1. createAndShowDemoFrame(final String demoTitle, final Container demoContainer)
  2. createApplicationFrame(String title)
  3. createDemoFrame(String title)
  4. createFrame()
  5. createFrame(Container content)
  6. createFrame(String title)
  7. createFrame(String title, JPanel panel)
  8. createIFrame(String name)
  9. createImageFrame(Image image)