Java JFrame Create createIFrame(String name)

Here you can find the source of createIFrame(String name)

Description

create I Frame

License

Open Source License

Declaration

public static JInternalFrame createIFrame(String name) 

Method Source Code

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

import java.beans.PropertyVetoException;

import javax.swing.JInternalFrame;

public class Main {
    public static JInternalFrame createIFrame(String name) {
        JInternalFrame iFrame = new JInternalFrame(name, true, true, true, true);
        iFrame.setBounds(0, 0, 400, 400);
        // iFrame.requestFocusInWindow();
        iFrame.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);
        // iFrame.toFront();
        try {//  w w  w  .  java  2  s .c o  m
            iFrame.setSelected(true);
        } catch (PropertyVetoException e1) {
            e1.printStackTrace();
        }
        iFrame.setVisible(true);
        return iFrame;
    }
}

Related

  1. createFrame()
  2. createFrame(Container content)
  3. createFrame(String str, int height, int width)
  4. createFrame(String title)
  5. createFrame(String title, JPanel panel)
  6. createImageFrame(Image image)
  7. createNewFrame(String frameName, int width, int height, boolean visible)
  8. createSearchFrame()
  9. createSimpleFrame(String title, Component content)