Changing Icon of pre-exported file


#1

Hello. I was wondering how to change the icon of your file.

MUST BE IN CODE!!
MUST BE FOR PROCESSING 3!!
Thanks guys

KittyCatGamer123 :wink:


#2

You can’t do this with code, as it’s an OS-specific setting.

You might want to look into programs like Launch4J which bundle Java applications up as executables, which can have customized icons.

Note that this is not exactly trivial, especially if you’re looking for a pure-Processing solution.


#3

Check this post: https://forum.processing.org/two/discussion/20443/please-help-me-urgent-p2d-or-p3d-change-icon#latest

Kf


#4

Note that this is the icon for the window, not the file.


#5

Never seen this one before… What OS?

Kf


#6

Do you know where is this in the source code? I mean, where are they calling Launch4J. I dont think they use that sw to generate the linux version. I need to dbl check that…

Kf


#7

Launch4J is only for Windows. You’d have to find similar programs for different platforms. This would happen outside of Processing, as a way of bundling the exported Java program into a platform-specific executable file.

I’ve used JWrapper for this with moderate success in the past, but in my experience this type of thing is much more complicated than it should be.