Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JScrollPane scroll speed

Status
Not open for further replies.

mackey333

Technical User
May 10, 2001
563
US
Is there any way to speed up the scrolling of a JScrollPane? I am trying to scroll through a list of JPanels located on a master JPanel which is put in to the viewport. The program works fine, but the scrolling is ridiculously slow. I have tried all three options under JViewport.setScrollMode() with no effect on the scrolling speed. Is there anything else I can try?

-Greg :-Q

flaga.gif
 
I suspect your speed issues lie with the complexity of the panels you are scrolling. As they scroll, bits of them obviously need to be repainted. If this is a costly process because of panel complexity and content, then scroll speed will suffer.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top