Am currently working on my end of the year project and i am building a hotel reservation system. So here is my Question i want to show the bookings a customer has i made the query in the server (it is a 3 tier application GUI-SERVER-Database). What i want do is create a Jtable whith columns
String[] columnNames = { "starting date", "ending date", "user ID", "amount of single rooms", "amount of double rooms", "amount of triple rooms", "amount of family rooms", };
and each row will be a list, from the below :
List myList4 = new ArrayList(); MY list of objects is : [[8, 2017-02-02, 2017-03-02, 3, 3, 0, 1, 0], [17, 2017-02-03, 2017-03-05, 3, 4, 5, 6, 7]];
i am very confused on what i have to do, i was thinging about just populating 8 JLists but it is looking horible, and i need the user to be able to select each row-Reservation so he can delete it or update it.