tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/5438-set-monitor-for-extensionsInfinite Kind: Discussion 2021-07-13T21:40:21Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/491406212021-04-13T18:41:56Z2021-04-13T18:41:56ZSet monitor for extensions<div><p>Seems odd. Are you using swing? Perhaps post the skeleton code you are using to create a window and open it?</p></div>Stuart Beesley (Mr Toolbox)tag:infinitekind.tenderapp.com,2009-01-14:Comment/491406212021-04-13T21:37:08Z2021-04-13T21:37:08ZSet monitor for extensions<div><p>I don't know of any way that Moneydance could provide this ability as we don't pay attention to which is the "active" monitor (or even if there is any such thing that we can access). When we display a window we either centre it on the screen or display it with relative coordinates to another window.</p>
<p>I expect you could call some awt code to get the coordinates of a specific display and center the window on it, as in the example code for GraphicsDevice: <a href="https://docs.oracle.com/javase/7/docs/api/java/awt/GraphicsDevice.html">https://docs.oracle.com/javase/7/docs/api/java/awt/GraphicsDevice.html</a></p>
<p>Thanks,<br>
Sean</p>
<p>--<br>
Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="https://infinitekind.com">https://infinitekind.com</a></p></div>Sean Reilly