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

Browser window size from Applet

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to open a new browser window using the applet's showDocument call.
My problem is -in Netscape the new window open full size, but in IE it opens half-size.
I want it full-size/maximised!!
How do i control the size of IE window from the applet???
Increasing the size of applet does not help!
Pleeease help me!
Thanks,
Anwesha.
 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anvi,
I don't see a showDocument function in the JApplet API.
I've solved a similar problem by calling javascript functions in the page that hosts the applet. Docs for doing that are here.
http://java.sun.com/products/plugin/1.3/docs/jsobject.html
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am using the showDocument in AppletContext's API. I cannot use Java Script. Is it possible to do the same with simple Java applet??
Thanks a lot ,
Anwesha.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't have that level of control over how the browser will handle (or even if it actually *will* handle) the showDocument() call. The new window is probably just the default or the last size the application was at. I don't think there's any way to control this.
 
rubbery bacon. rubbery tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic