Added user class

This commit is contained in:
2022-01-26 13:18:05 +01:00
parent 3848baddb6
commit cb5982ef2d
4 changed files with 60 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ package main;
import com.jfoenix.controls.*;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
@@ -29,6 +30,11 @@ public class OptionController {
@FXML
public JFXComboBox<String> userCmb;
@FXML
public void initialize(){
}
public void onBackBtnClick(ActionEvent actionEvent) {
Stage stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();
stage.close();

View File

@@ -3,9 +3,8 @@
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import com.jfoenix.controls.*?>
<?import javafx.collections.FXCollections?>
<?import java.lang.String?>
<GridPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="main.OptionController"
@@ -37,9 +36,7 @@
<JFXComboBox styleClass="comboBox" fx:id="userCmb" GridPane.columnIndex="2" GridPane.rowIndex="2">
<items>
<FXCollections fx:factory="observableArrayList">
<String fx:value="alex"/>
<String fx:value="marc"/>
<String fx:value="marco"/>
</FXCollections>
</items>
</JFXComboBox>