a) No need to get the screen center point, just call setLocationRelativeTo(null) on the JFrame instance (typically do this after calling pack so the JFrame can use the layouts to size its components...