12051206120712081209121012111212121312141215
if (SubstanceScrollBarUI.this.scrollbar == ver) { other = hor; } if ((other != null) && other.isVisible()) other.repaint(); SubstanceScrollBarUI.this.scrollbar.repaint(); } } }; this.scrollbar.addAdjustmentListener(this.substanceAdjustmentListener);
10561057105810591060106110621063106410651066
final int valueY = (int) (sbV.getValue() + prevPoint.getY() - p2.getY()); sbV.setValue(valueY); sbV.repaint(); final int valueX = (int) (sbH.getValue() + prevPoint.getX() - p2.getX()); sbH.setValue(valueX); sbH.repaint(); vv.repaint(); } }); }