P
Peter Ashford
Hi Guys
I'm probably doing something stupid... but:
I've got a JFrame with borderlayout. In the centre box, I've got a
JPanel. If I add a mouselistener to the jframe, it works fine (but
I've got coords relative to the frame which is correct but not what I
want - I want coords relative to the panel). However, when I add the
mouselistener to the panel, I get no mouseevents being returned at all.
Any ideas in what way I might be being stupid?
TIA
Peter.
I'm probably doing something stupid... but:
I've got a JFrame with borderlayout. In the centre box, I've got a
JPanel. If I add a mouselistener to the jframe, it works fine (but
I've got coords relative to the frame which is correct but not what I
want - I want coords relative to the panel). However, when I add the
mouselistener to the panel, I get no mouseevents being returned at all.
Any ideas in what way I might be being stupid?
TIA
Peter.