DefaultChoice.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:cn1 作者:
public static Rectangle drawButton(Graphics g, ChoiceState s) {
    Dimension size = s.getSize();
    Rectangle buttonRect = getButtonRect(size);
    int dx = buttonRect.x;
    int dy = buttonRect.y;
    g.translate(dx, dy);
    g.setColor(SystemColor.control);
    int buttonWidth = buttonRect.width;
    int buttonHeight = buttonRect.height;
    g.fillRect(0, 0, buttonWidth, buttonHeight);
    DefaultScrollbar.paintArrowButton(g, DefaultScrollbar.SOUTH,
                                      buttonWidth,
                                      buttonHeight,
                                      s.isPressed(), s.isEnabled());
    g.translate(-dx, -dy);
    return buttonRect;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号