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

GUI - deliverables doubts...

 
Shivaji Bhosale
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Group,
1. Having About Box in an appn is desired ? Since I am planning to put my student id in it.
2. I am having simple GUI, with table at the centre of BorderLayout,
menu at the North of BorderLayout. I am not planning to use
GridbagLayout / BoxLayout, keeping GUI simple.
Having simple minimalistic UI, cost me adversely in grading ?
waiting for youe responses.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you search by Airport etc. If all you have is the JTable, where do you put the number of seats to reserve, etc.
Mark
 
Shivaji Bhosale
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since I am having one menuitem for reservation. I am having dialog box accepting no of seats to be reserved for the row selected in a table.
For searching flights I am having dialog with 2 textfields which accept Origin & Destination airports.
 
Shivaji Bhosale
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me have inputs, if there are any probs...
[ January 06, 2002: Message edited by: Shivaji Bhosale ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So basically, you have the form with the JTable. I select a menu item for serach, it pops up a dialog to enter search criteria, click OK button, it returns to form with only records from search in the JTable. The I select a flight from the JTable and select Reservation from the menu, and a I enter number of seats in the dialog that pops up.
Do you need a TextBox to enter Air Carrier for the search?
Well, I don't know about how they would grade that, but it is very basic. It works though, and it is easy to use.
Have you considered using a JComboBox instead of textboxes in the Search dialog? That would make it easier for the user, however you would have to add code for filling the JComboBoxes from unique values in the database.
I think your design will be fine, and it would pass. However, I would encourage this..
I know we all want to pass and we all want to finish as quickly as we can. However, what we sometimes don't realize is the great opportunity we have to learn a lot about Java in this assignment. From all the Swing elements (GridBagLayout, BoxLayout, JTable, DefaultTableModel, JComboBox, JOptionPane), to RMI(registry, Remote interface, how to get each client it's own remote object, threading issues), to Design Patterns(Model-View_Controller, Factory, Facade), etc. That we should not try to blaze through the assignment. Take your time, you are given infinite amount of time. It is worth it to learn all the neat features, and annoying nuances.
And besides, it will give you lots of time to get to know all of us here at Javaranch really well.
Ok enough of my rant.
Good Luck
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic