HOW TO CONSIDER IMAGE AS AWT COMPONENT
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bharat_Baweja
Posted On:   Wednesday, September 26, 2001 01:31 AM

I WANT TO TREAT AN IMAGE AS COMPONENT SO THAT I CAN RECOGNIZE IT ON MOUSE CLICK EVENT SUCH LIKE METHOD
getComponentAt(x,y) .

Re: HOW TO CONSIDER IMAGE AS AWT COMPONENT

Posted By:   Abey_Mullassery  
Posted On:   Friday, September 28, 2001 11:19 PM

You will have to use a component on which you paint this image and then use mouse on the component.


Try JLabel or so.
This will work well, especially if you do not want to rotate the image.

About | Sitemap | Contact