Can java applet be as big as the browser window

  • Topic: Java 
  • Thread starter Thread starter Ulysees
  • Start date Start date
  • Tags Tags
    Java Window
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 4K views
Physics news on Phys.org
It might be a little tricky to get resizing working properly, but yes, it should be possible. If you intend to run it full-screen, though, you might as well run it with Java's appletviewer program instead.

- Warren
 
Try using 100% for the width and height on the applet's html tag.

It's also possible to dynamically write a Java applet's tag onto the page using Javascript. So you can obtain the window dimensions in javascript, and then write the applet's tag with the appropriate width/height (you'd need to update the dimensions on page resize, using onresize) - not ideal but it's an option.
 
Last edited: