Fog Creek Software
g
Discussion Board




adding an icon in eclipse

How to add an icon in eclipse? is it the same as adding a file? the icon is basically a gif image.Can't find much documentation about it

Anon
Tuesday, May 18, 2004

Do you mean, how do you change the icon displayed in the title bar of your SWT app's main window? If so, create your image, and call shell.setImage(yourImage).

You can also create multiple images of various sizes in an array, and pass them to shell.setImages(yourImageArray), and the platform will select the appropriately-sized image for the display context (in the title bar, minimized, etc.).

Rob Warner
Tuesday, May 18, 2004

*  Recent Topics

*  Fog Creek Home