Added frame.setLocationRelativeTo(null)

this centers the frame :)