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

Print this page

        

*** 45,58 **** 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()); ! } setResult(res); } }; try { Root.ROOT.getEnvironment().getExecutor().execute(Root.ROOT.getEnvironment(), true, scenes); --- 45,55 ---- GetAction<List<?>> scenes = new GetAction<List<?>>() { @Override public void run(Object... parameters) { LinkedList<Window> res = new LinkedList<Window>(); ! res.addAll(Window.getWindows()); setResult(res); } }; try { Root.ROOT.getEnvironment().getExecutor().execute(Root.ROOT.getEnvironment(), true, scenes);