我来告诉你:
ImageIcon icon = new ImageIcon("d:\icon\hello.gif");
Image image = icon.getImage();
this.setIconImage(image);
---
以上代码加入到你的程序中就可以实现!
ImageIcon icon = new ImageIcon("d:\icon\hello.gif");
Image image = icon.getImage();
this.setIconImage(image);
---
以上代码加入到你的程序中就可以实现!
必须保证图标文件的格式正确。你再换个图标试试.