日期:2014-05-20  浏览次数:20613 次

一个java的课后习题
试实现Icon的getIconHeight() getIconWidth() paintIcon() 然后画一个红色的圆形,并置于JButton中!!
 


------解决方案--------------------
getIconHeight() 返回图标的高度。
getIconWidth() 返回图标的宽度
paintIcon(Component c, Graphics g, int x, int y) 在指定位置上绘制图标。