File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Help" Watch "Help" New topic



Joined: Aug 14, 2001
Posts: 1
Can anyone tell me how to make an applet come up in its own window, rather than being embedded on the web browsers HTML page.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17282

There always has to be a web page to "anchor" the applet, but you can make it open a new window using AWT or Swing. This window is usually prominently marked as being a Java Applet Window so you can't do something evil such as make a bogus web browser window and prompt for a password (such things have been known to happen, alas).
The anchor point can be fairly small, but the browser usually forbids it from being totally invisible - once again, they're trying to make sure the user isn't being tricked.
The two primary distinguishing features of applets are, first, that they must run in a container (such as a web browser) and two, that they run in a feature-restricted environment (sandbox).

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Help
It's not a secret anymore!