public static Point centerOnScreen(Dimension d) {

		GraphicsDevice defaultDevice =
			GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
		GraphicsConfiguration config = defaultDevice.getDefaultConfiguration();

		// note: the bounds may be an offset location, such as (0, 512), which would imply that
		//       the x is 0 and the y is offset 512 pixels from the top of a virtual screen bounds
		Rectangle bounds = config.getBounds();
		return center(bounds, d);
	}
Computes the point such that a rectangle with the given size would be centered on the
screen.   The chosen screen in this case is the screen defined by
<pre>
	GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
</pre>

<p>If the given size is too big to fit on the screen in either dimension,
then it will be placed at the 0 position for that dimension.

@param d the size of the rectangle to center
@return the upper-left point of the given centered dimension
@see #centerOnScreen(Component, Dimension)
Ghidra/Framework/Generic/src/main/java/generic/util/WindowUtilities.java