aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Click On Image. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Click On Image." Watch "Click On Image." New topic
Author

Click On Image.

P Jain
Ranch Hand

Joined: Jul 31, 2004
Posts: 52
Hi!
I just want to insert an Image in a Frame and perform some function by clicking some specific part of the image.
Like if my image has two labels,I want to perform two different function by clicking on these two label.


Regards<br />P Jain
Pat Hays
Ranch Hand

Joined: Aug 20, 2004
Posts: 138
Hello,

Can you give more details about how you insert an Image in a Frame? by setIcon to JLabel, or by overriding the repaint() method of JLabel?


Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535

[ August 29, 2004: Message edited by: Craig Wood ]
 
 
subject: Click On Image.