src code
Component#right() → Number
Returns the number of pixels from left side of the screen to the right side of the Component.
Component