Java JFrame getjFrame(int width, int height)

Here you can find the source of getjFrame(int width, int height)

Description

getj Frame

License

Apache License

Declaration

static JFrame getjFrame(int width, int height) 

Method Source Code


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

import javax.swing.*;

public class Main {
    private static final String WINDOW_TITLE = "Tablesaw";

    static JFrame getjFrame(int width, int height) {
        JFrame frame = new JFrame(WINDOW_TITLE);
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        frame.setLocationRelativeTo(null);
        frame.setSize(width, height);//from w  ww  . j a v a 2 s .  c o  m
        return frame;
    }
}

Related

  1. fullScreen(JFrame window)
  2. fullScreenUsingMaximise(JFrame w)
  3. fullScreenWithAPI(JFrame w)
  4. getFileSelection(JFrame parent, boolean onlyDirectories, String startingDir)
  5. getJFrame(Component cmp)
  6. getJFrame(JPanel panel, String title, int width, int height)
  7. getJFrame(Window window)
  8. getJFrameOfComponent(Component cmpnt)
  9. getModalDlg(JFrame frame, String title)