wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Future Enhancements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Future Enhancements" Watch "Future Enhancements" New topic
Author

Future Enhancements

Wickes Potgieter
Ranch Hand

Joined: Apr 05, 2002
Posts: 68
From the requirements:
"Your user interface should be designed with the expectation of future functionality enhancements, and it should establish a control scheme that will support this with minimal disruption to the users when this occurs. "
I have created a tool factory which I call to return me a panel containing the search or booking functionality components. I then use a CardLayout to display the 2 panels based on the menu item selected. Is there a better way to implement such a control scheme?


Wickes Potgieter<br />SCJP<br />BEA Certified Specialist: Server, Integration, Portal, Tuxedo<br />BEA WebLogic Server 7 Certified Enterprise Developer<br />BEA Certified Architect<br /><a href="http://www.bea.com" target="_blank" rel="nofollow">www.bea.com</a>
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

How about no menu items except exit, and help.
and just one screen that has JComboboxes for criteria Selection. One button called "Search, that when clicked fills in a JTable below it with flights. The user selects a flight from the JTable, goes to a JTextfield below it types in the number of tickets to book, and then click a "Book" button that is to the right of the JTextField. when clicked the flight gets booked as long as there are available seats and the number entered is not negative.
You can then have a JOptionPane popup that shows the results of the Booking.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
While I see how the approach you described meets the current functionality requirements, I'm not sure how that addresses the issue of future functionality enhancements. The wording is a little odd, I've been trying to decide myself what it implies: "it should establish a control scheme that will support this with minimal disruption to the users".
That isn't the same thing as saying that you want a minimal amount of disruption in the design; I'd solve that easily enough with something like the Command pattern. What exactly constitutes a 'minimal disruption to the users' when GUI functionality changes in the future?
[ June 03, 2002: Message edited by: Reid M. Pinchback ]

Reid - SCJP2 (April 2002)
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

The whole reason for MVC is so that you can create and remove any view you want at any time without disrupting any other portion of the code.
In my example I was just stating to go the simple easy route.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Future Enhancements
 
Similar Threads
User interface and control scheme
What do they mean????
Control scheme for the client GUI
Creating User Interface
FBN: Creating the user interface