Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Required menus

 
Mike Hays
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

Page 618 of "Java 2 Sun Certified Programmer and Developer" says "...not having a standard menu bar with standard menus and menu items will cost you big time on your exam score." This sentence follows a discussion of menus (File and Edit) and menu items (Undo, Redo, Cut, Copy, Paste, Clear, Select, and Find) that are "almost always" included in graphical applications. Read about it here.

Does the SCJD exam have menu requirements?
 
Carlos Morillo
Ranch Hand
Posts: 221
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike,

In my assignment document there are no MUST requirements regarding specific menus in the GUI.
From the top of my head the only MUST requirement is to use a JTable to display the data from
the database file.

Of course 99.9% of the GUIs out there have a File menu and a Quit option under it in a menubar
and it might not hurt to implement it.
That's actually what I did implement in my GUI for the assignment.

In the Monkhouse book there is a nice writeup about usability and GUI design that I think it's enough
for the SCJD assignment.

In my document it's pretty clear that you will not get any extra credit or points in your score if you go
overboard and implement extra functionality.


Hope this helps,

Carlos.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Carlos Morillo wrote:Of course 99.9% of the GUIs out there have a File menu and a Quit option under it in a menubar
and it might not hurt to implement it.
That's actually what I did implement in my GUI for the assignment.

I implemented exactly the same menu bar

Kind regards,
Roel
 
Mxolisi Veco
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.

In my GUI I have a two items under the menu.
One called setup to allow an end-user to specify the server properties and one to close the application.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mxolisi Veco wrote:One called setup to allow an end-user to specify the server properties and one to close the application.

And what happens with this server properties if I change them? Does your application restarts with the new properties? Will your application start the next time with the new entered properties?
 
Mxolisi Veco
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The properties file contains the machine name where the server is running and the port number the server is listening on.

So when the user captures new server details(properties) and tries to search for hotel rooms, the user will get the rooms he is looking for or he will get a connection error if the server details he specified are incorrect.

The server is started and stoped using a GUI. Everytime you start it, you specify a port number to listen on which has nothing to do with the properties file.

The properties file is used by CSR end-users only. So changing the properties file does not affect the server at all.

"And what happens with this server properties if I change them?"
The server properties get saved, when you make a request next time, these details get used to find the server.

"Does your application restarts with the new properties?"
No, the application does not restart when you change the server details. It just overrides the data contained in the properties file.

"Will your application start the next time with the new entered properties?"
Yes, the properties file is saved with the last data captured by the end user.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mxolisi,

"And what happens with this server properties if I change them?"
The server properties get saved, when you make a request next time, these details get used to find the server.

So you can switch at runtime from 1 server to another one to find or book hotel rooms?

Kind regards,
Roel
 
Mxolisi Veco
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day Roel. Sorry for the late response.
Yes I can switch between servers.
You see, every time the gui sends a request to the server, I create a new connection to the server using the latest properties specified.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's nice but not required (as you probably know)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic