File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Questions On GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Questions On GUI" Watch "Questions On GUI" New topic

Questions On GUI

Sri Addanki
Ranch Hand

Joined: Apr 27, 2001
Posts: 195
Features need to be implemented in GUI
1. I have 2 textfields, one for origin airport code, and one for destination airport code. Is this fine or do i need to go for comboboxes?
2. Do i need to have a button to show up a pop-window of all the airport codes.
3. In my textfield i allow only 3-letter airport code. Do i need to allow the full name of the airport too?
4. My gui switches modes on the fly. So, is there any need to include a status bar showing 'connected to local database...' or..remote database?
5. Should i right align Price and Available seats columns?
6. Seats can be booked via BookSeat button. Do i need to implement double-clicking a row functionality too?
7. When BookSeat button is clicked, seats can be booked through a pop-up dialog-box. After the seats are booked, do i need to auto-refresh the page?
8. And one last, question... To make the screen more user-interactive should i need an online help. Because i don't have any.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

OK actually let's see how to handle each one.
1. No you don't need Comboboxes, however that makes the following answers below change. I had comboboxes and it made the following questions not mean anything. For instance since the Combobox has all the Airports in it's ComboBox, you won't need a button for a lookup. Same with three, not an issue.
But if you keep it as textboxes you can validate or not validate what the users enter. It's up to you, but I still found ComboBoxes easier and more user friendly.
4. It would be a nice feature and easy to implement. But I can't comment much more on it as I didn't include On-The-Fly mode changing.
5. Nope not needed. Not in the requirements.
6. Again not needed. A Nice add on but still not a requirement.
7. I would refresh that flight, yes. If it happens to reflect other users changes, that is fine.
8. Again not a requirement, but most of us included this feature and it was very easy to implement. So I think you should.

I also wanted to point out my opinion, of course it is just an opinion, but the main reason why I never coded a Change the mode of the fly is because of the definition of the modes. If you change on the fly, then you are changing which db.db file will be changed. You cannot guarantee that the server running is on the same machine. So what is the purpose of on the fly changing. If you are in Local mode, do a search, then change into Remote mode, you will have to redo the search on the servers db.db file and refresh the grid.
The changes in data like this also might confuse a user. If I were booking flight and booked two flights, then changed modes, and then looked at the two lights that I booked, I might think that those bookings might not have taken because the data doesn't reflect the bookings, and this is because it is a different db.db file
OK Remove Soap Box.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Sri Addanki
Ranch Hand

Joined: Apr 27, 2001
Posts: 195
Thanks alot for that, lengthy reply Mark.
If i submit the assignment, just like this will i lose any marks? B'cos i'm keen on submitting this assignment before Jan 1st. And i don't think i can handle any more as i am going on a vacation and will be back only after 2 months.
Thanks for the advice,
I agree. Here's the link:
subject: Questions On GUI
It's not a secret anymore!