FEST

Scrolling doesn't work when the component is inside the screen boundaries but is not visible

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: FEST-Swing 1.2a4
  • Fix Version/s: FEST-Swing 1.2rc
  • Component/s: Swing
  • Labels:
    None
  • Environment:
    Windows Xp
  • Testcase included:
    yes
  • Number of attachments :
    2

Description

The problems is in the method BasicRobot#scrollIfNecessary(JComponent c, Point p) when we call method isPointInScreenBoundaries(c,p). This method returns true if the component is inside the screen dimensions(screen size). There are cases when the component is inside the screen size but is not visible(is inside a scroll pane). I added two files that reproduce the problem. In this example I try to click on a button that is not visible but is in a scroll pane. The resolution of my PC is 1440x900. After running the test you should see on your console printed "Clicked Button", but this doesn't happen.
I think the solution to this problem is to remove the check if the component is inside screen boundaries from method BasicRobot#scrollIfNecessary(JComponent c, Point p).

  1. FrameWithScroll.java
    27/Jan/10 11:13 AM
    2 kB
    Nicolae Bucalaete
  2. TestFrameWithScroll.java
    27/Jan/10 11:13 AM
    0.5 kB
    Nicolae Bucalaete

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: