Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

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
Found what you were looking for? If not - continue at Wiki Index

Other messages in this topic

SenderDate sentSubject
Timothy Wall [twall@masked-domain]Mon, 17 Mar 2008 21:54:40 -0400Re: [abbot-users] scrollToVisible ?
Andrew Nelson [freeandy@masked-domain]Mon, 17 Mar 2008 17:12:54 -0500Re: [abbot-users] scrollToVisible ?
Andrew Nelson [freeandy@masked-domain]Fri, 14 Mar 2008 13:11:39 -0500[abbot-users] scrollToVisible ?

 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources