Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apple running in browser window; How to get ...

 
Panda Mima
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet running in browser window. It is a signed applet, because we need to work with local files.
What I need to do is to find out what is the X and Y on the screen of the current browser window, and what is the size of this browser window.

Is there are any way to do that?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java can't do that, but in JavaScript you can use the Window.outerHeight und outerWidth properties to find the window dimensions. I don't think you can get at the X/Y coordinates of the window on the screen.

You can access JavaScript from an applet through LiveConnect; see here for details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic