Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » CheckBox AddMouseListener Issue
CheckBox AddMouseListener Issue [message #152380] Wed, 29 September 2004 12:20 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
>
>
>
Re: CheckBox AddMouseListener Issue [message #153339 is a reply to message #152463] Thu, 07 October 2004 18:43 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Try ActionListener or ChangeListener.

"Justin D'aruja" <justinaruja@isletsystems.com> wrote in message
news:cjgc34$blq$1@eclipse.org...
> 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(
istener );
> >
> > 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
> >
> >
> >
Previous Topic:Preferred size - please help
Next Topic:Newbie - Where do i start
Goto Forum:
  


Current Time: Thu Apr 18 00:59:46 GMT 2024

Powered by FUDForum. Page generated in 0.03610 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top