There appears to be an unseen border around my JPanel
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rhett_Hudson
Posted On:   Wednesday, January 2, 2002 08:03 PM

I've been trying to map mouse clicks within an extension of the JPanel class. My mouse listener is registered with my specialized class, but when I receive mouse clicks, they appear to be offset in both directions. My clicks on the x,y offset in my panel come back as x+4 and y+23. Is there some hidden offset that I need to take into account in order to get a true mapping?

About | Sitemap | Contact