-
Bug
-
Resolution: Won't Fix
-
P2
-
fx1.2
-
windowsxp-sp3
AppletStageExtension - When defaultclose is overriden after closing Applet is not restored.
Example:
var rectangle:Rectangle = Rectangle {
x: 100
y: 100
width: 100
height: 100
fill: Color.RED
onMouseClicked: function(e: MouseEvent): Void {
s.close();
}
}
var s: Stage = Stage {
title: "AppDeploy Demo"
width: 300
height: 200
style: StageStyle.TRANSPARENT
opacity: 0.5
scene: Scene {
content: [
Text {
content: bind textContent
x: 25
y:35
fill: Color.BLACK
font:Font{
size: 24
}},
rectangle
]
}
extensions: [ AppletStageExtension {
shouldDragStart: function(e: MouseEvent): Boolean {
return e.shiftDown and e.primaryButtonDown;
}
useDefaultClose: false
onAppletRestored:function (){
isAppletRestored = true;
}
} ]
}
Take this code. After dragging out Clicking on the rectangle suppose to take Applet back to Browser.
Actual Behaviour:
a) Applet is not visible after clicking the rectangle .
b) isAppletRestored variable is still false. Means onAppletRestored is not called .
Example:
var rectangle:Rectangle = Rectangle {
x: 100
y: 100
width: 100
height: 100
fill: Color.RED
onMouseClicked: function(e: MouseEvent): Void {
s.close();
}
}
var s: Stage = Stage {
title: "AppDeploy Demo"
width: 300
height: 200
style: StageStyle.TRANSPARENT
opacity: 0.5
scene: Scene {
content: [
Text {
content: bind textContent
x: 25
y:35
fill: Color.BLACK
font:Font{
size: 24
}},
rectangle
]
}
extensions: [ AppletStageExtension {
shouldDragStart: function(e: MouseEvent): Boolean {
return e.shiftDown and e.primaryButtonDown;
}
useDefaultClose: false
onAppletRestored:function (){
isAppletRestored = true;
}
} ]
}
Take this code. After dragging out Clicking on the rectangle suppose to take Applet back to Browser.
Actual Behaviour:
a) Applet is not visible after clicking the rectangle .
b) isAppletRestored variable is still false. Means onAppletRestored is not called .
- relates to
-
JDK-8106831 REGRESSION: AppletStageExtension is broken
- Closed