[1589] in java-interest
Re: how to use AWT in an Applet???
daemon@ATHENA.MIT.EDU (Andrew Gilmartin)
Fri Sep 8 16:08:24 1995
Date: Fri, 8 Sep 95 12:59:19 EDT
To: reusr1@info.isbiel.ch (Ruben Reusser)
From: ajg@cadre.com (Andrew Gilmartin)
Cc: java-interest@java.sun.com
When I asked this question for alpha2 I was told that AWT can not be used in
Applets and that this restriction would be lifted in beta. In the meantime,
there is nothing stopping you opening your own windows from within an
Applet. (For an example see the source to Surf-o-matic.) Then, after beta
arrives you need only fixup your GUI a little (?) to embed the window.
-- Andrew
>> Hi Ruben:
>>
>> try: in the start() method in your applet class, using : item.parent as the
>> container to create your awt.List object.
>>
>
> thats what I thought to use, but my List then had been attached to the HotJava
> Window and not to my applet...
>
>
>import browser.*;
>import awt.*;
>
> so here is my sourcecode...
>
>class Test extends Applet {
>
> List myList;
>
> public void start() {
> myList = new List(item.parent, null, "title",10,false);
>
> myList.addItem("tested now...1");
> myList.addItem("tested now...2");
> myList.addItem("tested now...3");
>
> myList.map();
> }
>}
>
>---------------------------------------------------------------------
> visit my java applets at http://www.isbiel.ch/~reusr1
>---------------------------------------------------------------------
>-
>Note to Sun employees: this is an EXTERNAL mailing list!
>Info: send 'help' to java-interest-request@java.sun.com
>
>
--
Andrew Gilmartin
Cadre Technologies Inc.
ajg@cadre.com
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com