http://s1139.photobucket.com/user/ThekonradZuse/media/Coding/Video6_zps58102da7.mp4.html
If I get rid of my menu it works, or else it looks like this. The last Version I used was 89, so I'm not sure if this is new to this build or not.
private MenuBar menu()
{
MenuBar menuBar = new MenuBar();
Menu menuFile = new Menu("File");
Menu menuEdit = new Menu("Edit");
Menu menuView = new Menu("View");
MenuItem menuItemOpen = new MenuItem("Open");
MenuItem menuItemSave = new MenuItem("Save");
menuItemOpen.setOnAction((ActionEvent ae)
-> {
FileChooser fileChooser = new FileChooser();
fileChooser.setTitle("Open Plan File");
fileChooser.getExtensionFilters().addAll(
new ExtensionFilter("Plan Files: *.kaw", "*.kaw", "*.mda", "*.lasagna"),
new ExtensionFilter("All Files: *.*", "*.*"));
File selectedFile = fileChooser.showOpenDialog(stage);
if (selectedFile != null)
{
}
});
menuItemSave.setOnAction((ActionEvent ae)
-> {
FileChooser fileChooser = new FileChooser();
fileChooser.setTitle("Save Plan File");
fileChooser.getExtensionFilters().addAll(
new ExtensionFilter("Plan Files: *.kaw", "*.kaw", "*.mda", "*.lasagna"),
new ExtensionFilter("All Files: *.*", "*.*"));
File selectedFile = fileChooser.showSaveDialog(stage);
if (selectedFile != null)
{
}
});
menuFile.getItems().setAll(menuItemOpen, menuItemSave);
menuBar.getMenus().setAll(menuFile, menuEdit, menuView);
menuBar.prefWidthProperty().bind(stage.maxWidthProperty());
root.getChildren().add(menuBar);
return menuBar;
}