Hi Edward,
You can just draw your image in paintComponent, install a mouse
listener for your component and detect mouse button clicks, check
the coordinates of the mouse and react appropriately.
Check out demo/applets/ImageMap demo applet, which is shipped with
j2sdk. It does essentially that.
Thank you,
Dmitri
On Thu, Jul 10, 2003 at 09:37:09AM -0700, ed banfa wrote:
> Hello all
> I am trying to build an app that uses custom components, actuall I have an imag of
> a mobile phone and I would like to donate the phones buttons as my app controls and
> the phones screen as a video display. The problems that I have are mainly how to
> specify that the buttons are the controls, I know how to override the
> paintConponent(Graphics g){} method but the problem is actually with positioning,
> how do I place the buttons in the right place and how do I specify that the screen
> of the phone is where I would like to place me video display component. I hope I am
> being clear in my explaination of my problem and I would sincerely appreciate any
> help or hints I could get.
> Thanks alot
> sincerely
> Edward
>
>
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".