Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. @Override
  2. public void handle(MouseEvent e) {
  3. if(e.getClickCount() == 2){
  4. returnIndexSelected();
  5. DataCollection selected = table.getSelectionModel().getSelectedItem();
  6. setDataRow(selected);
  7. }
  8. }
  9. });
  10.  
  11. }
  12.  
  13.  
  14. @FXML
  15. public void add(ActionEvent e){
  16.  
  17. DataCollection addData = new DataCollection();
  18. addData.setStudentID(Integer.parseInt(studentIdText.getText()));
  19. addData.setStudentName(studentNameText.getText());
  20. addData.setHallName(comboBoxHallName.getValue());
  21. addData.setHallNumber(comboBoxHallNum.getValue());
  22. addData.setRoomNumber(Integer.parseInt(roomNumberText.getText()));
  23. addData.setLeaseNumber(Integer.parseInt(leaseNumberText.getText()));
  24. addData.setCleaningStatus(comboBoxCleanStt.getValue());
  25.  
  26. data.add(addData);
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement