multiple events on same object

I am using SWT.

I have a sash that seperates a tree and a browser and I need to be able to do the following...

Drag the sash to any location within the view.

Double click the sash to hide the contents on the left of the sash (make it return to 0 x cord.). When the sash is double clicked again, the sash will return to whatever x coordinate that it was drug too or return to it's original cord. from the FormLayout.

I can do either fine, but I can't do both. When I do a sys.out.print and double-click the sash, it returns...

13

13

8

13 = SelectionEvent, 8 = MouseDoubleClick

This means that MouseDoubleClick is itself a SelectionEvent. Is there a way that they can coexist?

[738 byte] By [drew.smitha] at [2007-10-1 17:15:03]
# 1
You might have better luck asking this in an SWT forum instead of in a Sun forum, since SWT doesn't have anything to do with AWT or Swing.
Torgila at 2007-7-11 1:57:51 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...