diff options
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/gnu/java/awt/EmbeddedWindow.java | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 8134d7e..03fbdba 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2004-02-10 Michael Koch <konqueror@gmx.de> + + * gnu/java/awt/EmbeddedWindow.java + (setHandle): Use java.awt.Component.getPeer() instead of + java.awt.Component.peer directly. + 2004-02-10 David Jee <djee@redhat.com> * gnu/java/awt/peer/gtk/GtkButtonPeer.java diff --git a/libjava/gnu/java/awt/EmbeddedWindow.java b/libjava/gnu/java/awt/EmbeddedWindow.java index 24bd107..ba0184a 100644 --- a/libjava/gnu/java/awt/EmbeddedWindow.java +++ b/libjava/gnu/java/awt/EmbeddedWindow.java @@ -108,8 +108,8 @@ public class EmbeddedWindow extends Frame throw new RuntimeException ("EmbeddedWindow is already embedded"); this.handle = handle; - if (peer != null) - ((EmbeddedWindowPeer) peer).embed (this.handle); + if (getPeer() != null) + ((EmbeddedWindowPeer) getPeer()).embed (this.handle); } /** |