I am trying to develop my first java applet - essentially some navigation
on the side of a site.
I am trying to add images to the main panel, and then pick up mouse and action
events. As I have just discouvered, an image object is not an event source.
Is there any way of making it so?
If so, would this be by extending/implementing a component, or the other
way around?
Toby
04-13-2000, 12:48 PM
Raida
Re: AWT Event handling
Toby,
I had worked with something similar.
I did extend Componet in class MyImage.
Since addMouseListener(MouseListener) is a method inside the Component class
if we take a look at the java API Specifications
"Toby" <tmatthews@signals.co.uk> wrote:
>
>I am trying to develop my first java applet - essentially some navigation
>on the side of a site.
>
>I am trying to add images to the main panel, and then pick up mouse and
action
>events. As I have just discouvered, an image object is not an event source.
>
>
>Is there any way of making it so?
>
>If so, would this be by extending/implementing a component, or the other
>way around?
>
>Toby