aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Two UIs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Two UIs?" Watch "Two UIs?" New topic
Author

Two UIs?

Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Would it be a poor design if I chose to create two UIs instead of one? The programming assignment for Bodgitt and Scarper does not specify the number of UIs allowed ( did I overlook it ). Could I fail with two?

Thanks!
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by Shannon Sims:
Would it be a poor design if I chose to create two UIs instead of one? The programming assignment for Bodgitt and Scarper does not specify the number of UIs allowed ( did I overlook it ). Could I fail with two?

Thanks!


I have two UIs, one for the client and one for the server, the choice is made based on the startup parameter. The UIs are very similar, and share a lot of code, but one has a table and the other has a logging screen. In a way they are just variations on the same UI.
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
Peter, UI for the server, can you please clarify? Why would you have a UI for the server?
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by Shannon Sims:
Peter, UI for the server, can you please clarify? Why would you have a UI for the server?


So you can configure the server as specified in the instructions.

You could run the server without a UI. I find a server UI handy for other reasons such as shutting it down, getting help changing the config, and observing its logs.

If the server doesn't have a UI you could use the standalone client mode to configure the server, and document it in your design decisions, then a second UI isn't needed.
Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
OK, thanks Peter for the clarification. I wasn't planning on having a UI for the server, my program has two UI's for the client. My first UI is basically a search window and the second allow the user to reserve the selected contractor from the first window. Perhaps I need to consider the benefits of having another UI for the server?

Thanks for your help!
peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
Originally posted by Shannon Sims:
OK, thanks Peter for the clarification. I wasn't planning on having a UI for the server, my program has two UI's for the client. My first UI is basically a search window and the second allow the user to reserve the selected contractor from the first window. Perhaps I need to consider the benefits of having another UI for the server?

Thanks for your help!


You're welcome, I only have one UI for the client, it presents the table, a toolbar and the menus. The book, search, choose database, etc. are all provided by modal dialogs spawned by that UI.
Andy Zhu
Ranch Hand

Joined: May 26, 2004
Posts: 145
Hey, I have a common gui abstract class at top and then inherited by different classes for different modes (clients has an intermediate abstract class entending the common gui). With this oo design, I can ensure the consistent look and feel.


--------<br />Andy Zhu<br />scjp 1.4<br />scjd 1.4<br />SAS Certified Programmer 9.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two UIs?
 
Similar Threads
JFrame decorations aren't working
Struts Action Classes - Presentation or Business Logic Layer?
Installer screen
Details page, form or just data with link to edit
synchronized methods in Android Activities