This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Applets and the fly likes 2 Questions + 1 Meta-Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "2 Questions + 1 Meta-Question" Watch "2 Questions + 1 Meta-Question" New topic

2 Questions + 1 Meta-Question

Kevin Jaffe

Joined: Jun 07, 2001
Posts: 15
My question 1 is: how can I make an applet that spawns its own
separate window? The effect I'm after is that when the applet is
loaded by the browser, it spawns a separate small window (without
any of standard browser buttons: Back, Forward, etc.), in which
it runs. The aim is to let the user keep the applet unotrusively
around while he/she continues browsing. How is this done?
My question 2 is: assuming that the behavior described in
question 1 is possible, is it possible for the applet to query
the browser to find out the URL the browser is currently
My meta-question: which of the dozens of Java books would have
the answer to this question? Is there an "advanced" applets
book out there? (My search of Amazaon was not fruitful.)
Many thanks!
Peter Gragert
Ranch Hand

Joined: Jan 16, 2001
Posts: 424
Look at this online text about java
Somewhere inside is an example of what you need
If not succesful, mail me
after looking at this 'example' ?
go to the 'green' button (an applet) and push it.
If thats what you want ...
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Yes, you can have a frame in your applet... however, I know of no way that it could detect what page your browser is currently on... The only URL you can get directly from the applet is the URL that the applet is running from...

Here is a short example of a frame in an applet...

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: 2 Questions + 1 Meta-Question
It's not a secret anymore!