Rectangle2D screenBounds = currentScreen.getBounds(); double screenCenterX = screenBounds.getMinX() + screenBounds.getWidth()/2 ; double screenCenterY = screenBounds.getMinY() + screenBounds.getHeight()/2 ; 

Read more of this post