title: JScrollPane JScrollBar accommodation
body: <p>I have a Object in JScrollPane. As Objects height increases and decreases, JScrollBars appear and disappear.</p>
  
  <p>Is there a way to detect when this is happening?</p>
  
  <p>I want to widen the whole JScrollPane when they appear so that Object doesn't get its rightmost part obstructed by JScrollBars and vice-versa.</p>