wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Can JFileChooser select server-side file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Can JFileChooser select server-side file?" Watch "Can JFileChooser select server-side file?" New topic
Author

Can JFileChooser select server-side file?

Tiger Meng
Ranch Hand

Joined: Nov 10, 2002
Posts: 32
Can JFileChooser select server-side file? Or how to select server-side file "OS independently"? My assignment is designed with RMI. Thanks.


SCJP SCJD SCWCD SCMAD
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"meng xx"-
second notice.
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Of course you can, and that should pop up when you run the server, not the client. Right?
Mark
Tiger Meng
Ranch Hand

Joined: Nov 10, 2002
Posts: 32
Originally posted by Mark Spritzler:
Of course you can, and that should pop up when you run the server, not the client. Right?
Mark

no, no, I means i choose the server-side file in client-side. can i use jFileChooser? i hope users can select "*.db" in a Graphic Interface(by jFileChooser), not in command line like "xxx.xxx.xxx.xxx/.../db.db".
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

The client might be on other machines, and it isn't the responsibility of the client to start the server or tell the server where the db.db file is.
The server is responsible for this, and in local mode there is no server, so this is where you will use the db.db file directly in the client, so this might be where you would have a JFileChoser to pick the file that resides on the client's machine.
And please change your display name to follow our standards.
Thank you
Mark
Tiger Meng
Ranch Hand

Joined: Nov 10, 2002
Posts: 32
Originally posted by Mark Spritzler:
The client might be on other machines, and it isn't the responsibility of the client to start the server or tell the server where the db.db file is.
The server is responsible for this, and in local mode there is no server, so this is where you will use the db.db file directly in the client, so this might be where you would have a JFileChoser to pick the file that resides on the client's machine.
And please change your display name to follow our standards.
Thank you
Mark

I have changed my name to "memgxiaoxi", don't you see that?
the instrcutions said: "... In either case, the program must allow the user to specify the location of the database, ... "
so what is location means in server-side?
someone told me that is IP + pathname + filename like "xxx.xxx.xxx.xxx/..../db.db".
sometimes the instructions seems not clearly enough, sight.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Just split you name into the two seperate fields then. Right now you only have one name listed, your first name or is it your last name, I can't tell
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can JFileChooser select server-side file?
 
Similar Threads
JFileChooser
Only accept a file type in JFileChooser ?
remote JFileChooser or similar?
JFileChooser and SecurityManager
How to convert a datagramPacket to a file ?