title: getLocationOnScreen() vs getLocationInWindow()
body: <p>What is the difference between screen and view in the context of these two methods?</p>
  
  <p>I have a button and I want to get the x coordinate of its center.</p>
  
  <p>I guess this would be enough:</p>
  
  <pre><code>public int getButtonXPosition() {
      return (button.getLeft()+button.getRight())/2;
  }
  </code></pre>
  
  <p>but then, what difference would it make if I would have used </p>
  
  <p><code>getLocationOnScreen()</code> or <code>getLocationInWindow()</code> ?</p>
  
  <p>(adding half of the button's width to that, of course)</p>