How do I center a java.awt.FileDialog on the screen
Posted
by Software Monkey
on Stack Overflow
See other posts from Stack Overflow
or by Software Monkey
Published on 2010-03-18T02:11:34Z
Indexed on
2010/03/18
2:21 UTC
Read the original article
Hit count: 442
I have never been able to figure this one out; the usual suspects don't work.
Given:
FileDialog dlg=null;
dlg=new FileDialog(owner,"Select File to Load",FileDialog.LOAD);
dlg.setFile(null);
dlg.setVisible(true);
is there any way to get that dialog centered?
© Stack Overflow or respective owner