From d150822e55e642d3676857ca9f009d2951405e36 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 18 Jan 2001 00:43:17 +0000 Subject: * java/bean/Beans.java (instantiate): enable Applet code from Classpath From-SVN: r39105 --- libjava/java/beans/Beans.java | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'libjava/java/beans/Beans.java') diff --git a/libjava/java/beans/Beans.java b/libjava/java/beans/Beans.java index 08e5623..e59b04b 100644 --- a/libjava/java/beans/Beans.java +++ b/libjava/java/beans/Beans.java @@ -28,7 +28,7 @@ executable file might be covered by the GNU General Public License. */ package java.beans; import java.io.*; -// import java.applet.*; +import java.applet.*; import gnu.java.io.*; /** @@ -116,16 +116,14 @@ public class Beans { } } -/* FIXME - Turned off since java.applet doesn't exist for libgcj. - * FIXME if(bean instanceof Applet) { - * FIXME Applet a = (Applet)bean; - * FIXME //a.setAppletContext(???); - * FIXME //a.setStub(???); - * FIXME if(serStream == null) { - * FIXME a.init(); - * FIXME } - * FIXME } - * FIXME ********************************************************/ + if(bean instanceof Applet) { + Applet a = (Applet)bean; + //a.setAppletContext(???); + //a.setStub(???); + if(serStream == null) { + a.init(); + } + } return bean; } -- cgit v1.1