@Override
	public void setVisible(boolean b) {
		if (b) {
			WindowUtilities.ensureOnScreen(this);
		}
		super.setVisible(b);
	}
Centers the dialog in the screen.
Ghidra/Framework/Docking/src/main/java/docking/DockingDialog.java