File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Launching a new Window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Launching a new Window" Watch "Launching a new Window" New topic
Author

Launching a new Window

Jamie Wool
Ranch Hand

Joined: May 03, 2004
Posts: 49
How do you create a new applet window from a htme link. Basically i have a link which is supposed to launch a seperate applet(having prob doing this) which is meant to act as a media play, playing a specific file(passed var).

Anyway been trawling the net for a reasonable tutorial or example code without much success. Everything i find is overly complex or deprecated or just plain useless.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

I'd post the code, but the board thinks I'm trying to load an exploit. Simple enough: Make an anchor tag with an onClick action which opens a new window:
JavaScript Window reference
You can also invoke Java Applet methods from JavaScript. This would be useful to pass along the file you wish to play:
JavaScript to Java


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Jamie Wool
Ranch Hand

Joined: May 03, 2004
Posts: 49
Maybe i worded it wrong, i don't want to simply bring up another browser window. The pop up is supposed to be an independant applet not a browser window..

code so far..

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

You can have an applet launch a new frame or a browser open a new window. I don't know of any way a browser can open an applet except by loading HTML that referrs to the applet in a new browser window. Look at the link above, the section titled "Window Features in window.open()". The new browser window can be created with no decorations. That may be your best bet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Launching a new Window