Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 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 zadanie3;
  7.  
  8. import java.net.URL;
  9. import java.util.ResourceBundle;
  10. import javafx.event.ActionEvent;
  11. import javafx.fxml.FXML;
  12. import javafx.fxml.Initializable;
  13. import javafx.scene.control.Button;
  14. import javafx.scene.control.Label;
  15. import javafx.scene.control.TextArea;
  16.  
  17. /**
  18. *
  19. * @author nowak_000
  20. */
  21. public class FXMLDocumentController implements Initializable {
  22.  
  23. @FXML
  24. private Label label;
  25.  
  26. @FXML
  27. private Button button;
  28.  
  29. @FXML
  30. private TextArea Imie;
  31.  
  32. @FXML
  33. private TextArea Nazwisko;
  34.  
  35. @FXML
  36. private TextArea Pesel;
  37.  
  38. @FXML
  39. private TextArea Miejscowosc;
  40.  
  41.  
  42. public class Osoba{
  43. String imie;
  44. String nazwisko;
  45. String pesel;
  46. String miejscowosc;
  47. public Osoba(String imie, String nazwisko, String pesel, String miejscowosc){
  48. this.imie = imie;
  49. this.nazwisko = nazwisko;
  50. this.pesel = pesel;
  51. this.miejscowosc = miejscowosc;
  52. }
  53. }
  54. @FXML
  55. private void handleButtonAction(ActionEvent event) {
  56.  
  57. Osoba osoba = new Osoba(Imie.getText(),Nazwisko.getText(),Pesel.getText(),Miejscowosc.getText());
  58.  
  59. }
  60.  
  61. @Override
  62. public void initialize(URL url, ResourceBundle rb) {
  63. // TODO
  64. }
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement