-
Bug
-
Resolution: Fixed
-
P3
-
7u15
-
Mac OS X 10.8.2 and Ubuntu 12.04 both running JavaFX Version: 2.2.7-b01
We have a Button control inside an HBox and the HBox is added to the root node of our scenegraph. We then call setCancelButton(true) to make this Button a CancelButton. Later we remove the HBox from the root node but the CancelButton still responds to the Escape-Key. The same problem exists when the HBox is simply hidden with setVisible(false).
How can we make sure JavaFX forgets about the special handling of the cancelButton when the Node the button belongs to is removed or hidden? Are we supposed to manually call setCancelButton(false) in this cases?
How can we make sure JavaFX forgets about the special handling of the cancelButton when the Node the button belongs to is removed or hidden? Are we supposed to manually call setCancelButton(false) in this cases?
- duplicates
-
JDK-8123422 Default button still receives onAction events after being removed from scene graph
-
- Closed
-