Guest User

Untitled

a guest
Dec 5th, 2016
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. package net.codejava.swing.jpanel;
  2. public class User implements java.io.Serializable {
  3.  
  4. private String username;
  5. private String firstName;
  6. private String lastName;
  7. private int ID;
  8. private static int numberID;
  9. private String birthday;
  10. private String city;
  11. private String number;
  12. private String lastLogin;
  13. private char[] password;
  14. private String filePath;
  15.  
  16. public User(String username, String firstName,
  17. String lastName, String number,
  18. String birthday, String city,
  19. char[] password)
  20. {
  21. User.numberID++;
  22. this.username = username;
  23. this.firstName = firstName;
  24. this.lastName = lastName;
  25. this.number = number;
  26. this.birthday = birthday;
  27. this.city = city;
  28. this.password = password;
  29. this.ID = User.numberID;
  30. }
  31.  
  32. /* public void changeUsername(String username)
  33. {
  34. this.username = username;
  35. }
  36.  
  37. public void changeFirstName(String firstName)
  38. {
  39. this.firstName = firstName;
  40. }
  41.  
  42. public void changeLastName(String lastName)
  43. {
  44. this.lastName = lastName;
  45. }
  46.  
  47. public void changeNumberID(int numberID)
  48. {
  49. this.numberID = numberID;
  50. }
  51.  
  52. public void changeBirthday(String birthday)
  53. {
  54. this.birthday = birthday;
  55. }
  56.  
  57. public void changeCity(String city)
  58. {
  59. this.city = city;
  60. }
  61.  
  62. public void changePassword(char[] password)
  63. {
  64. this.password = password;
  65. } */
  66.  
  67. public String getUsername()
  68. {
  69. return this.username;
  70. }
  71.  
  72. public String getFirstName()
  73. {
  74. return this.firstName;
  75. }
  76.  
  77. public String getLastName()
  78. {
  79. return this.lastName;
  80. }
  81.  
  82. public int getNumberID()
  83. {
  84. return this.ID;
  85. }
  86.  
  87. public String getBirthday()
  88. {
  89. return this.birthday;
  90. }
  91.  
  92. public String getCity()
  93. {
  94. return this.city;
  95. }
  96.  
  97. public String getNumber()
  98. {
  99. return this.number;
  100. }
  101. }
Add Comment
Please, Sign In to add comment