本文整理了Java中javax.swing.JLabel.paintBorder()
方法的一些代码示例,展示了JLabel.paintBorder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.paintBorder()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:paintBorder
暂无
代码示例来源:origin: com.synaptix/SynaptixSwing
protected void paintBorder(Graphics g) {
super.paintBorder(g);
Graphics2D g2 = (Graphics2D) g;
g2.setColor(COLOR_TODAY);
g2.setStroke(new BasicStroke(2));
g2.drawRoundRect(HALF_WIDTH, HALF_WIDTH, this.getWidth()
- HALF_WIDTH - 1, this.getHeight() - HALF_WIDTH - 1, this
.getWidth(), this.getHeight());
}
代码示例来源:origin: com.numdata/numdata-swing
@Override
protected void paintBorder( final Graphics g )
{
super.paintBorder( g );
DrawTools.drawEtchHorizontal( g, 2, getHeight() - 5, getWidth() - 6 );
}
};
内容来源于网络,如有侵权,请联系作者删除!