Java JFrame Show showFrame(JFrame frame)

Here you can find the source of showFrame(JFrame frame)

Description

show Frame

License

Open Source License

Declaration

public static void showFrame(JFrame frame) 

Method Source Code

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

import javax.swing.JFrame;

public class Main {
    public static void showFrame(JFrame frame) {
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();/*from  ww  w  .j  ava  2  s. c o  m*/
        frame.setVisible(true);
    }
}

Related

  1. isShowing(JFrame f)
  2. open(JFrame view)
  3. show(JFrame frame)
  4. showAndSaveReportFile(JFrame frmParent, File defaultReportFile, String data)
  5. showDemoFrame(JFrame frame)
  6. showFrame(JFrame frame, JFrame parent)
  7. showHelp(JFrame frame, String path)
  8. showModalFrame(final JFrame newFrame, final JFrame owner)
  9. showOnScreen(int screen, JFrame frame)