protected void scrollTo(int voffset, int hoffset) { JScrollPane pane = JBScrollPane.findScrollPane(myViewportComponent); JScrollBar vsb = pane.getVerticalScrollBar(); vsb.setValue(voffset); JScrollBar hsb = pane.getHorizontalScrollBar(); hsb.setValue(hoffset); }
private void updateMacScrollbarStyle() { NSScrollerHelper.Style style = NSScrollerHelper.getScrollerStyle(); if (style != myMacScrollerStyle && scrollbar != null) { myMacScrollerStyle = style; updateStyleDefaults(); restart(); JScrollPane pane = JBScrollPane.findScrollPane(scrollbar); if (pane != null) pane.revalidate(); } }