Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package javafxapplication2;
  7.  
  8. import java.io.IOException;
  9. import java.net.URL;
  10. import java.util.ResourceBundle;
  11. import javafx.event.ActionEvent;
  12. import javafx.fxml.FXML;
  13. import javafx.fxml.FXMLLoader;
  14. import javafx.fxml.Initializable;
  15. import javafx.scene.Node;
  16. import javafx.scene.Parent;
  17. import javafx.scene.Scene;
  18. import javafx.scene.control.Button;
  19. import javafx.scene.control.PasswordField;
  20. import javafx.scene.control.TextField;
  21. import javafx.stage.Stage;
  22.  
  23. /**
  24. * FXML Controller class
  25. *
  26. * @author Tanzimul Hoque
  27. */
  28. public class SignUpController implements Initializable {
  29.  
  30. /**
  31. * Initializes the controller class.
  32. */
  33.  
  34. @FXML
  35. private TextField id;
  36.  
  37. @FXML
  38. private TextField name;
  39.  
  40. @FXML
  41. private TextField department;
  42.  
  43. @FXML
  44. private TextField phoneNumber;
  45.  
  46. @FXML
  47. private TextField email;
  48.  
  49. @FXML
  50. private TextField authenCode;
  51.  
  52. @FXML
  53. private PasswordField password;
  54.  
  55.  
  56.  
  57. @FXML
  58. private Button confirm;
  59.  
  60.  
  61.  
  62. String idString;
  63. String nameString;
  64. String departmentString;
  65. String phoneNumberString;
  66. String emailString;
  67. String authenCodeString;
  68. String passwordString;
  69.  
  70.  
  71. public void confirmButton(ActionEvent event){
  72. idString= id.getText();
  73.  
  74. nameString = name.getText();
  75.  
  76. departmentString = department.getText();
  77.  
  78. phoneNumberString = phoneNumber.getText();
  79.  
  80. emailString = email.getText();
  81.  
  82. authenCodeString = authenCode.getText();
  83.  
  84. passwordString = password.getText();
  85.  
  86. }
  87.  
  88.  
  89. @FXML
  90. private Button back;
  91.  
  92. @FXML
  93. public void back(ActionEvent event) throws IOException{
  94.  
  95. Parent root5;
  96.  
  97. root5 = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml"));
  98.  
  99. Scene scene5;
  100.  
  101. scene5 = new Scene(root5);
  102.  
  103. Stage window5 = (Stage)((Node)event.getSource()).getScene().getWindow();
  104. window5.setScene(scene5);
  105. window5.show();
  106. }
  107.  
  108. @Override
  109. public void initialize(URL url, ResourceBundle rb) {
  110. // TODO
  111. }
  112.  
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement