Como Abrir janela no centro da tela?
JFrame frame = new JFrame(“Lista”);
frame.setVisible(true);
frame.setSize(500,400);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Obrigado,
Como Abrir janela no centro da tela?
JFrame frame = new JFrame(“Lista”);
frame.setVisible(true);
frame.setSize(500,400);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Obrigado,
setLocationRelativeTo(null);
Deu Certo, obrigado!