• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFileChooser dialog - How to setLocation?

 
Amit Rosner
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried setLocation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic