Java JFrame getTheJFrame(String title, int width, int height, int x, int y)

Here you can find the source of getTheJFrame(String title, int width, int height, int x, int y)

Description

get The J Frame

License

LGPL

Declaration

public static JFrame getTheJFrame(String title, int width, int height, int x, int y) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import javax.swing.JFrame;

public class Main {

    public static JFrame getTheJFrame(String title, int width, int height, int x, int y) {
        JFrame jframe = new JFrame(title);
        jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        jframe.setSize(width, height);//from  w ww. jav a  2 s  . c  o m
        jframe.setLocation(x, y);
        jframe.pack();
        jframe.setVisible(true);
        return jframe;
    }
}

Related

  1. getParentJFrame(Container theFrame)
  2. getParentJFrame(java.awt.Container component)
  3. getPersistentExtendedStateMask(JFrame frame)
  4. getRootJFrame(Component c)
  5. getRootJFrame(Component component)
  6. getTopJFrame(Container c)
  7. getUserInput(JFrame _frame, String arg1, String arg2, Object arg3)
  8. getViewMenu(JFrame mainFrame)
  9. giveFrameHalfScreen(final JFrame frame)