@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
// g.clearRect(29, 0, 55, 35);
g.setColor((mouseOver || button.isSelected())
// ? SystemColor.controlDkShadow
// : SystemColor.activeCaptionBorder);
? SystemColor.activeCaptionBorder
: SystemColor.control);
g.drawLine(29, 7, 29, 27);
if (ToolBarButton.this.actionListener != null) {
// g.setColor(SystemColor.activeCaptionBorder);
g.setColor(SystemColor.controlDkShadow);
}
int x = 24 + 13;
int y = this.getHeight() / 2 + 1;
int aw = 4;
int ah = 2;
g.fillPolygon(new int[]{x - aw, x + aw, x}, new int[]{y - ah, y - ah, y + ah}, 3);
}
ToolBarButton.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:S3F
作者:
评论列表
文章目录