Here's the situation.
We're doing a hotel booking system for a school project and we need to retrieve a list of available rooms for a give period of time.
Rooms, bookings and so on are retrieved from a database, and the logic for that seems to be working, only the jTable that is supposed to display the values doesn't update.
I hope you guys can help.
Here's the code for the panel that contains the table:
Isn't it ok to embed it in the jPanel?
This is on line 166 in the code I pasted :
It's calling mappingArray, which is located in a class with the somewhat awkward name of BookingRoomController.
And it does seem to work, because when jPanel instantiates the table looks as expected. What remains now is figuring out how to update the actual table, because I'm fairly certain that we're getting the correct data when pressing the ok-button (see line 136).
I've read about fireTableDataChanged and newDataAvailable, but I'm not sure where and how to implement them.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com