图标大小自适应JButton大小
https://www.iteye.com/problems/68650
public void setIcon(String file,JButton com)
{
ImageIcon ico=new ImageIcon(file);
Image temp=ico.getImage().getScaledInstance(com.getWidth(),com.getHeight(),ico.getImage().SCALE_DEFAULT);
ico=new ImageIcon(temp);
com.setIcon(ico);
}