AWT Labels with Action Listner
Hi ,
I'm doing some programming for parm pc using java 1.1.8, I have use some labels to act as http links by anabling the mouslistener (mouseClick() -> Event) but in palm this mouse click is not working perfectly but the actionlistner for buttons are running as in PC , SO can anyone know how to add a actionlistener to a Label
[351 byte] By [
jasankama] at [2007-9-26 4:34:42]

try it this way:
you know where your label is placed. if a mouseclick is registered the event contains the mouseposition too, ok?
now test wether the mouseposition is in the bounds of the label.
example
int x=Event.x;
int y=Event.y;
Rectangle r=label1.getBounds(); //this returns a Rectangle
if(r.conatins(x,y)).... // do whatever you want
try it, I hope it works
regards