01: /*****************************************************************************
02: * *
03: * This file is part of the BeanShell Java Scripting distribution. *
04: * Documentation and updates may be found at http://www.beanshell.org/ *
05: * *
06: * BeanShell is distributed under the terms of the LGPL: *
07: * GNU Library Public License http://www.gnu.org/copyleft/lgpl.html *
08: * *
09: * Patrick Niemeyer (pat@pat.net) *
10: * Author of Exploring Java, O'Reilly & Associates *
11: * http://www.pat.net/~pat/ *
12: * *
13: *****************************************************************************/package bsh.util;
14:
15: import java.applet.Applet;
16: import java.awt.*;
17: import bsh.*;
18: import bsh.util.*;
19:
20: /**
21: Run bsh as an applet for demo purposes.
22: */
23: public class AWTDemoApplet extends Applet {
24: public void init() {
25: setLayout(new BorderLayout());
26: ConsoleInterface console = new AWTConsole();
27: add("Center", (Component) console);
28: Interpreter interpreter = new Interpreter(console);
29: new Thread(interpreter).start();
30: }
31: }
|