       Dimension d = scrollPane.getVisibleRect().getSize();       if (scrollPane.getBorder() != null) {         d.setSize(d.getWidth() - scrollInsets.left - scrollInsets.right, d.getHeight()         - scrollInsets.top - scrollInsets.bottom);       }        