62,614
社区成员
发帖
与我相关
我的任务
分享
public class MyButtonUI extends ButtonUI
{
public void paint(Graphics g, JComponent c)
{
g.setColor(Color.red);
g.fillRect(0, 0, c.getWidth(), c.getHeight());
}
}
if(b.getIcon() != null) {
paintIcon(g,c,iconRect);
}
if(b.getIcon() != null) {
paintIcon(g,c,iconRect);
}