created GUI Main and AddParticipant
This commit is contained in:
		
							parent
							
								
									0974af77b6
								
							
						
					
					
						commit
						89b7ac2268
					
				| 
						 | 
					@ -9,6 +9,9 @@ import javafx.stage.Stage;
 | 
				
			||||||
import java.io.IOException;
 | 
					import java.io.IOException;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class MainWindow extends Application {
 | 
					public class MainWindow extends Application {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void start(Stage primaryStage) throws Exception {
 | 
					    public void start(Stage primaryStage) throws Exception {
 | 
				
			||||||
        FXMLLoader loader = new FXMLLoader(getClass().getResource("mainWindow.fxml"));
 | 
					        FXMLLoader loader = new FXMLLoader(getClass().getResource("mainWindow.fxml"));
 | 
				
			||||||
| 
						 | 
					@ -23,7 +26,7 @@ public class MainWindow extends Application {
 | 
				
			||||||
    //Can be used to Open new Scene in same Stage.
 | 
					    //Can be used to Open new Scene in same Stage.
 | 
				
			||||||
    //This way possible to later give object to Controller
 | 
					    //This way possible to later give object to Controller
 | 
				
			||||||
    public void startParticipand(Stage stage) {
 | 
					    public void startParticipand(Stage stage) {
 | 
				
			||||||
        FXMLLoader loader = new FXMLLoader(getClass().getResource("..\\participandAddFormular\\participandFormular.fxml"));
 | 
					        FXMLLoader loader = new FXMLLoader(getClass().getResource("../participandAddFormular/participandFormular.fxml"));
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            Pane pane = loader.load();
 | 
					            Pane pane = loader.load();
 | 
				
			||||||
            Scene scene = new Scene(pane);
 | 
					            Scene scene = new Scene(pane);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue