Originally posted by Theo van Loon:
Hello all,
i managed to start a gui and have some questions on the JTable and the content of the dbfile given by Sun.
1. Some of the columns in the table are cut off (you see ... at the end of the column) and not the appropiate length, what to do about this and how to solve this problem (how can i give them the correct size automatically)?
I am assuming when you say length of the column, its at the bottom of the panel. If that is the problem, you can try by using a scrollpane. Also you can use scrollpane for both horizontal and vertical movements if the table is not fully seen.
2. Further in two of the records i see in the owner column a 0... What to do with this, there is no owner as far as i'm concerned. Does this mean no other users can book these hotels?
Well, I really do not understand the question to answer. It seems two of the records already have a owner or something. If its the case, then depending on your implementation you can either unbook the record, and allow to book or you can simply allow booking for records which are not booked. I'm just curious, my db file don't have any owners in any of the records. Are you sure you did not change the owner field? Because we are supposed to send the original given unchanged db file to them right? You can ignore this, if you got the file like that only.
Thanks a lot for the help!!!
Originally posted by Satish Avadhanam:
Originally posted by Theo van Loon:
Hello all,
i managed to start a gui and have some questions on the JTable and the content of the dbfile given by Sun.
1. Some of the columns in the table are cut off (you see ... at the end of the column) and not the appropiate length, what to do about this and how to solve this problem (how can i give them the correct size automatically)?
I am assuming when you say length of the column, its at the bottom of the panel.
No i don't mean the scrollbar at the bottom of the panel. I mean the size of the different columns in the table. How can i make them the size of the content of the column?
2. Further in two of the records i see in the owner column a 0... What to do with this, there is no owner as far as i'm concerned. Does this mean no other users can book these hotels?
It is the original file given by Sun, so two of my hotel already have owners.
How to solve this?
Originally posted by Theo van Loon:
1. Some of the columns in the table are cut off (you see ... at the end of the column) and not the appropiate length, what to do about this and how to solve this problem (how can i give them the correct size automatically)?
2. Further in two of the records i see in the owner column a 0... What to do with this, there is no owner as far as i'm concerned. Does this mean no other users can book these hotels?
Regards, George
SCJP, SCJD, SCWCD, SCBCD
Originally posted by Theo van Loon:
Regarding the lengths of the fields they all seem ok. I've checked it all and can't find an error in the handling of the db file perhaps i should post a question if other people having the same dbfile db-2x2.db have the same "problem"?
Regards, George
SCJP, SCJD, SCWCD, SCBCD
Well THAT's new! Comfort me, reliable tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|