changeset 9267:98bb3d975bb6

8134353: [Mac] Regression from JDK-8087709 Reviewed-by: kcr
author Morris Meyer <morris.meyer@oracle.com>
date Tue, 22 Sep 2015 13:55:16 -0400
parents 222d8f8a82c6
children 98e22e3d6bdd
files apps/samples/Ensemble8/src/samples/java/ensemble/samples/controls/menu/MenuApp.java apps/toys/Hello/src/main/java/hello/HelloMenu.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/apps/samples/Ensemble8/src/samples/java/ensemble/samples/controls/menu/MenuApp.java	Tue Sep 22 13:51:20 2015 -0400
+++ b/apps/samples/Ensemble8/src/samples/java/ensemble/samples/controls/menu/MenuApp.java	Tue Sep 22 13:55:16 2015 -0400
@@ -112,7 +112,7 @@
 
             final CheckMenuItem useSystemMenuBarCB = new CheckMenuItem("Use System Menu Bar (works only when MenuApp is run outside of Ensemble)");
             useSystemMenuBarCB.setSelected(true);
-            menuBar.useSystemMenuBarProperty().bind(useSystemMenuBarCB.selectedProperty());
+            menuBar.useSystemMenuBarProperty().bindBidirectional(useSystemMenuBarCB.selectedProperty());
             systemMenuBarMenu.getItems().add(useSystemMenuBarCB);
 
             menuBar.getMenus().add(systemMenuBarMenu);
--- a/apps/toys/Hello/src/main/java/hello/HelloMenu.java	Tue Sep 22 13:51:20 2015 -0400
+++ b/apps/toys/Hello/src/main/java/hello/HelloMenu.java	Tue Sep 22 13:55:16 2015 -0400
@@ -179,7 +179,7 @@
 
             final CheckMenuItem useSystemMenuBarCB = new CheckMenuItem("Use _System Menu Bar");
             useSystemMenuBarCB.setSelected(true);
-            menuBar.useSystemMenuBarProperty().bind(useSystemMenuBarCB.selectedProperty());
+            menuBar.useSystemMenuBarProperty().bindBidirectional(useSystemMenuBarCB.selectedProperty());
             systemMenuBarMenu.getItems().add(useSystemMenuBarCB);
 
             menuBar.getMenus().add(systemMenuBarMenu);