java - SWT: Is it possible to move multiple widgets at the same time? -


i implement animation widget based on user desired position , duration. however, if set 2 widgets move, can animate 1 @ time. when start moving widget 1000 ms. when timing 500ms, widget b should start moving 1000ms.

can possibly achieve through swt?

how about:

beginmovingwidgeta(); new thread(new runnable() {     @override     public void run () {         try {             thread.sleep(500);         } catch (interruptedexception e) {             e.printstacktrace();         }         beginmovingwidgetb();     } }).start(); 

(this assumes @ least beginmovingwidgeta asynchronous method.)


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -