[sourcecode language="java"]
public void Constuctor(){
this.setIconImage(new ImageIcon(getClass().getResource("/images/payroll.png")).getImage());
}
[/sourcecode]
Example of Jframe
Set the icon image in JInternalFrame
[sourcecode language="java"]
public void Constuctor(){
this.setFrameIcon(new ImageIcon(getClass().getResource("/images/Profile-24.png")));
}
[/sourcecode]
Example for JInternalFrame
No comments:
Post a Comment