Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

jfilechooser trouble

Thread view: 
tiewknvc9 - 02 Dec 2005 22:13 GMT
Hi,

Im using a JFileChooser, and when I call setLocation ( iXLocation,
iYLocation);  nothing happens!

Is there something i need to refresh to get the window to move?
Currently it opens in the middle of the screen, but the project runs on
2 connected screens, making the middle of it irritatingly divided by
the sides of the monitors...

thanks for the help
zero - 03 Dec 2005 00:09 GMT
"tiewknvc9" <aotemp@hotmail.com> wrote in news:1133561627.726351.68480
@z14g2000cwz.googlegroups.com:

> Hi,
>
[quoted text clipped - 7 lines]
>
> thanks for the help

Did you call setLocation before showing the dialog?  If that doesn't work
(and it probably won't, but try it anyway) you'll probably have to extend
JFileChooser and override createDialog.  There's an example which should
show you all you need at the JFileChooser javadoc:

http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFileChooser.html

Look at the explanation of createDialog.

Signature

Beware the False Authority Syndrome



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.