aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Getting the Location of an Applet Component Relative to the Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Getting the Location of an Applet Component Relative to the Browser" Watch "Getting the Location of an Applet Component Relative to the Browser" New topic
Author

Getting the Location of an Applet Component Relative to the Browser

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 568
I have defined my own custom Components running inside an Applet. I want to find their location relative to the browser window. Component.getLocation() returns the location relative to the parent only. Is there anyway to find the location relative to the browser window? Looks like I have to recursively calls getLocation() for all the parents until reaching the Applet. Are there any other alternatives?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Getting the Location of an Applet Component Relative to the Browser
 
Similar Threads
Applet runs only if class file is in the same dir
Basic concept in Applet-Servlet communication ?
Locating Java Dialogs relative to a Browser Window
Apple running in browser window; How to get ...
Applet-Servlet Communication