JDK-8116038 : Canvas in BorderPane centre component can cause buttons in bottom component to disappear
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 7u10
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2013-01-17
  • Updated: 2015-06-17
  • Resolved: 2013-10-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Description
This just started happening after installing Java 1.7u11 and its contained JavaFX 2.2.4, it was OK previously.  I have a Group containing a BorderPane with Buttons in an HBox in its bottom component, and a Canvas in a StackPane in its centre component.  On the Scene becoming visible, the buttons are visible; however on focus/clicking, they become invisible (all except one) and generally behave incorrectly.  Replacing the Canvas with a Rectangle removes the problem.  Putting a 3 or more pixel Insets gap between the Canvas and the Buttons removes the problem - this provides clearance around the buttons' focussed border.  Adding the BorderPane to the Scene directly instead of via the Group removes the problem.  Possibly this relates to Canvas dirty region problems? - e.g. RT-26178.
Comments
A problem with stale clips affecting only Canvas was fixed via RT-30223 in both 2.2.40 and 8.0. If this problem is no longer reproducible in those builds then it was likely a duplicate of that bug.
13-11-2013

Couldn't reproduce with the latest build.
08-10-2013

Thanks, yes, the dirtyopts=false is a workaround - also for other similar problems with a Canvas with other nodes over it in a StackPane. This is a serious problem; it made my application become unusable, with bits of the UI disappearing.
19-01-2013

This does suggest a dirty region problem, possibly due to inaccurate bounds being reported by Canvas. Can you try it with "java -Dprism.dirtyopts=false" and see if that works around the bug? If so, then this is probably a duplicate of RT-26178 (which you refer to in the description).
18-01-2013

Attached test program JFXTestButtons on behalf of the Bug Submitter.
17-01-2013