by amcgilly » Wed Oct 09, 2013 1:21 am
Robert,
Smart Client, Win XP, Java 6.
I figured out what's going on. The problem only happens when I have dragged my main application window to an external monitor that is to the left of my main monitor. In that situation, -1,-1 coordinates exist so the dialog opens in the top left corner of the main monitor.
JSWindow.setLocation(-1,-1) and JSWindow.setInitialBounds(-1,-1,-1,-1) all do this so I assume that's why it's happening in mod_dialog.
Same thing happens if I use setInitialBounds(JSWindow.DEFAULT, JSWindow.DEFAULT, JSWindow.DEFAULT, JSWindow.DEFAULT) even though the docs say this will cause the window to be initially centered.
Not sure whether to report this as a bug or not - what do you think?
Adrian McGilly
Servoy Developer