how do I get the actual screen position of an element, say a Button? If I use getBounds I get the position relative to the parent container, not the screen...
Have you tried Component.getLocationOnScreen()
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With