Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Question concerning implementation of the GUI

Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fellow Bloggers,

My SCJD assignment states the following requirement:

SCJD Application Submission wrote:

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
Posts: 3648
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Harry Henriques
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks K.,

That's what I thought.

mooooooo ..... tiny ad ....
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic