日期:2014-05-20 浏览次数:20799 次
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); }