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>();
    }
Exemple #2
0
 /**
  * Overrides <code>JComponent.updateUI</code>.
  *
  * @see JComponent#updateUI
  */
 public void updateUI() {
   setUI((ScrollBarUI) UIManager.getUI(this));
 }
 /** 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();
 }