How to add an Icon to an application built with Eclipse Galileo C and MinGW?

后端 未结 4 1487
梦如初夏
梦如初夏 2020-12-01 15:25

I\'ve read a lot about how to add an icon to an application built with Visual Studio, but I have no idea how to do this with Eclipse Galileo / C / MinGW.

Can anyone

4条回答
  •  渐次进展
    2020-12-01 16:12

    I zip up all of the icons I want to use within the project first. Then Rename the .zip to a .jar

    Create a resource folder if you havent got one already (I use "lib") Then place the jar file inside the resource folder.

    Then one simple addition to the project properties:

    by right clicking and Configure "Java Build Path" - select the Libraries tab. Click on the Add JARs button and add the icons.jar to the libraries - then save.

    Now its easy to allocate the desired image icon inside the Window Builder editor for example as the jar containing your icons appears within the Image Selection mode chooser within the Classpath resource list. Everything works as it should and compiles fine.

提交回复
热议问题