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.

From-SVN: r77605
This commit is contained in:
Michael Koch 2004-02-10 17:46:28 +00:00 committed by Michael Koch
parent 49d77e2275
commit 5e673ed855
2 changed files with 8 additions and 2 deletions

View file

@ -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);
}
/**