1) A plugin creates a dialog by implementing the class DialogWrapper and its createCenterPanel() method.
2) The plugin runs on a workstation with 2 monitors. IntellIJ is maximized on the second monitor.
The plugin window is created on the first monitor, instead of being created at the center of the second monitor. Note that IntelliJ dialogs in general are not subject to this problem. For instance, the "Go to / class" dialog is correctly displayed at the center of the IntelliJ window, even when the IntelliJ window is on the second monitor.
A plugin that exhibits this behavior is the excellent TabSwitch plugin created by Timur, see: https://sourceforge.net/projects/tz-ip/
Is there some other API that can used by plugins to achieve this goal, or if this is a problem with the IntelliJ open API, is there any work-around?