private void jButtonSaveBookingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSaveBookingActionPerformed

        int Phone = Integer.parseInt(jTextFieldPhone.getText());
        int CheckOutDate = Integer.parseInt(jTextFieldCheckOutDate.getText());
        int CheckInDate = Integer.parseInt(jTextFieldCheckInDate.getText());
        String GuestName = (jTextFieldName.getText());
        String GuestLastName = (jTextFieldLastName.getText());
        String GuestAgency = (jTextFieldAgency.getText());
        String GuestCountry = (jTextFieldCountry.getText());
        String GuestEmail = (jTextFieldEmail.getText());
        String GuestAddress = (jTextFieldAddress.getText());
        int SingleRoom = Integer.parseInt(jTextFieldSingleRoom.getText());
        int DoubleRoom = Integer.parseInt(jTextFieldDoubleRoom.getText());
        int FamilyRoom = Integer.parseInt(jTextFieldFamilyRoom.getText());
        String RoomPrice = (jLabelRoomPrice.getText());



        BookingRegister br = c.createNewBooking(GuestName, GuestLastName, GuestAddress, GuestCountry,
                GuestEmail, Phone, CheckOutDate, CheckInDate, GuestAgency, RoomPrice,
                SingleRoom, DoubleRoom, FamilyRoom);

//            BookingHotelPrice bhp = c.createNewBookingPrice(RoomPrice, SingleRoom, DoubleRoom, FamilyRoom);

        if (br != null/*& bhp != null*/) {
            jTextFieldName.setText(br.getGuestName() + "");
            jTextFieldLastName.setText(br.getGuestLastName() + "");
            jTextFieldAddress.setText(br.getGuestAddress() + "");
            jTextFieldCountry.setText(br.getGuestCountry() + "");
            jTextFieldEmail.setText(br.getGuestEmail() + "");
            jTextFieldPhone.setText(br.getPhone() + "");
            jTextFieldCheckInDate.setText(br.getCheckInDate() + "");
            jTextFieldCheckOutDate.setText(br.getCheckOutDate() + "");
            jTextFieldAgency.setText(br.getGuestAgency() + "");
            jTextFieldSingleRoom.setText(br.getSingleRoom() + "");
            jTextFieldDoubleRoom.setText(br.getDoubleRoom() + "");
            jTextFieldFamilyRoom.setText(br.getFamilyRoom() + "");
            jLabelRoomPrice.setText(br.getRoomPrice() + " dollar");
            jLabelStatus.setText("Guest saved!");
        } else {
            jLabelStatus.setText("Error!");
        }


    }//GEN-LAST:event_jButtonSaveBookingActionPerformed