created new window
This commit is contained in:
		@@ -2,6 +2,10 @@ GridPane{
 | 
			
		||||
    -fx-background-color: #282C34;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Label{
 | 
			
		||||
    -fx-text-fill: white;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.main-btn{
 | 
			
		||||
    -fx-background-color: #ffffff;
 | 
			
		||||
    -fx-text-fill: white;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +1,20 @@
 | 
			
		||||
package client;
 | 
			
		||||
 | 
			
		||||
import javafx.fxml.FXML;
 | 
			
		||||
import javafx.fxml.FXMLLoader;
 | 
			
		||||
import javafx.scene.Scene;
 | 
			
		||||
import javafx.scene.control.Label;
 | 
			
		||||
import javafx.scene.layout.GridPane;
 | 
			
		||||
import javafx.scene.layout.VBox;
 | 
			
		||||
import javafx.scene.paint.Color;
 | 
			
		||||
import javafx.stage.Modality;
 | 
			
		||||
import javafx.stage.Stage;
 | 
			
		||||
import res.Event;
 | 
			
		||||
import res.DataController;
 | 
			
		||||
 | 
			
		||||
import java.io.IOException;
 | 
			
		||||
import java.util.Objects;
 | 
			
		||||
 | 
			
		||||
public class MainController {
 | 
			
		||||
    @FXML
 | 
			
		||||
    private GridPane calendarGrid;
 | 
			
		||||
@@ -30,6 +37,21 @@ public class MainController {
 | 
			
		||||
 | 
			
		||||
    @FXML
 | 
			
		||||
    protected void onAddBtnClick(){
 | 
			
		||||
        try{
 | 
			
		||||
            FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("create-event.fxml"));
 | 
			
		||||
            Scene scene = new Scene(fxmlLoader.load(), 600, 400);
 | 
			
		||||
            scene.getStylesheets().add(Objects.requireNonNull(MainApplication.class.getResource("create-event.css")).toExternalForm());
 | 
			
		||||
            Stage stage = new Stage();
 | 
			
		||||
            stage.setTitle("Termin erstellen");
 | 
			
		||||
            stage.setScene(scene);
 | 
			
		||||
            stage.initModality(Modality.APPLICATION_MODAL);
 | 
			
		||||
            stage.showAndWait();
 | 
			
		||||
        }
 | 
			
		||||
        catch (IOException e){
 | 
			
		||||
            e.printStackTrace();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        DataController dataController = new DataController();
 | 
			
		||||
        Event[] eventList = dataController.getAllEvents();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								hellofx/app/src/main/resources/client/create-event.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								hellofx/app/src/main/resources/client/create-event.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
GridPane{
 | 
			
		||||
    -fx-background-color: #3E415F;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										11
									
								
								hellofx/app/src/main/resources/client/create-event.fxml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								hellofx/app/src/main/resources/client/create-event.fxml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
<?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>
 | 
			
		||||
    <Label>Terminerstellen</Label>
 | 
			
		||||
</GridPane>
 | 
			
		||||
		Reference in New Issue
	
	Block a user