1.My question is the mean of the bold font.Whether its mean is All configuration must be done via a GUI,and All configuration must be persistent between runs of the program.
YES. That is to say, when you start the client (or server), you need to provide a GUI for the users to specify which server (IP and Port) to connect with, for networked mode, or which data file (physical file location of the harddisk) should be used, for non-networked mode.
That is to say, since the system can be in 2 modes: network or non-network. If the system currently is networked, you cannot change it to non-network, without restarting the system.
2.If yes.i will create FileInputStream and FileOutputStream and use System.getProperty("user.dir") and Property class.then load and store the
suncertify.properties file.Whether my method is right?
You need to make use of the property file to store the configuration, as required by the instructions.
If it is the first time the user runs the program, you simply return nothing. But if he runs before, and, for example, specify that he connects to server 10.14.222.11 and port 10000, then you need to save these info, and display the previous configuration to him when he runs the system next time.
3.for "persistent" whether its meaning that it must not be changed between
runs of program?
YES. The user cannot change the mode of the system from *standalone* to *network* without restarting the system.
4.From instruction of sun.I will create JDialog object to store and load
suncertify.properties file.but only after the finishing of store file and restart the program,the suncertify.properties can take effect.Is this right?
whether you have other method to do this?
Exactly. I saved the connection info when the user clicks *ok* button in the JDialog box. So, even the system hangs or errors on connection, the info is saved.
Nick
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)