aspose file tools*
The moose likes Applets and the fly likes how to get width and locationOnScreen of browser where applet is embedded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "how to get width and locationOnScreen of browser where applet is embedded" Watch "how to get width and locationOnScreen of browser where applet is embedded" New topic
Author

how to get width and locationOnScreen of browser where applet is embedded

f jimenez
Ranch Hand

Joined: Mar 14, 2007
Posts: 30
hello guys,

is there a way to get the properties of the browser where an applet is embedded? i want to know the location on screen, width and visible rectangle of the browser...

is this possible?

thanks a lot.


if you can't be the sun, be a star...<br />もし たいように なれないたら ほしに なれ。
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39530
    
  27
You maybe able to use LiveConnect to access the JavaScript window object and its various properties (innerHeight, innerWidth, outerHeight, outerWidth). The Plugin Developer Guide has an example of an applet that does this. I don't think the location of the window on the screen is available.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get width and locationOnScreen of browser where applet is embedded
 
Similar Threads
Applet Fails to load in IE for the first time at random times giving Exception in java console
Embed JFrame in Applet
how to override width and height params in applet tag
applet and browser problem
Servlet can Call an Applet