Java图形界面之给窗体设置图标(即窗体左上角的小图标和运行图标)
看图
public class chuangti(){
Jframe f = new Jframe();
ImageIcon icon = new ImageIcon("src\\wsy\\12.png");
f.setIconImage(icon.getImage());// 给窗体设置图标方法
}
Java图形界面之给窗体设置图标(即窗体左上角的小图标和运行图标)
看图
public class chuangti(){
Jframe f = new Jframe();
ImageIcon icon = new ImageIcon("src\\wsy\\12.png");
f.setIconImage(icon.getImage());// 给窗体设置图标方法
}