Skip to main content

? Label that can handle ActionEvent

2 replies [Last post]
kid24
Offline
Joined: 2008-08-14

Hi,
I need a Label, that has the behavior of Hyperlink. So I've extended the Label class and changed something to make appropriate GUI view. For now I need to process ActionEvent, but Label class doesn't have addActionListener(...) method. How could I handle this limitation?

Message was edited by: kid24

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Hi,
use a button and set its border to null using b.getStyle().setBorder
(null);

> Hi,
> I need a Label, that has the behavior of Hyperlink. So I've
> extended the Label class and changed something to make appropriate
> GUI view. For now I need to process ActionEvent, but Label class
> doesn't have addActionListener(...) method. What can I handle this
> limitation?
> [Message sent by forum member 'kid24' (kid24)]
>
> http://forums.java.net/jive/thread.jspa?messageID=294602
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

kid24
Offline
Joined: 2008-08-14

Yep. I've already got it :) Anyway thanks for your support! And many thanks for a project :) It is really cool staff.