"Kevin" <> wrote in message
news:q2bCb.58323$bC.24601@clgrps13...
.....
> All I'm trying to do is open a window that displays my applet and lets me
> display images and draw a few things.
OK. This is clearer. Let's take a few steps back. Why?
You say you want to display your applet
in a frame, but it seems you only need to
display a _string_ within the frame.
There are various ways to achieve that,
but first I would ask WHY you want to
pop-up a window (which will be branded
with words like 'Java Applet Window' or
such) outside a perfectly good browser
window. Applets are designed to do what
they do _inside_ a browser window..
Having something 'pop-up' is also considered
a web-design sin, as most users do not know
how to deal with pop-ups (and don't like them).
[ Of course.. - I have used them myself (pot,
kettle, black..!) ]
OK. Let us ignore the 'improperness' of
the pop-up and look at how to do it.
My experience with 'pop-ups' was when I
used an Applet that contained a button to
launch applications* (it is ridiculously simple)
* The applications were PToE, Calculet and
PocketPlanet, none of which attempted to
go outside the applet sandbox.
However, the Applet had little more to
do with the application once it was launched
(and certainly is not contained within it)
One thing you seem to be missing is that
your initial applet can only be located in _one_
place. It _starts_ in the browser window,
launches an external window, then tries to
put _itself_ in the new window.
(talk about pulling yourself up by the
bootstraps!)
Will not work. It might _conceivably_ work
if you created a second applet, or a second
instance of the first, but the one launching the
ext window is stuck in the browser that hosts it.
Of course, you could make the original applet
0x0 in size, launch the ext win, and do all your
components etc. in that - the user would be
unaware the applet ever existed (barring the
very obvious message at the bottom of the
ext window)
Another thing to note is that the ext window
is quite insubstantial, if the user surfs to another
page, it will vanish off screen..
So, I will not ramble on further, but instead
ask _why_ you want to do this the way you
describe, or better still, tell us what you want
the user to experience as they surf into the
page.
I should point out though, the chances of
you (or anyone else) using these techniques
to defraud or fool web-surfers, are slightly
less than that of a snow-ball in Hades.
If that is your intent, stop wasting your time.
--
Andrew Thompson
*
http://www.PhySci.org/ PhySci software suite
*
http://www.1point1C.org/ 1.1C - Superluminal!
*
http://www.AThompson.info/andrew/ personal site