[1506] in java-interest
Re: The Window of an Applet??
daemon@ATHENA.MIT.EDU (Lin Huang)
Wed Sep 6 15:10:34 1995
To: Henry Koh Li-Chieh <henrykoh@regent.ncb.gov.sg>
Date: Wed, 06 Sep 95 08:55:27 -0500
From: Lin Huang <linh@connectsoft.com>
CC: java-interest <java-interest@java.sun.com>
Hi Henry:
You can try to use Applet.item.parent as the parent to construct the
TextAreas, Windows etc, and using item.x and item.y (the origin of Applet)
as the start point to position your objects.
Lin
-------- REPLY, Original message follows --------
> Date: Wednesday, 06-Sep-95 02:22 PM
>
> From: Henry Koh Li-Chieh \ Internet: (henrykoh@regent.ncb.gov.sg)
> To: java-interest \ Internet: (java-interest@java.sun.com)
>
> Subject: The Window of an Applet??
>
> Hi fellow Java programmers,
>
> How do I get the Window parent of an Applet for me to spawn other objects
like
> TextArea or TextField? I have a few TextAreas in my applet, but the
Container
> I used to construct the TextAreas was the one in
>
> Applet.item.parent,
>
> which gives the parent of the whole html page, ie the coordinate (0,0)
points
> to the origin of the whole html document rather than the origin of the
applet.
> I guess you can imagine the problems in aligning text windows in this way
!
>
> So which Container do I use to construct the TextArea such that (0,0)
refers
> to the origin of the Applet?
>
> Thanks
>
> Henry
> -
> 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