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 and the fly likes JFileChooser dialog - How to setLocation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFileChooser dialog - How to setLocation?
 
Similar Threads
jess
Frame.getLocation() slow to update - need realtime position
Is it possible to popup a dialog from Applet?
Can't set the Location of FileDialog
Two Questions