private void bookingTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bookingTableMouseClicked
        if (bookingTable.getSelectedRow() > -1) {
            int selectedRowIndex = bookingTable.getSelectedRow();
            int bookingId = (Integer) bookingTableModel.getValueAt(selectedRowIndex, 0);
            Booking currentBooking = null;
            ArrayList<Booking> bookingList;
            bookingList = ctr.getBookings();

            for (Booking booking : bookingList) {
                if (booking.getBookingId() == bookingId) {
                    ctr.setCurrentBooking(booking);
                    currentBooking = booking;
                }
            }
            if (currentBooking != null) {
                bookingDetailModel.clear();
                ArrayList<Guest> roomGuestList;
                roomGuestList = ctr.getBookingDetailsFromDB(currentBooking);

                // Her henter vi rummets størrelse som bruges til at vise antallet af gæster/roomSize i GUI.
                ArrayList<Room> roomList;
                roomList = ctr.getRooms();
                int roomSize = 0;
                for (Room room : roomList) {
                    if (currentBooking.getRoomNo() == room.getRoomNo()) {
                        roomSize = room.getRoomSize();
                    }
                }
                //

                for (int i = 0; i < roomGuestList.size(); i++) {
                    bookingDetailModel.addElement(roomGuestList.get(i));
                }

                bookingDetailsJList.setModel(bookingDetailModel);
                bookingIdLabel.setText("" + (Integer) bookingTableModel.getValueAt(selectedRowIndex, 0));
                bookingOwnerLabel.setText("" + (Integer) bookingTableModel.getValueAt(selectedRowIndex, 1));
                roomNoLabel.setText("" + (Integer) bookingTableModel.getValueAt(selectedRowIndex, 2));
                agencyLabel.setText("" + bookingTableModel.getValueAt(selectedRowIndex, 3));
                checkInLabel.setText("" + bookingTableModel.getValueAt(selectedRowIndex, 4));
                checkOutLabel.setText("" + bookingTableModel.getValueAt(selectedRowIndex, 5));
                noOfGuestsInRoomLabel.setText("" + roomGuestList.size() + "/" + roomSize);

                bookingDetailsJList1.setModel(bookingDetailModel);
                bookingIdLabel3.setText("" + (Integer) bookingTableModel.getValueAt(selectedRowIndex, 0));
                bookingOwnerLabel3.setText("" + (Integer) bookingTableModel.getValueAt(selectedRowIndex, 1));
                roomNoLabel3.setText("" + (Integer) bookingTableModel.getValueAt(selectedRowIndex, 2));
                agencyLabel3.setText("" + bookingTableModel.getValueAt(selectedRowIndex, 3));
                checkInLabel3.setText("" + bookingTableModel.getValueAt(selectedRowIndex, 4));
                checkOutLabel3.setText("" + bookingTableModel.getValueAt(selectedRowIndex, 5));
                noOfGuestsInRoomLabel3.setText("" + roomGuestList.size() + "/" + roomSize);

                if (evt.getClickCount() == 2) {
                    jTabbedPane.setSelectedIndex(4);
                }
            }
        }
    }//GEN-LAST:event_bookingTableMouseClicked