Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Hani Ibrahim
Added: Aug 16, 2018 4:57 PM
Views: 1
Tags: icon
Put in the constructor. Side effects possible. To avoid problems make class final or use" Set program icon 3"
  1. this.setIconImage(new ImageIcon(getClass().getResource("xxx.xxx")).getImage());