jQuery in Action, 3rd edition
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
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 http://math.hws.edu/javanotes/
If not succesful, mail me gragert@math.utwente.nl
after looking at this 'example' ? http://www.math.utwente.nl/~gragert/Live_Math/TaylorError.html
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: http://aspose.com/file-tools
subject: 2 Questions + 1 Meta-Question
It's not a secret anymore!