Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Launching a new Window

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 9612
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jamie Wool
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9612
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic