62,635
社区成员




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);
}