diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 17:46:28 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 17:46:28 +0000 |
commit | 05a2aab51633943f42586e2bfe03ef48ee6d4ab2 (patch) | |
tree | 4ca1d802dbb27441ba3bc2e1467025d50a50ebcb /libjava | |
parent | f43aa01a1389a484e95192db909f5f21a162241c (diff) | |
download | gcc-05a2aab51633943f42586e2bfe03ef48ee6d4ab2.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77605 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-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 8134d7ea4ba..03fbdba37a4 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 24bd107bd2b..ba0184a6307 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); } /** |