Added user class
This commit is contained in:
@@ -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();
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user