Exact position of a Java graphic element on a screen?
awt, java, label, screen, user-interface
Solution
Try using `Component.getLocationOnScreen()`.
Problem
I have a question. In Java, how do you get the screen position of a graphic element, let's say a Label? If I use getBounds, I'm getting the relative position inside the container, not the exact position of the screen. I would kindly appreciate if someone can help me out here...thanks!