Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void handle(MouseEvent e) {
- if(e.getClickCount() == 2){
- returnIndexSelected();
- DataCollection selected = table.getSelectionModel().getSelectedItem();
- setDataRow(selected);
- }
- }
- });
- }
- @FXML
- public void add(ActionEvent e){
- DataCollection addData = new DataCollection();
- addData.setStudentID(Integer.parseInt(studentIdText.getText()));
- addData.setStudentName(studentNameText.getText());
- addData.setHallName(comboBoxHallName.getValue());
- addData.setHallNumber(comboBoxHallNum.getValue());
- addData.setRoomNumber(Integer.parseInt(roomNumberText.getText()));
- addData.setLeaseNumber(Integer.parseInt(leaseNumberText.getText()));
- addData.setCleaningStatus(comboBoxCleanStt.getValue());
- data.add(addData);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement