本文整理了Java中javax.swing.JScrollPane.paintBorder()
方法的一些代码示例,展示了JScrollPane.paintBorder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.paintBorder()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:paintBorder
暂无
代码示例来源:origin: org.icepdf.os/icepdf-viewer
@Override
protected void paintBorder(Graphics g) {
if (!active) {
return;
}
super.paintBorder(g);
}
代码示例来源:origin: com.eas.platypus/platypus-js-scalable-widget
@Override
protected void paintChildren(Graphics g) {
super.paintChildren(g);
super.paintBorder(g);
Color lOldColor = g.getColor();
Rectangle lb = getBounds();
if(verticalScrollBar != null && verticalScrollBar.isVisible())
{
g.setColor(getBackground());
Rectangle lrt = verticalScrollBar.getBounds();
lrt.y = 0;
lrt.height = lb.height;
g.fillRect(lrt.x, lrt.y+1, lrt.width, lrt.height-1);
g.setColor(lOldColor);
paintComp(g, verticalScrollBar);
}
if(horizontalScrollBar != null && horizontalScrollBar.isVisible())
{
g.setColor(getBackground());
Rectangle lrt = horizontalScrollBar.getBounds();
lrt.x = 0;
lrt.width = lb.width;
g.fillRect(lrt.x+1, lrt.y, lrt.width-1, lrt.height);
g.setColor(lOldColor);
paintComp(g, horizontalScrollBar);
}
}
内容来源于网络,如有侵权,请联系作者删除!