tools/Jemmy/JemmyFX/src/org/jemmy/fx/WindowList.java

Print this page

        

@@ -45,14 +45,11 @@
         GetAction<List<?>> scenes = new GetAction<List<?>>() {
 
             @Override
             public void run(Object... parameters) {
                 LinkedList<Window> res = new LinkedList<Window>();
-                Iterator<Window> windows = Window.impl_getWindows();
-                while(windows.hasNext()) {
-                    res.add(windows.next());
-                }
+                res.addAll(Window.getWindows());
                 setResult(res);
             }
         };
         try {
             Root.ROOT.getEnvironment().getExecutor().execute(Root.ROOT.getEnvironment(), true, scenes);