Here you can find the source of SET_FRAME_ICON(JFrame f, String iconPath)
public static void SET_FRAME_ICON(JFrame f, String iconPath)
//package com.java2s; //License from project: Open Source License import javax.swing.ImageIcon; import javax.swing.JFrame; public class Main { public static void SET_FRAME_ICON(JFrame f, String iconPath) { f.setIconImage(new ImageIcon(f.getClass().getResource(iconPath)).getImage()); }/*from w w w. j av a 2 s .c o m*/ }