code: public void adjustmentValueChanged(AdjustmentEvent _adjustmentEvent) {
          switch (_adjustmentEvent.Type.getValue()){
              case AdjustmentType.ADJUST_ABS_value:
                  System.out.println( "The event has been triggered by dragging the thumb..." );
                  break;
              case AdjustmentType.ADJUST_LINE_value:
                  System.out.println( "The event has been triggered by a single line move.." );
                  break;
              case AdjustmentType.ADJUST_PAGE_value:
                  System.out.println( "The event has been triggered by a block move..." );
                  break;
          }
          System.out.println( "The value of the scrollbar is: " + _adjustmentEvent.Value);
      }
docs: /*## XAdjustmentListener ##