Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JScrollPanes sync in development but not in live environment

 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I have two JScrollPanes that I keep in sync with one another. When the one JScrollPane is scrolled, the second one programatically scrolls to the same point. This works while the mouse is busy moving the bar.

This works fine in our development environment, but as soon as we run the application from the installed version, the JScrollPanes don't keep in sync anymore. Now it is only when the mouse is finished moving the bar that the second bar responds. I have double checked that were are building the correct copy of the source code.

Could anyone give me any pointers?

Many kind regards,
Rachel
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you running them using the same Java version? Same operating system?
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

We found that the dev version was using 1.4.2_06 while the live one was running 1.5

Thanks for the hint as I would never have thought of that!

Cheers and hope you have a gret day!
Rachel
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have come now to deploying this application and we cannot prevent users from using 1.5 where this unsyncing of the jscrollpanes occurs.

What can I do to make these panes stay in sync on 1.5?




Many thanks,
Rachel
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't use 1.5, but this might be worth a try (works in 1.4)

 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Michael!

That's sorted it out!

Hope you have a super day!
Rachel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!