Como colocar o JFrame no centro da tela usando propriedades JFrame
public frame() {
initComponents();
this.setLocationRelativeTo(null);
}
Godbolt
public frame() {
initComponents();
this.setLocationRelativeTo(null);
}
frame.setLocationRelativeTo(null);