Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JScrollPane that resizes itself  RSS feed

Ko Wey
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A question for the staff/customers of this excellent saloon.
Consider a JScrollPane. When the content resizes (gets very much smaller), the JScrollPane does not resize, and that's what I want. So I think that I'm going to be clever and I make an extra JScrollPane that does just that:

It works fine...if I have only one of this custom JScrollPane-things. When I have more, I get a StackOverFlowError! The poison, I think, lies in the line getParent().validate(); or does it?

Thanks for your consideration.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!