Util.waitForIdle(robot);
Window window = new Window(owner_frame);
Button btn1 = new Button("button for focus");
window.add(btn1);
window.pack();
<BUG>window.setLocation(0, 300);
</BUG>
window.setVisible(true);
Util.waitForIdle(robot);
Frame another_frame = new Frame("Another frame");

Util.waitForIdle(robot);
Window window = new Window(owner_frame);
Button btn1 = new Button("button for focus");
window.add(btn1);
window.pack();
window.setLocation(0, HEIGHT + 100);
window.setVisible(true);
Util.waitForIdle(robot);
Frame another_frame = new Frame("Another frame");
