private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        try {
            selectedRoom.setName(jTextField1.getText());
            selectedRoom.setDetail(jTextField2.getText());
            String price = jTextField3.getText();
            double price1 = new Double(price);
            selectedRoom.setPrice(price1);
            selectedRoom.setStatus(jTextField4.getText());
            if (selectedRoom.getId() != null && selectedRoom.getId() != 0) {
                roomJpaController.edit(selectedRoom);
                roomTableModel.fireTableDataChanged();
            } else {
                roomJpaController.create(selectedRoom);
                roomTableModel.rooms.add(selectedRoom);
                 roomTableModel.fireTableStructureChanged();
                System.out.println(selectedRoom.getId());
            }
        } catch (Exception e) {
            //message.setText("Please insert all data!!!");
            e.printStackTrace();
        }
        this.parent.getBookingViews1().refresh();
        this.parent.getRoomView1().refresh();
        this.parent.getTenantViews1().refresh();
        setEnabledForm(false);

    }//GEN-LAST:event_jButton2ActionPerformed