borderInsets = getViewportBorder().getBorderInsets(this);
} else
borderInsets = new Insets(0, 0, 0, 0);
int colorpair = getCursesColor();
Dimension size = minimumSize();
if (_border != null) {
_border.paintBorder(this, 0, origin.x, origin.y, size.width,
size.height, toolkit);
}
// Don't draw scrollbars if the child component is a TableHeader.
if (_child instanceof TableHeader) return;
/*
* If the child component is larger than the viewport, draw scrollbars.
*/
// The size of the component displayed within the viewport.
Dimension childSize = getViewport().getViewSize();
// The size of the viewport
Dimension extentSize = getViewport().getExtentSize();
Point viewPosition = getViewport().getViewPosition();
// If the child is a JTable, we have to adjust the
// parameters a bit because the viewport includes the header.
/*