This site requires JavaScript, please enable it in your browser!
Greenfoot back
Nosson1459
Nosson1459 wrote ...

2016/12/19

.jar

Nosson1459 Nosson1459

2016/12/19

#
When a Greenfoot scenario is exported as a .jar file, the icon in the top-left corner of the window is automatically a green foot. Is there any way to change that, to choose an icon image (if I right-click on the .jar file shortcut (if I made one) then press on "Properties", in the Properties window there is a button "Change Icon", this button only changes the icon for the appearance of the .jar file shortcut on the desktop (and has to be .ico) in a JFrame there is a method for the picture in the top-left corner, and it doesn't have to be .ico)?
Nosson1459 Nosson1459

2016/12/20

#
"with no replies"
Nosson1459 Nosson1459

2016/12/21

#
Can't anybody around here answer this question (I guess not, but "The Greenfoot team" should be able to)?!
danpost danpost

2016/12/21

#
I was able to change it with my version of greenfoot by changing the image of the 'greenfoot.PNG' image file at the following location before creating the jar file: Greenfoot/lib/greenfoot/standalone/greenfoot.PNG The image should be replaced with an image of the same size (16x16).
Nosson1459 Nosson1459

2016/12/22

#
Well that is possible, and I didn't think of it, but that way of doing it isn't in the Greenfoot program you're just, sort of cheating (but that doesn't mean it's a bad idea). What's wrong with doing an image with different dimensions?
danpost danpost

2016/12/22

#
Nosson1459 wrote...
Well that is possible, and I didn't think of it, but that way of doing it isn't in the Greenfoot program
There is no implementation within the greenfoot program to accomplish that particular task. So, changing that greenfoot uses when creating the jar file is about the only way to do it.
What's wrong with doing an image with different dimensions?
I could be wrong. May have to test it out (just had a gut feeling about this).
Nosson1459 Nosson1459

2016/12/22

#
danpost wrote...
There is no implementation within the greenfoot program to accomplish that particular task. So, changing that greenfoot uses when creating the jar file is about the only way to do it
I know that, that's the problem there's no way to do it besides for going into the Greenfoot program directory. Or you could download the Greenfoot source code and edit it so that you can choose an image for the window icon (but I'm not about to do that).
You need to login to post a reply.