
	
import java.io.IOException;
import java.net.URL;

import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.input.KeyEvent;
import javafx.stage.Stage;

public class Main extends Application {
	@Override
	public void start(Stage primaryStage) throws IOException {
		
		FXMLLoader fxmlLoader = new FXMLLoader(); 
		URL location = getClass().getResource("ComboBoxFXML.fxml"); 
		fxmlLoader.setLocation(location); 
		fxmlLoader.setRoot(null); 
		fxmlLoader.setController(null); 
		
		Parent root = fxmlLoader.load(); 
		
        Scene scene = new Scene(root);
        primaryStage.setTitle("ComboBox Test");
        primaryStage.setScene(scene);        
        
        primaryStage.setMinHeight(200); 
        primaryStage.setMinWidth(200); 
        primaryStage.maximizedProperty().addListener((observable, oldValue, newValue) -> {
        	  if (newValue) {primaryStage.setMaximized(false);}  });

        primaryStage.show();
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}
