I'm developing an Eclipse Plug-in. There is one JFrame popup which user can choose settings.
My problem is to show this window in the center of Eclipse, as Eclipse does when you want to quit, it says "Confirm Exit", in the center of the screen.
Please note that user may use multiple monitors. setLocationRelativeTo(null) doesn't work for this.
I've found one solution for multiple monitors How do I center a JDialog on screen?, Jean's answer. However it's quite long and I thought Eclipse PDE should have a component that I can use setLocationRelativeTo.
Thanks!