Examples of addAdjustmentListener()


Examples of javax.swing.JScrollBar.addAdjustmentListener()

      AdjustmentListener[] alsx = sb.getAdjustmentListeners();
      for (int i = 0; i < alsx.length; i++)
        sb.removeAdjustmentListener(alsx[i]);
      sb.setMaximum(this.max);
      for (int i = 0; i < alsx.length; i++)
        sb.addAdjustmentListener(alsx[i]);
      break;
    case MIN:
      AdjustmentListener[] alsn = sb.getAdjustmentListeners();
      for (int i = 0; i < alsn.length; i++)
        sb.removeAdjustmentListener(alsn[i]);
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

      AdjustmentListener[] alsn = sb.getAdjustmentListeners();
      for (int i = 0; i < alsn.length; i++)
        sb.removeAdjustmentListener(alsn[i]);
      sb.setMinimum(this.min);
      for (int i = 0; i < alsn.length; i++)
        sb.addAdjustmentListener(alsn[i]);
      break;
    case VIEWSIZE:
      AdjustmentListener[] alsv = sb.getAdjustmentListeners();
      for (int i = 0; i < alsv.length; i++)
        sb.removeAdjustmentListener(alsv[i]);
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

      for (int i = 0; i < alsv.length; i++)
        sb.removeAdjustmentListener(alsv[i]);
      sb.setBlockIncrement(this.viewSize);
      sb.setVisibleAmount(this.viewSize);
      for (int i = 0; i < alsv.length; i++)
        sb.addAdjustmentListener(alsv[i]);
      break;
    }
  }

  public static void setOrientation(JScrollBar comp, int value) {
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

            setPreferredScrollableViewportSize(null);
            // insert a listener to listen for adjustment changes originated by the
            // vertical scroll bar of the scroll pane
            JScrollBar sb = sp.getVerticalScrollBar();
            if (sb != null) {
                sb.addAdjustmentListener(new VerticalScrollBarAdjustmentListener());
            }
            // reset the exhaustedDataSet flag because we are starting from the beginning
            exhaustedDataSet = false;
            // populate the table with one page of data, plus any look ahead data
            loadRowsFromProvider(0, getPageSize());
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

        hbar.setUnitIncrement(2);
        hbar.setBlockIncrement(1);

        hbar.addAdjustmentListener(this);
        vbar.addAdjustmentListener(this);

        add(hbar, BorderLayout.SOUTH);
        add(vbar, BorderLayout.EAST);
        add(dp, BorderLayout.CENTER);
    }
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

    {
      //  Scroll the viewport to the end.
      scrollBar.removeAdjustmentListener( this );
      value = maximum - extent;
      scrollBar.setValue( value );
      scrollBar.addAdjustmentListener( this );
    }

    if (adjustScrollBar && viewportPosition == START)
    {
      //  Keep the viewport at the same relative viewportPosition
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

    {
      //  Keep the viewport at the same relative viewportPosition
      scrollBar.removeAdjustmentListener( this );
      value = value + maximum - previousMaximum;
      scrollBar.setValue( value );
      scrollBar.addAdjustmentListener( this );
    }

    previousValue = value;
    previousMaximum = maximum;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.