May be you can try this method : setLocationRelativeTo (null);
This method make your Frame to center align...