Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JScrollPane update  RSS feed

 
R Johnson
Greenhorn
Posts: 28
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you change the size of an Object that is a component of JScrollPane what method allows resizing of the scrollbars so that it knows it's looking at a smaller/larger portion of the image?
in my code I tried using paint and revalidate and invalidate none of which gives the desired effect

 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried calling revalidate on the viewport?
 
R Johnson
Greenhorn
Posts: 28
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That works great thanks Pete!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!