Fxml #8
			
				
			
		
		
		
	|  | @ -34,6 +34,5 @@ public class MainWindow extends Application { | ||||||
|         } catch (IOException e) { |         } catch (IOException e) { | ||||||
|             e.printStackTrace(); |             e.printStackTrace(); | ||||||
|         } |         } | ||||||
| 
 |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -18,6 +18,9 @@ public class MainWindowController { | ||||||
|     @FXML |     @FXML | ||||||
|     private Button createBtn; |     private Button createBtn; | ||||||
| 
 | 
 | ||||||
|  |     @FXML | ||||||
|  |     private MenuItem germanSelect; | ||||||
|  | 
 | ||||||
|     @FXML |     @FXML | ||||||
|     private GridPane grid; |     private GridPane grid; | ||||||
| 
 | 
 | ||||||
|  | @ -36,9 +39,6 @@ public class MainWindowController { | ||||||
|     @FXML |     @FXML | ||||||
|     private Button openBtn; |     private Button openBtn; | ||||||
| 
 | 
 | ||||||
|     @FXML |  | ||||||
|     private MenuItem setLan; |  | ||||||
| 
 |  | ||||||
|     @FXML |     @FXML | ||||||
|     private Label tournierListTitle; |     private Label tournierListTitle; | ||||||
| 
 | 
 | ||||||
|  | @ -51,6 +51,11 @@ public class MainWindowController { | ||||||
|     @FXML |     @FXML | ||||||
|     private Label turnierNameLabel; |     private Label turnierNameLabel; | ||||||
| 
 | 
 | ||||||
|  |     @FXML | ||||||
|  |     void changeLangToGerman(ActionEvent event) { | ||||||
|  | 
 | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     @FXML |     @FXML | ||||||
|     void closeApplication(ActionEvent event) { |     void closeApplication(ActionEvent event) { | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -34,6 +34,9 @@ public class participantFormularController { | ||||||
|     @FXML |     @FXML | ||||||
|     private TextField firstNameTextField; |     private TextField firstNameTextField; | ||||||
| 
 | 
 | ||||||
|  |     @FXML | ||||||
|  |     private MenuItem germanSelect; | ||||||
|  | 
 | ||||||
|     @FXML |     @FXML | ||||||
|     private GridPane grid; |     private GridPane grid; | ||||||
| 
 | 
 | ||||||
|  | @ -71,10 +74,12 @@ public class participantFormularController { | ||||||
|     private Button saveBtn; |     private Button saveBtn; | ||||||
| 
 | 
 | ||||||
|     @FXML |     @FXML | ||||||
|     private MenuItem setLan; |     void addParticipant(ActionEvent event) { | ||||||
|  | 
 | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     @FXML |     @FXML | ||||||
|     void addParticipant(ActionEvent event) { |     void changeLangToGerman(ActionEvent event) { | ||||||
| 
 | 
 | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | @ -94,4 +99,3 @@ public class participantFormularController { | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
| 
 |  | ||||||
|  |  | ||||||
|  | @ -26,7 +26,11 @@ | ||||||
|               <menus> |               <menus> | ||||||
|                 <Menu mnemonicParsing="false" text="Start"> |                 <Menu mnemonicParsing="false" text="Start"> | ||||||
|                   <items> |                   <items> | ||||||
|                         <MenuItem fx:id="setLan" mnemonicParsing="false" text="Sprache wählen" /> |                         <Menu mnemonicParsing="false" text="Sprache wählen"> | ||||||
|  |                           <items> | ||||||
|  |                             <MenuItem fx:id="germanSelect" mnemonicParsing="false" onAction="#changeLangToGerman" text="Deutsch" /> | ||||||
|  |                           </items> | ||||||
|  |                         </Menu> | ||||||
|                     <MenuItem fx:id="closeBtn" mnemonicParsing="false" onAction="#closeApplication" text="Close" /> |                     <MenuItem fx:id="closeBtn" mnemonicParsing="false" onAction="#closeApplication" text="Close" /> | ||||||
|                   </items> |                   </items> | ||||||
|                 </Menu> |                 </Menu> | ||||||
|  |  | ||||||
|  | @ -25,7 +25,11 @@ | ||||||
|                <menus> |                <menus> | ||||||
|                   <Menu mnemonicParsing="false" text="Start"> |                   <Menu mnemonicParsing="false" text="Start"> | ||||||
|                      <items> |                      <items> | ||||||
|                         <MenuItem fx:id="setLan" mnemonicParsing="false" text="Sprache wählen" /> |                         <Menu mnemonicParsing="false" text="Sprache wählen"> | ||||||
|  |                            <items> | ||||||
|  |                               <MenuItem fx:id="germanSelect" mnemonicParsing="false" onAction="#changeLangToGerman" text="Deutsch" /> | ||||||
|  |                            </items> | ||||||
|  |                         </Menu> | ||||||
|                         <MenuItem fx:id="closeBtn" mnemonicParsing="false" onAction="#closeApplication" text="Close" /> |                         <MenuItem fx:id="closeBtn" mnemonicParsing="false" onAction="#closeApplication" text="Close" /> | ||||||
|                      </items> |                      </items> | ||||||
|                   </Menu> |                   </Menu> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue