Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting the Location of an Applet Component Relative to the Browser

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic