()
| 207 | adderRunnable.setRenderer(panel3d); |
| 208 | new Thread() { |
| 209 | public void run() { |
| 210 | for (int i = 0; i < NUMBER_OF_PIPLINE_TO_BUILD; i++) { |
| 211 | try { |
| 212 | adderRunnable.setActor(exec.take().get()); |
| 213 | SwingUtilities.invokeAndWait(adderRunnable); |
| 214 | panel3d.repaint(); |
| 215 | } catch (InterruptedException e) { |
| 216 | return; |
| 217 | } catch (ExecutionException e) { |
| 218 | e.printStackTrace(); |
| 219 | } catch (InvocationTargetException e) { |
| 220 | e.printStackTrace(); |
| 221 | } |
| 222 | } |
| 223 | }; |
| 224 | }.start(); |
| 225 | } |
| 226 |