java - How to change Javafx default app image/icon/thumb -


i developed javafx application. want change java default icon of .jar file. tried primarystage.geticons().add(icon);

but make change left top corner icon when running app not external view image.

screenshot below: http://i.stack.imgur.com/gosha.png want change icon actually.

all jar files have same icon , depends on os show icon on file depending on file type.

primarystage.geticons().add(icon); 

the above line executed when jvm created application, doesn't make sense depend on particular piece code display icon :)

if want change file icon, have wrap executable jar file create new native executable file (which depends on os). example - exe windows. new file contain image file displayed , jar executed.

you can try using launch4j or jsmooth creating wrapper file.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -