How do you change the icon of an application created with export application?
1
/** Change App Icon & Title (v2.0) * by tfguy44 (2013/Jun) * mod GoToLoop * * http://forum.processing.org/topic/how-to-change-the-icon-of-the-app */ final static String ICON = "MyIcon.jpg"; final static String TITLE = "Got Personalized Icon!"; void setup() { size(320, 240); noLoop(); changeAppIcon( loadImage(ICON) ); changeAppTitle(TITLE); } void draw() { background( (color) random(#000000) ); } void mousePressed() { redraw(); } void keyPressed() { mousePressed(); } void changeAppIcon(PImage img) { final PGraphics pg = createGraphics(16, 16, JAVA2D); pg.beginDraw(); pg.image(img, 0, 0, 16, 16); pg.endDraw(); frame.setIconImage(pg.image); } void changeAppTitle(String title) { frame.setTitle(title); }