summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com/sun
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes/com/sun')
-rw-r--r--src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java b/src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java
index c7f4d5e5d..ab50c30f8 100644
--- a/src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java
+++ b/src/newt/classes/com/sun/javafx/newt/awt/AWTWindow.java
@@ -300,8 +300,10 @@ public class AWTWindow extends Window {
}
public void componentMoved(ComponentEvent e) {
- x = frame.getX();
- y = frame.getY();
+ if(null!=frame) {
+ x = frame.getX();
+ y = frame.getY();
+ }
display.enqueueEvent(window, com.sun.javafx.newt.WindowEvent.EVENT_WINDOW_MOVED, null);
}