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
Post a Comment