Re: [abbot-users] scrollToVisible ?
| From:Timothy Wall [twall@masked-domain] |
| Sent on:Fri, 14 Mar 2008 14:32:47 -0400 |
On Mar 14, 2008, at 2:11 PM, Andrew Nelson wrote:
> When I say something like:
>
> new JComponentTester.actionClick(location) with a component wrapped
> in a
> JScrollPane, I'm rather inconsistently getting the following error.
>
> Could not make visible by scrolling the point (175,175) on
> org
> .robotery
> .acceptance
> .component
> .SimpleComponent
> [component
> ,-104
> ,-124,500x500
> ,alignmentX
> =
> 0.0
> ,alignmentY
> =
> 0.0
> ,border
> =
> ,flags
> =
> 0
> ,maximumSize
> =,minimumSize=,preferredSize=java.awt.Dimension[width=500,height=500]]
Are your scrollbars visible and enabled? Is the component moved on
scrollRectToVisible? If the component isn't moved, then the problem
is in the component or its hierarchy.
If it *is* moved, then something is wrong with reading back its new
location.
>
> Can anyone give me any hints regarding why this would happen. If I
> looked through the applicable code I see the logic goes as follows.
>
> Try to scroll to the visible section.
> check to see if the visible section was made visible
> if not throw exception.
>
> I just don't understand why JComponent.scrollRectToVisible would fail
> like this.
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
abbot-users mailing list
[abbot-users@masked-domain]
https://lists.sourceforge.net/lists/listinfo/abbot-users
Other messages in this topic