Java JFrame setGeneralParameters(final JFrame window)

Here you can find the source of setGeneralParameters(final JFrame window)

Description

set General Parameters

License

Open Source License

Declaration

public static void setGeneralParameters(final JFrame window) 

Method Source Code


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

import javax.swing.*;

public class Main {
    public static void setGeneralParameters(final JFrame window) {
        window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        window.validate();/*from  w  w  w . ja  v  a2s. c  o  m*/
        window.pack();
        window.setVisible(true);
    }
}

Related

  1. setEscapeClosable(JFrame frame)
  2. setESCCloseable(final JFrame aFrame)
  3. setFrameBottomRight(final JFrame frame)
  4. setFramePositon(JFrame inTargetFrame)
  5. setFrameTitle(JFrame frame, File file)
  6. setInfo(String info, JFrame root)
  7. setJFrameAlwaysOnTop(JFrame frame, boolean newValue)
  8. setMainWindowLocation(JFrame jfrm, String strPropertiesFilePath, String strPropertiesFileName)
  9. setPanel(JPanel parent, JPanel child, JFrame f)