Compare commits
2 Commits
0296333733
...
3f7fa449d5
Author | SHA1 | Date | |
---|---|---|---|
3f7fa449d5 | |||
da24f73f46 |
@ -15,10 +15,18 @@ public class MainApplication extends Application {
|
|||||||
|
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 1200, 700);
|
Scene scene = new Scene(fxmlLoader.load(), 1200, 700);
|
||||||
scene.getStylesheets().add(Objects.requireNonNull(MainApplication.class.getResource("main-view.css")).toExternalForm());
|
scene.getStylesheets().add(Objects.requireNonNull(MainApplication.class.getResource("main-view.css")).toExternalForm());
|
||||||
stage.setTitle("Hello!");
|
stage.setTitle("SharePlaner");
|
||||||
stage.setScene(scene);
|
stage.setScene(scene);
|
||||||
stage.show();
|
stage.show();
|
||||||
|
|
||||||
|
FXMLLoader fxmlLoaderLogin = new FXMLLoader(MainApplication.class.getResource("../users/login.fxml"));
|
||||||
|
Scene sceneLogin = new Scene(fxmlLoaderLogin.load(), 650, 500);
|
||||||
|
sceneLogin.getStylesheets().add(Objects.requireNonNull(MainApplication.class.getResource("../users/login.css")).toExternalForm());
|
||||||
|
Stage stageLogin = new Stage();
|
||||||
|
stageLogin.setTitle("Anmelden");
|
||||||
|
stageLogin.setScene(sceneLogin);
|
||||||
|
stageLogin.show();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
4
client/app/src/main/java/users/LoginControler.java
Normal file
4
client/app/src/main/java/users/LoginControler.java
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
package users;
|
||||||
|
|
||||||
|
public class LoginControler {
|
||||||
|
}
|
0
client/app/src/main/resources/users/login.css
Normal file
0
client/app/src/main/resources/users/login.css
Normal file
36
client/app/src/main/resources/users/login.fxml
Normal file
36
client/app/src/main/resources/users/login.fxml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import java.lang.*?>
|
||||||
|
<?import java.util.*?>
|
||||||
|
<?import javafx.scene.*?>
|
||||||
|
<?import javafx.scene.control.*?>
|
||||||
|
<?import javafx.scene.layout.*?>
|
||||||
|
|
||||||
|
<GridPane xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml" fx:controller="users.LoginControler">
|
||||||
|
|
||||||
|
<columnConstraints>
|
||||||
|
<ColumnConstraints/>
|
||||||
|
<ColumnConstraints/>
|
||||||
|
<ColumnConstraints/>
|
||||||
|
</columnConstraints>
|
||||||
|
<rowConstraints>
|
||||||
|
<RowConstraints vgrow="ALWAYS" />
|
||||||
|
<RowConstraints vgrow="ALWAYS" />
|
||||||
|
<RowConstraints vgrow="ALWAYS" />
|
||||||
|
<RowConstraints vgrow="ALWAYS" />
|
||||||
|
</rowConstraints>
|
||||||
|
|
||||||
|
<Label GridPane.columnIndex="1">Anmelden</Label>
|
||||||
|
|
||||||
|
<Label GridPane.rowIndex="1">Username</Label>
|
||||||
|
<TextField GridPane.columnIndex="1" GridPane.rowIndex="1" fx:id="userField"></TextField>
|
||||||
|
<Label GridPane.columnIndex="2" GridPane.rowIndex="1" fx:id="userErrLabel">Error</Label>
|
||||||
|
|
||||||
|
<Label GridPane.rowIndex="2">Paswort</Label>
|
||||||
|
<PasswordField GridPane.columnIndex="1" GridPane.rowIndex="2" fx:id="passField"></PasswordField>
|
||||||
|
<Label GridPane.columnIndex="2" GridPane.rowIndex="2" fx:id="passErrLabel">Error</Label>
|
||||||
|
|
||||||
|
<Button GridPane.columnIndex="1" GridPane.rowIndex="3">Beenden</Button>
|
||||||
|
<Button GridPane.columnIndex="2" GridPane.rowIndex="3">Anmelden</Button>
|
||||||
|
|
||||||
|
</GridPane>
|
Loading…
Reference in New Issue
Block a user