Java JFrame abrirJFrameCentralizado(JFrame dialog)

Here you can find the source of abrirJFrameCentralizado(JFrame dialog)

Description

abrir J Frame Centralizado

License

Open Source License

Declaration

public static void abrirJFrameCentralizado(JFrame dialog) 

Method Source Code

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

import javax.swing.JFrame;

public class Main {
    public static void abrirJFrameCentralizado(JFrame dialog) {

        dialog.setLocationRelativeTo(null);
        dialog.setVisible(true);//from   www. j ava  2  s.co  m
    }
}

Related

  1. activateWindowClosingButton(JFrame frame)
  2. addDisposeActionWithEscapeKey(final JFrame frame)
  3. addEscapeExitListeners(final JFrame window)
  4. addEscapeListener(final JFrame frame)