aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes [SWT] Creating a Tracker stops MouseUp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "[SWT] Creating a Tracker stops MouseUp" Watch "[SWT] Creating a Tracker stops MouseUp" New topic
Author

[SWT] Creating a Tracker stops MouseUp

Toby Weston
Greenhorn

Joined: Dec 20, 2006
Posts: 6
Hey Folks,

Take a look at this code snipet, creating a Tracker on MouseDown for some reason means that the MouseUp event is never captured. Any ideas why?

Also, should I be closing and/or disposing the tracker directly after the open?

Thanks

Toby Weston
Greenhorn

Joined: Dec 20, 2006
Posts: 6
I may have answered my own question!

It seems that when the Tracker is created it acts like a dialog with its own event loop, which I take to mean its modal and blocks the other events being handled.

Therefore, I can just add code that I'd previously assumed would go into the MouseUp right after the call to tracker.open(), for example;

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [SWT] Creating a Tracker stops MouseUp
 
Similar Threads
Problem in checking close event in Shell class of SWT
Listeners in SWT
Good design or should I try something else
Exception in thread "AWT-EventQueue-0" org.eclipse.swt.SWTException: Invalid thread access
Swing + SWT