JFRAME CENTERLAISISIERT
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
Nice Newt
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);