Why does every JDialog you 'setVisible' is shown on the upper right
corner of the screen? Why isn't it shown on top of the calling
Frame/Dialog? I mean, when you call a new dialog you will expect it to
appear close to where the button on which you clicked. I thought that
passing the JDialog parent in its constructor should do this OK, but I
see it doesn't.
Any suggestion?
Thanks.
Bart Cremers - 12 Apr 2006 10:57 GMT
use JDialog.setLocationRelativeTo(Component) to change the location.
Call this method just before your call to setVisible().
Bart