[1570] in java-interest
Re: how to use AWT in an Applet???
daemon@ATHENA.MIT.EDU (Ruben Reusser)
Fri Sep 8 06:45:10 1995
Date: Fri, 8 Sep 1995 10:02:26 +0200
From: reusr1@info.isbiel.ch (Ruben Reusser)
To: java-interest@java.sun.com
> 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