Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

X and Y coordinates

843804Apr 27 2005 — edited Apr 27 2005
i am using a mouse listener to print out a JLable at a particular location on a JFrame. the method gets the x and y coordinates. however if the x and y courdinates returned were both 0. then the mouse whould be at the top left OF the JFrame .

How can i change it so that if the X and Y coordinates were 0 the mouse whould be at the bottom left of the JFrame.

Any help atall would be much appreciated. Thanks :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2005
Added on Apr 27 2005
2 comments
63 views