Advertisement
Guest User

Untitled

a guest
Nov 9th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. public class Credits {
  2.  
  3. private Text name1;
  4. private Text name2;
  5. private Text name3;
  6. private Text name4;
  7.  
  8. private Text title;
  9. private Text logo;
  10. private Text font;
  11. private Text image;
  12.  
  13. private Text email1;
  14. private Text email2;
  15. private Text email3;
  16. private Text email4;
  17.  
  18. private HBox developersBox;
  19. private HBox emailBox;
  20. private VBox infoBox;
  21.  
  22. private Button menuButton;
  23.  
  24. public Credits(){
  25. this.name1 = new Text ("Jonny Bauer");
  26. this.name2 = new Text ("Cody Pollard");
  27. this.name3 = new Text ("Joe B");
  28. this.name3 = new Text ("Grant");
  29.  
  30. this.title = new Text ("Fit4Life");
  31.  
  32. this.email1 = new Text ("jonny@hotmail.com");
  33. this.email2 = new Text ("cody@hotmail.com");
  34. this.email3 = new Text ("joe@hotmail.com");
  35. this.email4 = new Text ("grant@hotmail.com");
  36.  
  37. this.image = new Text ("Image Used: NameHere");
  38. this.logo = new Text ("Logo Created By: NameHere");
  39. this.font = new Text ("Font Used: NameHere");
  40.  
  41. //This HBox Holds The information of Cody, Jonny, Joe & Grant
  42. this.developersBox = new HBox();
  43. this.developersBox.getChildren().addAll(name1, name2, name3, name4);
  44. this.developersBox.setSpacing(5);
  45. //this.developersBox.setAlignment(Pos.BOTTOM_CENTER);
  46.  
  47. //This HBox Holds the Email of Cody, Jonny, & Joe
  48. this.emailBox = new HBox();
  49. this.emailBox.getChildren().addAll(email1, email2, email3, email4);
  50. this.emailBox.setSpacing(5);
  51. //this.emailBox.setAlignment(Pos.BOTTOM_CENTER);
  52.  
  53. //This VBox Holds the information of the font,logo,images
  54. this.infoBox = new VBox();
  55. this.infoBox.getChildren().addAll(title, image, logo, font);
  56. this.infoBox.setSpacing(5);
  57. this.infoBox.setAlignment(Pos.CENTER);
  58.  
  59. //This button will send you to the main menu
  60. this.menuButton = new Button("Main Menu");
  61. this.menuButton.setAlignment(Pos.BOTTOM_RIGHT);
  62.  
  63. // this.menuButton.setOnAction(e->{
  64. // Main.mainStage.setScene(new MainMenu());
  65. // });
  66.  
  67. GridPane pane = new GridPane();
  68. pane.add(infoBox, 1, 1);
  69. pane.add(developersBox, 2, 2);
  70. pane.add(emailBox, 3, 3);
  71.  
  72.  
  73. }
  74.  
  75. public Text getName1() {
  76. return name1;
  77. }
  78.  
  79. public void setName1(Text name1) {
  80. this.name1 = name1;
  81. }
  82.  
  83. public Text getName2() {
  84. return name2;
  85. }
  86.  
  87. public void setName2(Text name2) {
  88. this.name2 = name2;
  89. }
  90.  
  91. public Text getName3() {
  92. return name3;
  93. }
  94.  
  95. public void setName3(Text name3) {
  96. this.name3 = name3;
  97. }
  98. public Text getName4() {
  99. return name4;
  100. }
  101.  
  102. public void setName4(Text name4) {
  103. this.name3 = name4;
  104. }
  105.  
  106. public Text getTitle() {
  107. return title;
  108. }
  109.  
  110. public void setTitle(Text title) {
  111. this.title = title;
  112. }
  113.  
  114. public Text getLogo() {
  115. return logo;
  116. }
  117.  
  118. public void setLogo(Text logo) {
  119. this.logo = logo;
  120. }
  121.  
  122. public Text getFont() {
  123. return font;
  124. }
  125.  
  126. public void setFont(Text font) {
  127. this.font = font;
  128. }
  129.  
  130. public Text getImage() {
  131. return image;
  132. }
  133.  
  134. public void setImage(Text image) {
  135. this.image = image;
  136. }
  137.  
  138. public Text getEmail1() {
  139. return email1;
  140. }
  141.  
  142. public void setEmail1(Text email1) {
  143. this.email1 = email1;
  144. }
  145.  
  146. public Text getEmail2() {
  147. return email2;
  148. }
  149.  
  150. public void setEmail2(Text email2) {
  151. this.email2 = email2;
  152. }
  153.  
  154. public Text getEmail3() {
  155. return email3;
  156. }
  157.  
  158. public void setEmail3(Text email3) {
  159. this.email3 = email3;
  160. }
  161.  
  162. public Text getEmail4() {
  163. return email4;
  164. }
  165.  
  166. public void setEmail4(Text email4) {
  167. this.email4 = email4;
  168. }
  169.  
  170. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement