CheckBox AddMouseListener Issue [message #152380] |
Wed, 29 September 2004 12:20 |
Eclipse User |
|
|
|
Originally posted by: justinaruja.isletsystems.com
Hello All,
I have a Figure (say Container). In this Container I have a
CheckBox. I add MouseListener to CheckBox , but MouseListener is only
Listening to Double Click event.
I want to make it Listen to "mousePressed" event
Please help me
Thanks in Advance
Justin
|
|
|
Re: CheckBox AddMouseListener Issue [message #152388 is a reply to message #152380] |
Wed, 29 September 2004 13:16 |
Eclipse User |
|
|
|
Originally posted by: ellinas_anogia.hotmail.com
Lets suppose that the CheckBox is the fist child of the Figure. Then you
have to add the MouseListener by this way:
((Figure)( figure.getChildren().get(0) ).addMouseListener( listener );
I hope to help you!
"Justin D'aruja" <justinaruja@isletsystems.com> wrote in message
news:cje912$kh9$1@eclipse.org...
> Hello All,
>
> I have a Figure (say Container). In this Container I have a
> CheckBox. I add MouseListener to CheckBox , but MouseListener is only
> Listening to Double Click event.
>
> I want to make it Listen to "mousePressed" event
>
>
> Please help me
>
>
> Thanks in Advance
>
> Justin
|
|
|
Re: CheckBox AddMouseListener Issue [message #152463 is a reply to message #152388] |
Thu, 30 September 2004 07:24 |
Eclipse User |
|
|
|
Originally posted by: justinaruja.isletsystems.com
Hello Dakanalis,
I tried same is happening (ie, CheckBox is only Listening to double
click).
Is Any Other solutions?
Thanks in Advance
Justin
Dakanalis wrote:
> Lets suppose that the CheckBox is the fist child of the Figure. Then you
> have to add the MouseListener by this way:
>
> ((Figure)( figure.getChildren().get(0)).addMouseListener( listener );
>
> I hope to help you!
>
> "Justin D'aruja" <justinaruja@isletsystems.com> wrote in message
> news:cje912$kh9$1@eclipse.org...
>
>>Hello All,
>>
>> I have a Figure (say Container). In this Container I have a
>>CheckBox. I add MouseListener to CheckBox , but MouseListener is only
>>Listening to Double Click event.
>>
>> I want to make it Listen to "mousePressed" event
>>
>>
>>Please help me
>>
>>
>>Thanks in Advance
>>
>>Justin
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03796 seconds