why can't I set location of FileDialog?
ilantalNov 25 2010 — edited Jan 25 2011I have the following code:
FileDialog dlg = new FileDialog(parent, "Save MIP", FileDialog.SAVE);
dlg.setLocationRelativeTo(parent);
dlg.setVisible(true);
I can see under the debugger that dlg has a location of 0,0 before setLocationRelativeTo(parent) and afterwards has a location which looks reasonable to me. Still when I call setVisible, the dialog appears at 0,0. Any explanations or ideas what can be done?
Thanks,
Ilan