[313] in java-interest
Re: access to container or window
daemon@ATHENA.MIT.EDU (Jonathan Payne)
Wed Jun 14 14:18:17 1995
Date: Wed, 14 Jun 1995 10:54:02 -0700
From: jpayne@starwave.com (Jonathan Payne)
To: rizzotti.sven@ch.swissbank.com
Cc: java-interest@java.sun.com
In-Reply-To: <9506141304.AA24617@chbslu01.iis.ch.swissbank.com> (message from Sven Rizzotti on Wed, 14 Jun 95 15:04:10 +0200)
Reply-To: jpayne@starwave.com
> Mime-Version: 1.0 (NeXT Mail 3.3 v118.2)
> From: Sven Rizzotti <rizzotti.sven@ch.swissbank.com>
> Date: Wed, 14 Jun 95 15:04:10 +0200
> Sender: owner-java-interest@java.sun.com
> Precedence: bulk
> X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
> Content-Type: text/plain
> Content-Length: 286
>
> A lot of the classes like List, TextField etc. need a container which can be
> a form or a window. where do I get this variable from inside my applet
> subclass ?
If you want to make an applet, you are out of luck. If you want to
create your own separate Frame, then the container is the Frame.
With Applets, you cannot embed native window items. This is a major
drawback of the current system, which is why it's being redone. It's
also why Arthur whipped together the Embedded Component demo, and why
I picked it up and improved it to the point that it's more usable for
sophisticated applets.
If you want a scrolling list in an applet, you must subclass
AppComponent and create a scrolling list. It wouldn't be that hard to
do. I am partially done implementing a full multi-line text widget as
an AppComponent, so that I can have real text inside my applets. It
works very well. A scrolling list is little more than static version
of a text widget.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com