phamow / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

Fest Swing doesn't support dual screens application #316

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a swing application with two frames with a dual screen computer.
2. Put one frame per screen.
3. Fest swing fails because it checks that GUI operations are reachable by
testing the window size.

What is the expected output? 

I expect Fest Swing to do Gui operations on the second screen.

What do you see instead?

You got this exception :

org.fest.swing.exception.ActionFailedException: The component to click is
out of the boundaries of the screeen

What version of the product are you using? On what operating system?

I use Windows XP SP3, JDK 1.5.0_11, Fest Swing 1.2a3

Please provide any additional information below.

This bug is due to the method isPointInScreenBoundaries.
Which code is :

private boolean isPointInScreenBoundaries(Point p) {
    Rectangle screen = new
Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
    return screen.contains(p);
  }

But with a two screens application, the operations to the second screen are
valides but are considered out of Bounds by Fest.

Original issue reported on code.google.com by fabien.c...@gmail.com on 5 Oct 2009 at 7:54