Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Double click event in Combo
Double click event in Combo [message #448184] Wed, 05 January 2005 02:20 Go to next message
Eclipse UserFriend
Originally posted by: tanut.sanuk.biz

combo.addMouseListener(new MouseListener() {
public void mouseDoubleClick(MouseEvent e) {
System.out.println("double click!!!");
}
public void mouseDown(MouseEvent e) { }
public void mouseUp(MouseEvent e) { }
});

It does not work!!
_____________
|_________|_v_|

I want to have a combo-box which user double-click on it, it will change to
the next element in the list. But now I can't detect its event.

ps. my Eclipse is ver. 2.1

Thanks you.
Tanut Apiwong
Re: Double click event in Combo [message #448197 is a reply to message #448184] Wed, 05 January 2005 09:59 Go to previous message
Eclipse UserFriend
Should be fixed in the latest SWT from HEAD. Try a nighly build.

"Tanut Apiwong" <tanut@sanuk.biz> wrote in message
news:crg4dr$b41$1@www.eclipse.org...
> combo.addMouseListener(new MouseListener() {
> public void mouseDoubleClick(MouseEvent e) {
> System.out.println("double click!!!");
> }
> public void mouseDown(MouseEvent e) { }
> public void mouseUp(MouseEvent e) { }
> });
>
> It does not work!!
> _____________
> |_________|_v_|
>
> I want to have a combo-box which user double-click on it, it will change
to
> the next element in the list. But now I can't detect its event.
>
> ps. my Eclipse is ver. 2.1
>
> Thanks you.
> Tanut Apiwong
>
>
Previous Topic:Multi-threaded and org.eclipse.widgets.Display
Next Topic:button with image on PDA
Goto Forum:
  


Current Time: Sun Jul 06 05:24:05 EDT 2025

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

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

Back to the top