textbender.o.awt
Class AdjustableX

java.lang.Object
  extended by AdjustableX

public final class AdjustableX
extends Object

Adjustable utilities.


Method Summary
static void bounceNextAdjustmentToMinimum(Adjustable adjustable)
          Will re-adjust to minimum, following the next adjustment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bounceNextAdjustmentToMinimum

public static void bounceNextAdjustmentToMinimum(Adjustable adjustable)
Will re-adjust to minimum, following the next adjustment.

For example: use as a workaround to prevent a viewport from tracking the bottom of its view, as JScrollPane sometimes does when its view changes size. That is hard to correct, because the adjustment may occur later, after the size change. To catch and correct it, simply call this on the vertical scroll bar.