[1591] in java-interest

home help back first fref pref prev next nref lref last post

Re: how to use AWT in an Applet???

daemon@ATHENA.MIT.EDU (Lin Huang)
Fri Sep 8 16:14:27 1995

To: Ruben Reusser <reusr1@info.isbiel.ch>
Date: Fri, 08 Sep 95 08:51:56 -0500
From: Lin Huang <linh@connectsoft.com>
CC: java-interest <java-interest@java.sun.com>

Hi Ruben:

add:                         myList.move(item.x, item.y);
before the code line:  myList.map();

(item here which is AppletDisplayItem object is just a displayitem in its
parent).

Lin 
-------- REPLY, Original message follows --------

> Date: Friday, 08-Sep-95 10:02 AM
> 
> From: Ruben Reusser            \ Internet:    (reusr1@info.isbiel.ch)
> To:   java-interest            \ Internet:    (java-interest@java.sun.com)
> 
> Subject: Re: how to use AWT in an Applet???
> 
> > 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
> 

-------- REPLY, End of original message --------


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post