aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Question concerning implementation of the GUI 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 "Question concerning implementation of the GUI" Watch "Question concerning implementation of the GUI" New topic
Author

Question concerning implementation of the GUI

Harry Henriques
Ranch Hand

Joined: Jun 17, 2009
Posts: 206
Hi Fellow Bloggers,

My SCJD assignment states the following requirement:

SCJD Application Submission wrote:
OVERALL ARCHITECTURE - Non-Networked Mode

The operating mode is selected using the single command line argument that is permitted.
Architecturely, this mode must use the database and GUI from the networked form, but must not use the network server code at all.


In my implementation, the NON_NETWORKED mode or STANDALONE mode uses the same GUI as the NETWORK_CLIENT, but the NETWORK_SERVER uses a different GUI. Am I violating the specification?

Best regards,
Harry Henriques
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2596
    
    9

Hi Harry,

The stand-alone and network mode GUI are the same once you have set it up (the JTable part). However, from what I understand you are refering to the setting up the properties file.

For first ever run, a GUI is needed to prompt for database location (stand-alone client), server IP and port (network client), database location and port (server setup). The GUI for the 2 client forms are different. I used inner classes to lay out the components. The server setup GUI is run when you start the network server for the first time.

When working with the setup window all inputs must be validated (eg IP address format, port number, wrong database magic cookie value etc).

Oh about the properties file you must read the entire file before writing it because the new content will just overwrite the old content.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
Harry Henriques
Ranch Hand

Joined: Jun 17, 2009
Posts: 206
Thanks K.,

That's what I thought.

Harry
 
 
subject: Question concerning implementation of the GUI