This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two UIs?

 
Shannon Sims
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter, UI for the server, can you please clarify? Why would you have a UI for the server?
 
peter wooster
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic