From 05a2aab51633943f42586e2bfe03ef48ee6d4ab2 Mon Sep 17 00:00:00 2001 From: mkoch Date: Tue, 10 Feb 2004 17:46:28 +0000 Subject: 2004-02-10 Michael Koch * 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 --- libjava/gnu/java/awt/EmbeddedWindow.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libjava/gnu/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); } /** -- cgit v1.2.1