Seid Myadiyev<br />SCJP, SCWCD, SCBCD, SCEA-Part 1
Originally posted by Seid Myadiyev:
Friends,
May I ask your opinion on the these 2 points.
Do I need to:
1. Provide sorting capability to the JTabel, which might be specially useful for queries that return larger results?
2. Restrict the user to the origins and destinations available in the db.db by means of uneditable JComboBox?
or should I let the user enter whatever search string he/she wants in editable JComboBox or JTextField?
Thank you very much in advance!
+Seid
Originally posted by frank sun:
So, If I just put 2 textfields for the user to type in the criteria, will that lose score?
Appreciate!
Frank
Originally posted by frank sun:
So, If I just put 2 textfields for the user to type in the criteria, will that lose score?
Appreciate!
Frank
Frank So, If I just put 2 textfields for the user to type in the criteria, will that lose score?
Miguel: I've read here about people that has lost points on the GUI by using text fields instead of combo boxes.
Frank: That makes no sense
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Seid Myadiyev<br />SCJP, SCWCD, SCBCD, SCEA-Part 1
Originally posted by Seid Myadiyev:
Thank you everyone for your input. My next question is how often do I update JComboBox for origin and destination.
Just once at the program start-up, or every time I access the remote db server?
I personally feel that it has to be more than just once after the program starts. But if the remote db file will never be replaced by the new one during the time the remote clients are running -- then there is no need for that. What do you think?
Thank you,
+Seid
It is not necessary to provide for live updates on multiple clients when new bookings are made at other clients.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
maybe you're going about this the wrong way, perhaps consider populating the Combo box with values that are already in the table, that way its always relevant, and theres no need to query the database for data you already have
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Originally posted by Andrew Monkhouse:
Hi TQ,
That could be problematic. You would have to look at the data you received back and at the criteria you have specified before you could update anything.
If you specify that you only want flights departing from SFO, then the table is only going to have the "SFO" value in the departure column - if you update the JComboBox with this, the user could never change to another location.
So you would have to check that the user still has "all" selected before you could update based on column 'x'.
Is it really worth this sort of effort?
Regards, Andrew
Originally posted by Seid Myadiyev:
TQ,
1. Are you describing "Search Within Results"?
2. What if my initial query returns more than 100 -- do I not populate my JComboBox by them all and only a subset of them?
Thanks,
+Seid
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog