Encontre o centro de gráficos de tela G

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
  int height = screenSize.height;
  int width = screenSize.width;
Helpful Hare