Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Double click event in Combo
Double click event in Combo [message #448184] Wed, 05 January 2005 07: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 14:59 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
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: Tue Oct 27 13:55:47 GMT 2020

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

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

Back to the top