Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can JFileChooser select server-side file?

 
Tiger Meng
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can JFileChooser select server-side file? Or how to select server-side file "OS independently"? My assignment is designed with RMI. Thanks.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course you can, and that should pop up when you run the server, not the client. Right?
Mark
 
Tiger Meng
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic