File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes JFileChooser dialog - How to setLocation? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "JFileChooser dialog - How to setLocation?" Watch "JFileChooser dialog - How to setLocation?" New topic
Author

JFileChooser dialog - How to setLocation?

Amit Rosner
Greenhorn

Joined: Dec 03, 2001
Posts: 22
Hi!
I want to use JFileChoose dialog, but I can't find
out how to set its location. In java.sun.com it only says in the description of showDialog(Component parent, String approveButtonText) :
If the parent is a component, then the dialog depends on the frame containing the component, and is positioned relative to the component (for example, centered over the component)

Yet - I want to set the location specifically with a Point, just like setLocation(Point p) in java.awt.Component
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Have you tried setLocation.
 
IntelliJ Java IDE
 
subject: JFileChooser dialog - How to setLocation?
 
Threads others viewed
Frame.getLocation() slow to update - need realtime position
Two Questions
Is it possible to popup a dialog from Applet?
Can't set the Location of FileDialog
jess
IntelliJ Java IDE