in desktop shortcuts and menu items. below is code to set :-
/** Use In MAC **/ Image img = new ImageIcon("Image Path").getImage();// your desired image Application app = Application.getApplication(); app.setDockIconImage(img); /** Use In Window **/ frame.setIconImage(Toolkit.getDefaultToolkit().getImage("Image Path"));// your desired image
No comments:
Post a Comment