update
This commit is contained in:
parent
2992f4f408
commit
4f46de8d00
3330 changed files with 394553 additions and 76939 deletions
124
.config/Code/User/History/5c7543a5/282l.java
Normal file
124
.config/Code/User/History/5c7543a5/282l.java
Normal file
|
@ -0,0 +1,124 @@
|
|||
package com.rutils;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.PasswordField;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.Region;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.text.Font;
|
||||
|
||||
public class SceneCreator{
|
||||
|
||||
public static Scene createLoginScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(stage.widthProperty());
|
||||
root.minHeightProperty().bind(stage.heightProperty());
|
||||
|
||||
Label label = new Label("Login");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
|
||||
Button login = new Button("Login");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> handleLogin(username, password, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> stage.setScene(registerScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, info, login, or, signup);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
public static Scene createRegisterScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(stage.widthProperty());
|
||||
root.minHeightProperty().bind(stage.heightProperty());
|
||||
|
||||
Label label = new Label("Sign Up");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
PasswordField passwordAgain = new PasswordField();
|
||||
passwordAgain.setPromptText("confirm password");
|
||||
passwordAgain.setFont(new Font(20));
|
||||
passwordAgain.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
passwordAgain.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
info.setStyle("-fx-text-fill: red;");
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> handleRegister(username, password, passwordAgain, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button login = new Button("Login Instead");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> stage.setScene(loginScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, passwordAgain, info, signup, or, login);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
}
|
124
.config/Code/User/History/5c7543a5/6Hvw.java
Normal file
124
.config/Code/User/History/5c7543a5/6Hvw.java
Normal file
|
@ -0,0 +1,124 @@
|
|||
package com.rutils;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.PasswordField;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.Region;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.text.Font;
|
||||
|
||||
public class SceneCreator{
|
||||
|
||||
public static Scene createLoginScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(HClient.stage.widthProperty());
|
||||
root.minHeightProperty().bind(HClient.stage.heightProperty());
|
||||
|
||||
Label label = new Label("Login");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
|
||||
Button login = new Button("Login");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> HClient.handleLogin(username, password, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> HClient.stage.setScene(HClient.registerScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, info, login, or, signup);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
public static Scene createRegisterScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(HClient.stage.widthProperty());
|
||||
root.minHeightProperty().bind(HClient.stage.heightProperty());
|
||||
|
||||
Label label = new Label("Sign Up");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
PasswordField passwordAgain = new PasswordField();
|
||||
passwordAgain.setPromptText("confirm password");
|
||||
passwordAgain.setFont(new Font(20));
|
||||
passwordAgain.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
passwordAgain.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
info.setStyle("-fx-text-fill: red;");
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> HClient.handleRegister(username, password, passwordAgain, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button login = new Button("Login Instead");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> HClient.stage.setScene(HClient.loginScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, passwordAgain, info, signup, or, login);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
}
|
13
.config/Code/User/History/5c7543a5/A2cr.java
Normal file
13
.config/Code/User/History/5c7543a5/A2cr.java
Normal file
|
@ -0,0 +1,13 @@
|
|||
package com.rutils;
|
||||
|
||||
public class SceneCreator{
|
||||
|
||||
public static void createLoginScene(){
|
||||
|
||||
}
|
||||
|
||||
public static void createRegisterScene(){
|
||||
|
||||
}
|
||||
|
||||
}
|
70
.config/Code/User/History/5c7543a5/CTQO.java
Normal file
70
.config/Code/User/History/5c7543a5/CTQO.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package com.rutils;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.PasswordField;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.Region;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.text.Font;
|
||||
|
||||
public class SceneCreator{
|
||||
|
||||
public static void createLoginScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(stage.widthProperty());
|
||||
root.minHeightProperty().bind(stage.heightProperty());
|
||||
|
||||
Label label = new Label("Login");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
|
||||
Button login = new Button("Login");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> handleLogin(username, password, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> stage.setScene(registerScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, info, login, or, signup);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
public static void createRegisterScene(){
|
||||
|
||||
}
|
||||
|
||||
}
|
131
.config/Code/User/History/5c7543a5/Kf8r.java
Normal file
131
.config/Code/User/History/5c7543a5/Kf8r.java
Normal file
|
@ -0,0 +1,131 @@
|
|||
package com.rutils;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.PasswordField;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.Region;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.text.Font;
|
||||
|
||||
public class SceneCreator{
|
||||
|
||||
public static Scene createMainScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
return scene;
|
||||
}
|
||||
|
||||
public static Scene createLoginScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(HClient.stage.widthProperty());
|
||||
root.minHeightProperty().bind(HClient.stage.heightProperty());
|
||||
|
||||
Label label = new Label("Login");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
|
||||
Button login = new Button("Login");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> HClient.handleLogin(username, password, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> HClient.stage.setScene(HClient.registerScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, info, login, or, signup);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
public static Scene createRegisterScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(HClient.stage.widthProperty());
|
||||
root.minHeightProperty().bind(HClient.stage.heightProperty());
|
||||
|
||||
Label label = new Label("Sign Up");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
PasswordField passwordAgain = new PasswordField();
|
||||
passwordAgain.setPromptText("confirm password");
|
||||
passwordAgain.setFont(new Font(20));
|
||||
passwordAgain.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
passwordAgain.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
info.setStyle("-fx-text-fill: red;");
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> HClient.handleRegister(username, password, passwordAgain, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button login = new Button("Login Instead");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> HClient.stage.setScene(HClient.loginScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, passwordAgain, info, signup, or, login);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
}
|
124
.config/Code/User/History/5c7543a5/caA0.java
Normal file
124
.config/Code/User/History/5c7543a5/caA0.java
Normal file
|
@ -0,0 +1,124 @@
|
|||
package com.rutils;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.PasswordField;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.Region;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.text.Font;
|
||||
|
||||
public class SceneCreator{
|
||||
|
||||
public static Scene createLoginScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(stage.widthProperty());
|
||||
root.minHeightProperty().bind(stage.heightProperty());
|
||||
|
||||
Label label = new Label("Login");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
|
||||
Button login = new Button("Login");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> handleLogin(username, password, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> stage.setScene(registerScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, info, login, or, signup);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
public static Scene createRegisterScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(HClient.stage.widthProperty());
|
||||
root.minHeightProperty().bind(HClient.stage.heightProperty());
|
||||
|
||||
Label label = new Label("Sign Up");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
PasswordField passwordAgain = new PasswordField();
|
||||
passwordAgain.setPromptText("confirm password");
|
||||
passwordAgain.setFont(new Font(20));
|
||||
passwordAgain.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
passwordAgain.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
info.setStyle("-fx-text-fill: red;");
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> handleRegister(username, password, passwordAgain, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button login = new Button("Login Instead");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> stage.setScene(loginScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, passwordAgain, info, signup, or, login);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
}
|
1
.config/Code/User/History/5c7543a5/entries.json
Normal file
1
.config/Code/User/History/5c7543a5/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/Stuff/Coding/Java/hcloudclient/src/main/java/com/rutils/SceneCreator.java","entries":[{"id":"A2cr.java","timestamp":1721387057872},{"id":"zssg.java","timestamp":1721387082867},{"id":"CTQO.java","source":"Add all missing imports","timestamp":1721387126680},{"id":"282l.java","timestamp":1721387150985},{"id":"caA0.java","timestamp":1721387227779},{"id":"miLe.java","timestamp":1721387239633},{"id":"6Hvw.java","timestamp":1721387313950},{"id":"gmhr.java","timestamp":1721387335141},{"id":"Kf8r.java","timestamp":1721387356315}]}
|
128
.config/Code/User/History/5c7543a5/gmhr.java
Normal file
128
.config/Code/User/History/5c7543a5/gmhr.java
Normal file
|
@ -0,0 +1,128 @@
|
|||
package com.rutils;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.PasswordField;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.Region;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.text.Font;
|
||||
|
||||
public class SceneCreator{
|
||||
|
||||
public static void createMainScene(){
|
||||
|
||||
}
|
||||
|
||||
public static Scene createLoginScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(HClient.stage.widthProperty());
|
||||
root.minHeightProperty().bind(HClient.stage.heightProperty());
|
||||
|
||||
Label label = new Label("Login");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
|
||||
Button login = new Button("Login");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> HClient.handleLogin(username, password, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> HClient.stage.setScene(HClient.registerScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, info, login, or, signup);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
public static Scene createRegisterScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(HClient.stage.widthProperty());
|
||||
root.minHeightProperty().bind(HClient.stage.heightProperty());
|
||||
|
||||
Label label = new Label("Sign Up");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
PasswordField passwordAgain = new PasswordField();
|
||||
passwordAgain.setPromptText("confirm password");
|
||||
passwordAgain.setFont(new Font(20));
|
||||
passwordAgain.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
passwordAgain.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
info.setStyle("-fx-text-fill: red;");
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> HClient.handleRegister(username, password, passwordAgain, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button login = new Button("Login Instead");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> HClient.stage.setScene(HClient.loginScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, passwordAgain, info, signup, or, login);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
}
|
124
.config/Code/User/History/5c7543a5/miLe.java
Normal file
124
.config/Code/User/History/5c7543a5/miLe.java
Normal file
|
@ -0,0 +1,124 @@
|
|||
package com.rutils;
|
||||
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.PasswordField;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.layout.Region;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.text.Font;
|
||||
|
||||
public class SceneCreator{
|
||||
|
||||
public static Scene createLoginScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(HClient.stage.widthProperty());
|
||||
root.minHeightProperty().bind(HClient.stage.heightProperty());
|
||||
|
||||
Label label = new Label("Login");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
|
||||
Button login = new Button("Login");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> handleLogin(username, password, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> stage.setScene(registerScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, info, login, or, signup);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
public static Scene createRegisterScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(HClient.stage.widthProperty());
|
||||
root.minHeightProperty().bind(HClient.stage.heightProperty());
|
||||
|
||||
Label label = new Label("Sign Up");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
PasswordField passwordAgain = new PasswordField();
|
||||
passwordAgain.setPromptText("confirm password");
|
||||
passwordAgain.setFont(new Font(20));
|
||||
passwordAgain.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
passwordAgain.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
info.setStyle("-fx-text-fill: red;");
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> handleRegister(username, password, passwordAgain, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button login = new Button("Login Instead");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> stage.setScene(loginScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, passwordAgain, info, signup, or, login);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
}
|
60
.config/Code/User/History/5c7543a5/zssg.java
Normal file
60
.config/Code/User/History/5c7543a5/zssg.java
Normal file
|
@ -0,0 +1,60 @@
|
|||
package com.rutils;
|
||||
|
||||
public class SceneCreator{
|
||||
|
||||
public static void createLoginScene(){
|
||||
VBox root = new VBox();
|
||||
Scene scene = new Scene(root);
|
||||
|
||||
root.requestFocus();
|
||||
root.setAlignment(Pos.CENTER);
|
||||
root.setSpacing(25);
|
||||
root.minWidthProperty().bind(stage.widthProperty());
|
||||
root.minHeightProperty().bind(stage.heightProperty());
|
||||
|
||||
Label label = new Label("Login");
|
||||
label.setFont(new Font(40));
|
||||
|
||||
Region spcr1 = new Region();
|
||||
spcr1.setPrefHeight(20);
|
||||
|
||||
TextField username = new TextField();
|
||||
username.setPromptText("username");
|
||||
username.setFont(new Font(20));
|
||||
username.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
username.setPrefHeight(50);
|
||||
|
||||
PasswordField password = new PasswordField();
|
||||
password.setPromptText("password");
|
||||
password.setFont(new Font(20));
|
||||
password.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
password.setPrefHeight(50);
|
||||
|
||||
Label info = new Label();
|
||||
info.setPrefHeight(20);
|
||||
|
||||
Button login = new Button("Login");
|
||||
login.setFont(new Font(20));
|
||||
login.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
login.setPrefHeight(50);
|
||||
login.setOnAction(e -> handleLogin(username, password, info));
|
||||
|
||||
Label or = new Label("OR");
|
||||
or.setFont(new Font(30));
|
||||
|
||||
Button signup = new Button("Sign Up");
|
||||
signup.setFont(new Font(20));
|
||||
signup.maxWidthProperty().bind(scene.widthProperty().divide(3));
|
||||
signup.setPrefHeight(50);
|
||||
signup.setOnAction(e -> stage.setScene(registerScene));
|
||||
|
||||
root.getChildren().addAll(label, spcr1, username, password, info, login, or, signup);
|
||||
return scene;
|
||||
|
||||
}
|
||||
|
||||
public static void createRegisterScene(){
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue