private MyScrollingHelper() {
      myLeftScroll = new JScrollBar(JScrollBar.HORIZONTAL);
      myLeftScroll.setUI(ButtonlessScrollBarUI.createNormal());

      myLeftEditors = new ArrayList<Editor>();
      myRightEditors = new ArrayList<Editor>();

      myMaxColumnsLeft = 0;
      myMaxColumnsRight = 0;
      myLeftModels = new ArrayList<ScrollingModel>();
      myRightModels = new ArrayList<ScrollingModel>();
    }
示例#2
0
 /**
  * Overrides <code>JComponent.updateUI</code>.
  *
  * @see JComponent#updateUI
  */
 public void updateUI() {
   setUI((ScrollBarUI) UIManager.getUI(this));
 }
示例#3
0
 /** This method changes the UI to be the default for the current look and feel. */
 public void updateUI() {
   setUI((ScrollBarUI) UIManager.getUI(this));
   invalidate();
   repaint();
 }