From be36b6d0ddea7d6fab501cc44118d2d5daf750d8 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Mon, 18 Dec 2000 22:17:25 +0000 Subject: Removed additional addNotify() peer hacks. From-SVN: r38367 --- libjava/java/awt/Panel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libjava/java/awt/Panel.java') diff --git a/libjava/java/awt/Panel.java b/libjava/java/awt/Panel.java index a6e4f3e..8719695 100644 --- a/libjava/java/awt/Panel.java +++ b/libjava/java/awt/Panel.java @@ -32,8 +32,8 @@ public class Panel extends Container public void addNotify() { - if (getPeer() == null) - peer = (ComponentPeer) getToolkit().createPanel(this); + if (peer == null) + peer = getToolkit().createPanel(this); super.addNotify(); } } -- cgit v1.1