JDK-8234161 : PopupWindowPeerListener does not notify location change
Type:Bug
Component:javafx
Sub-Component:scenegraph
Affected Version:openjfx13
Priority:P4
Status:Open
Resolution:Unresolved
Submitted:2019-11-14
Updated:2019-11-14
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.
PopupWindowPeerListener overrides the changedLocation() method inherited from WindowPeerListener.
This method is empty and does not notify change in location but WindowPeerListener does notify the change.
Comments
Following change can fix the issue.
--- a/modules/javafx.graphics/src/main/java/com/sun/javafx/stage/PopupWindowPeerListener.java
+++ b/modules/javafx.graphics/src/main/java/com/sun/javafx/stage/PopupWindowPeerListener.java
@@ -51,9 +51,6 @@ public class PopupWindowPeerListener extends WindowPeerListener {
public void closing() {
}
- public void changedLocation(float x, float y) {
- }
-
public void changedIconified(boolean iconified) {
// Not applicable for popups
}