This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser dialog - How to setLocation?  RSS feed

 
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
Boost this thread!